How do I create a virtual interface? auto xenbr0:0 iface xenbr0:0 inet static bridge_ports eth0 address 192.168.0.253 netmask 255.255.255.0 broadcast 192.168.0.255 this problem no ip root@falcon:/etc/network# ifconfigeth0 Link encap:Ethernet HWaddr 74:86:7a:ea:2e:e0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2617 errors:0 dropped:0 overruns:0 frame:0 TX packets:2311 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:623361 (608.7 KiB) TX bytes:683497 (667.4 KiB) Interrupt:16 xenbr0 Link encap:Ethernet HWaddr 74:86:7a:ea:2e:e0 inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::7686:7aff:feea:2ee0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2548 errors:0 dropped:0 overruns:0 frame:0 TX packets:2325 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:558047 (544.9 KiB) TX bytes:670173 (654.4 KiB) xenbr0:0 Link encap:Ethernet HWaddr 74:86:7a:ea:2e:e0 inet6 addr: fe80::5889:1bff:fe54:cd63/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:47 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:7174 (7.0 KiB) ip does not appear. But the network does the ping _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Cesar A. wrote:> How do I create a virtual interface? > auto xenbr0:0 > iface xenbr0:0 inet static > bridge_ports eth0 > address 192.168.0.253 > netmask 255.255.255.0 > broadcast 192.168.0.255 > this problem no ipThis won''t work. These days, for most uses, the ifx:y form is deprecated in favour of just adding IPs. So all you need to so is : ip addr add192.168.0.253/24 dev xenbr0 and magically you''ll see that xenbr0 now has an extra address on it.
Cesar A. wrote:>> These days, for most uses, the ifx:y form is deprecated in favour of just adding IPs. So all you need to so is : >> ip addr add192.168.0.253/24 dev xenbr0 >> and magically you''ll see that xenbr0 now has an extra address on it.> I need to put in the boot /etc/rc.local ? > or with /etc/network/interfacesPlease don''t top post. And please do NOT reply directly to someone unless they ask you to - you should keep discussion on list so that a) others may benefit from seeing any further answers, and b) others can see what''s been said and either add to it or correct it if there are errors. You add it to interfaces, like this : iface xenbr0 bridge_ports ... address ... netmask ... up ip addr add <IP/mask length> dev xenbr0 The interface scripts will automatically execute and "up" statements as they bring up the interface, thus adding the extra IP address. There are also "post-up", "down" and "pre-down" statements (exectuted at the stages the names suggest) which can be useful at times.