|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Conflict with Xen bridge?
Hi again,
as you can see, on brctl output there is only one virtual interface
vif0.0, on your xenbr0 bridge, and there isn't any physical interface. I
advice to put the following config:
Create the following file:
/etc/xen/scripts/network-bridge-wrapper
give it permisions to be executable:
Put
#!/bin/sh
/etc/xen/scripts/network-bridge start bridge=xenbr0 vifnum=0
Change the following line in /etc/xen/xend-config.sxp:
(network-script 'network-bridge netdev=eth1')
for this line
(network-script network-bridge-wrapper)
After this restart your xend daemon, or reboot your box.
With this config a brctl show output may be:
sunfire:/home/xxxxxx# brctl show
bridge name bridge id STP enabled interfaces
xenbr0 8000.feffffffffff no vif0.0
peth0
so... change the line in the file
/etc/xen/scripts/network-bridge-wrapper as your needs, also you can put
more lines to create more bridges, you can make very cool configs with
xen networking :)
I hope it will be useful.
Regards,
Marc
Daniel Bareiro wrote:
On Tuesday, 25 March 2008 10:25:35 +0100,
Marc Patino Gómez wrote:
Hi Daniel,
Hi Marc. Thanks for your reply.
try to sent more info, a brctl output will be useful, and probably
someone in the list could help you:
I'm using Xen 3.0.3-1 from Debian Etch repositories. This is the default
config file provided by Debian:
(network-script network-dummy)
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0)
And this is the config file after my modifications:
(network-script 'network-bridge netdev=eth1')
(dom0-min-mem 196)
(dom0-cpus 0)
# brctl show
brctl show
bridge name bridge id STP enabled interfaces
xenbr0 8000.feffffffffff no vif0.0
ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:F3:9D:8C:D8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1390 errors:0 dropped:0 overruns:0 frame:0
TX packets:638 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:211154 (206.2 KiB) TX bytes:78676 (76.8 KiB)
Interrupt:19 Base address:0xa000
eth1 Link encap:Ethernet HWaddr 00:18:F3:9D:89:3A
inet addr:10.1.0.10 Bcast:10.1.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:360 (360.0 b) TX bytes:4678 (4.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1950 (1.9 KiB) TX bytes:1950 (1.9 KiB)
peth1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:734 errors:0 dropped:0 overruns:0 frame:0
TX packets:609 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:89800 (87.6 KiB) TX bytes:133401 (130.2 KiB)
Interrupt:18 Base address:0x8000
ppp0 Link encap:Point-to-Point Protocol
inet addr:190.51.68.180 P-t-P:200.51.241.209 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1348 errors:0 dropped:0 overruns:0 frame:0
TX packets:596 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:178894 (174.7 KiB) TX bytes:64243 (62.7 KiB)
vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:57 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4678 (4.5 KiB) TX bytes:360 (360.0 b)
xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:2 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:56 (56.0 b) TX bytes:0 (0.0 b)
When I start xend with my modified config file, I lose the Internet
connection and the LAN connectivity from the gateway.
Thank in advance.
Regards,
Daniel
------------------------------------------------------------------------
_______________________________________________
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
|
|
|
|
|