WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] About MAC address

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] About MAC address
From: "Nemeth, Tamas" <nice@xxxxxxxxxxxxxxx>
Date: Fri, 19 Sep 2008 11:02:54 +0200
Cc: Stephen Liu <satimis@xxxxxxxxx>
Delivery-date: Fri, 19 Sep 2008 02:04:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <954323.79529.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Nyugat-Magyarországi Egyetem
References: <954323.79529.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi!

Sorry, i don't know anything about debian, but a mac address
in /etc/network/interfaces is strange for me.

It's possibly for the domU to change the mac address of any virtual
interface by the command "ip link set ethX address XX:XX:XX:XX:XX:XX",
or similar. Xen will not notice the change. The mac address provided by
xen is like a default mac address of a real card, and can be changed
(until the next reboot of the domU). Maybe some script in you domU
system do this change during boot?

Anyway, the udev system may persistently link mac addresses and device
names (i.e. eth0, eth1). Take a look
at /etc/udev/rules.d/70-persistent-net.rules or something like this.


Bye,

Tamas


2008. 09. 19, péntek keltezéssel 13.34-kor Stephen Liu ezt írta:
> Hi folks,
> 
> 
> Debian Etch
> Xen
> 
> 
> On cloning disk.img I suppose it also copies the MAC address of the
> original image to the new image resulting in "ping hostname" unable to
> find the new hostname.
> 
> 
> Following is my test;
> 
> # dd if=/vserver/domains/xen5.satimis.com/disk.img
> of=/vserver/domains/xen6.satimis.com/disk.img bs=4k
> 
> # dd if=/vserver/domains/xen5.satimis.com/swap.img
> of=/vserver/domains/xen6.satimis.com/swap.img bs=4k
> 
> 
> # xm list --long xen5.satimis.com
> (domain
>     (domid 3)
>     (on_crash restart)
>     (uuid e1074e82-9bbc-8fcd-2e74-e6ab66a3017d)
>     (bootloader_args )
>     (vcpus 1)
>     (name xen5.satimis.com)
>     (on_poweroff destroy)
>     (on_reboot restart)
>     (bootloader )
>     (maxmem 32)
>     (memory 32)
>     (shadow_memory 0)
>     (cpu_weight 256)
>     (cpu_cap 0)
>     (features )
>     (on_xend_start ignore)
>     (on_xend_stop ignore)
>     (start_time 1221791564.86)
>     (cpu_time 3.132796221)
>     (online_vcpus 1)
>     (image
>         (linux
>             (kernel /boot/vmlinuz-2.6.18-xen)
>             (args 'root=/dev/hda1 ro ')
>             (rtc_timeoffset 0)
>             (notes
>                 (HV_START_LOW 4227858432)
>                 (FEATURES
>                    
> 'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
>                 )
>                 (VIRT_BASE 3221225472)
>                 (GUEST_VERSION 2.6)
>                 (PADDR_OFFSET 3221225472)
>                 (GUEST_OS linux)
>                 (HYPERCALL_PAGE 3222278144)
>                 (LOADER generic)
>                 (SUSPEND_CANCEL 1)
>                 (PAE_MODE no)
>                 (ENTRY 3222274048)
>                 (XEN_VERSION xen-3.0)
>             )
>         )
>     )
>     (status 2)
>     (state -b----)
>     (store_mfn 899538)
>     (console_mfn 899537)
>     (device
>         (vif
>             (uuid 18904eab-6d22-da74-79f0-c86198a01e4a)
>             (script vif-bridge)
>             (ip 192.168.0.115)
>             (mac 00:16:3e:32:ab:e7)
>             (type netfront)
>             (backend 0)
>         )
>     )
>     (device
>         (vbd
>             (uname file:/vserver/domains/xen5.satimis.com/disk.img)
>             (uuid 505962e1-ddc4-7987-e731-eeda038c8ba1)
>             (mode w)
>             (dev hda1:disk)
>             (backend 0)
>             (bootable 1)
>         )
>     )
>     (device
>         (vbd
>             (uname file:/vserver/domains/xen5.satimis.com/swap.img)
>             (uuid c7e5ed00-fa70-3683-d66f-fba6feff5a69)
>             (mode w)
>             (dev hda2:disk)
>             (backend 0)
>             (bootable 0)
>         )
>     )
>     (device
>         (console
>             (protocol vt100)
>             (location 2)
>             (uuid ca9ca5fb-9cee-6571-d064-83e2d8ddd894)
>         )
>     )
> )
> * end *
> 
> 
> 
> # xm list --long xen6.satimis.com
> (domain
>     (domid 2)
>     (on_crash restart)
>     (uuid 07a8b42b-acfd-ec79-ce19-83f843564db1)
>     (bootloader_args )
>     (vcpus 1)
>     (name xen6.satimis.com)
>     (on_poweroff destroy)
>     (on_reboot restart)
>     (bootloader )
>     (maxmem 32)
>     (memory 32)
>     (shadow_memory 0)
>     (cpu_weight 256)
>     (cpu_cap 0)
>     (features )
>     (on_xend_start ignore)
>     (on_xend_stop ignore)
>     (start_time 1221791309.54)
>     (cpu_time 3.313863599)
>     (online_vcpus 1)
>     (image
>         (linux
>             (kernel /boot/vmlinuz-2.6.18-xen)
>             (args 'root=/dev/hda1 ro ')
>             (rtc_timeoffset 0)
>             (notes
>                 (HV_START_LOW 4227858432)
>                 (FEATURES
>                    
> 'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'
>                 )
>                 (VIRT_BASE 3221225472)
>                 (GUEST_VERSION 2.6)
>                 (PADDR_OFFSET 3221225472)
>                 (GUEST_OS linux)
>                 (HYPERCALL_PAGE 3222278144)
>                 (LOADER generic)
>                 (SUSPEND_CANCEL 1)
>                 (PAE_MODE no)
>                 (ENTRY 3222274048)
>                 (XEN_VERSION xen-3.0)
>             )
>         )
>     )
>     (status 2)
>     (state -b----)
>     (store_mfn 888274)
>     (console_mfn 888273)
>     (device
>         (vif
>             (uuid bbc3e77d-e001-90f2-73f6-1d2a042c6e2b)
>             (script vif-bridge)
>             (ip 192.168.0.116)
>             (mac 00:16:3e:0a:c0:fb)
>             (type netfront)
>             (backend 0)
>         )
>     )
>     (device
>         (vbd
>             (uname file:/vserver/domains/xen6.satimis.com/disk.img)
>             (uuid 8ea4ccb1-212e-8fea-0b17-dc056ae7f75d)
>             (mode w)
>             (dev hda1:disk)
>             (backend 0)
>             (bootable 1)
>         )
>     )
>     (device
>         (vbd
>             (uname file:/vserver/domains/xen6.satimis.com/swap.img)
>             (uuid 182adee0-bc90-69f2-a7e5-19fc3656e1ac)
>             (mode w)
>             (dev hda2:disk)
>             (backend 0)
>             (bootable 0)
>         )
>     )
>     (device
>         (console
>             (protocol vt100)
>             (location 2)
>             (uuid dca93d80-8087-ed35-587d-dded9e45684f)
>         )
>     )
> )
> * end *
> 
> 
> MAC Address
> 
> xen5.satimis.com :-
> (mac 00:16:3e:32:ab:e7)
> 
> 
> xen6.satimis.com
> (mac 00:16:3e:0a:c0:fb)
> 
> 
> # nano /etc/network/interfaces
> making following change
> 
> iface eth0 inet static
>  address 192.168.0.116 = mac 00:16:3e:0a:c0:fb
>  gateway 192.168.0.1
>  netmask 255.255.255.0
> 
> 
> Remark:-
> 
> Also tried;
>  address 192.168.0.116 = MAC of mac 00:16:3e:0a:c0:fb
>  address 192.168.0.116 = 00:16:3e:0a:c0:fb
>  address 192.168.0.116 = MAC of 00:16:3e:0a:c0:fb
> 
> 
> None of them worked.
> 
> 
> # /etc/init.d/networking restart
> Reconfiguring network interfaces...=: Host name lookup failure
> ifconfig: `--help' gives usage information.
> Failed to bring up eth0.
> done.
> 
> 
> # ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:16:3E:0A:C0:FB
>           inet addr:192.168.0.116  Bcast:192.168.0.255 
> Mask:255.255.255.0
>           inet6 addr: fe80::216:3eff:fe0a:c0fb/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:37 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:3154 (3.0 KiB)  TX bytes:3138 (3.0 KiB)
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> 
> 
> Please advise how to fix the problem.  TIA
> 
> 
> B.R.
> Stephen Liu
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>