[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Conflict with Xen bridge?



Hi,


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:

copy/paste mistake :-(

bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              vif0.0
                                                        peth1

I'd be consistent with the output of ifconfig which I put below in the
same e-mail :-)
humanum errarum est :)

About the wrapper script of network-bridge... I don't understand why it don't work, try to execute it by hand

/etc/xen/scripts/network-bridge start bridge=xenbr0 vifnum=0

... and use brctl command to add, del interfaces and bridges...

Anyway, to debug the errors I will go step by step:

----Important-----:
Think that your config in /etc/network/interfaces your eth0 the pppoe interface 
is vif0.0 in dom0 ! and your are attaching it to xenbr0 bridge with peth1 (eth1 
physical interface)

Think about it, at the moment I don't have much time to give you a more detailed answer :(.
To do your scenario I will create 2  bridges and the via iptables make the FW , 
nat ...

Tell me about your progress, ;)

Marc





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

I try this configuration, but I don't see up both peth and vif0.0
interfaces:

brctl show
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.000000000000       no


cat /etc/xen/xend-config.sxp | grep ^[^#]
(network-script network-bridge-wrapper)
(dom0-min-mem 196)
(dom0-cpus 0)


ll /etc/xen/scripts/network-bridge-wrapper
-rwxr-x--- 1 root root 71 2008-03-27 00:52 
/etc/xen/scripts/network-bridge-wrapper

cat /etc/xen/scripts/network-bridge-wrapper
#!/bin/sh
/etc/xen/scripts/network-bridge start bridge=xenbr0 vifnum=0


alderamin:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:18:F3:9D:8C:D8
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3732 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4090 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1780249 (1.6 MiB)  TX bytes:537354 (524.7 KiB)
          Interrupt:17

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:4796 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4069 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:587242 (573.4 KiB)  TX bytes:1809537 (1.7 MiB)
          Interrupt:16 Base address:0xe000

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:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:276 (276.0 b)  TX bytes:276 (276.0 b)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:190.51.122.4  P-t-P:200.51.241.209  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:3569 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3927 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1691867 (1.6 MiB)  TX bytes:446009 (435.5 KiB)

xenbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          UP BROADCAST RUNNING NOARP  MTU:1500  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)


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.

Thanks for your reply.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.