My machine has two NICs, with xen3.2.0 eth0 is renamed to peth0 and enslaved to bridge eth0, I now want to use eth1 inside a domU, if I manually create the eth1 bridge it all works fine, but I''d like the "cleanest" way for it to be re-created after a reboot of dom0 I found the line in xend-config.sxp where it calls (network-script network-bridge) I changed it so that it was (network-script network-bridge netdev=eth0) (network-script network-bridge netdev=eth1) expecting this would work, but after rebooting dom0, I still only get the eth0 bridge, any suggestions for clean ways to add the second bridge?
On Sat, 2008-08-02 at 13:29 +0100, Andy Burns wrote:> My machine has two NICs, with xen3.2.0 eth0 is renamed to peth0 and > enslaved to bridge eth0, I now want to use eth1 inside a domU, if I > manually create the eth1 bridge it all works fine, but I''d like the > "cleanest" way for it to be re-created after a reboot of dom0 > > I found the line in xend-config.sxp where it calls > > (network-script network-bridge) > > I changed it so that it was > > (network-script network-bridge netdev=eth0) > (network-script network-bridge netdev=eth1) > > expecting this would work, but after rebooting dom0, I still only get > the eth0 bridge, any suggestions for clean ways to add the second > bridge?Change that line to this: (network-script network-bridge-wrapper) Then create the following custom script named, network-bridge-wrapper, in the scripts folder: #!/bin/bash dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 "$dir/network-bridge" "$@" vifnum=1 I got this from a Novell support page when I was searching for a solution to start multiple bridges. HTH, Ranbir> -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen-- Kanwar Ranbir Sandhu Linux 2.6.22.14-72.fc6 i686 GNU/Linux 09:08:07 up 23 days, 10:17, 2 users, load average: 0.07, 0.09, 0.02
2008/8/2 Kanwar Ranbir Sandhu <m3freak@thesandhufamily.ca>:> Change that line to this: > > (network-script network-bridge-wrapper) > > Then create the following custom script named, network-bridge-wrapper, > in the scripts folder:That seems reasonable, I''ve put the changes in place, but will delay rebooting the dom0 until later. Thanks.
On Sat, 2008-08-02 at 15:35 +0100, Andy Burns wrote:> 2008/8/2 Kanwar Ranbir Sandhu <m3freak@thesandhufamily.ca>: > > > Change that line to this: > > > > (network-script network-bridge-wrapper) > > > > Then create the following custom script named, network-bridge-wrapper, > > in the scripts folder: > > That seems reasonable, I''ve put the changes in place, but will delay > rebooting the dom0 until later.I know you asked for the "cleanest" way. Which may mean the normal Xen way, but using /etc/sysconfig/network-scripts feels the cleanest and most gender neutral to me. It''s nothing unique, but I edit /etc/xen/xend-config.sxp and change "(network-script network-bridge)" to "(network-script /bin/true)". Then configure ifcfg-brX and ifcfg-ethX appropriately. http://tofu.org/drupal/node/25 like that.