Virtual Networking beschreibt wie im aktuellen libvirtd die Netzwerke dargestellt werden können.
Damit wir in den /etc/sysconfig/network-scripts/ifcfg-br* auch alle wichtigen Bridge-Optionen setzen können, ist die Datei /etc/sysconfig/network-scripts/ifup-eth zu patchen.
ifup-eth.diff
--- ifup-eth.orig 2008-01-15 19:22:51.000000000 +0100
+++ ifup-eth 2008-01-15 19:25:11.000000000 +0100
@@ -67,6 +67,7 @@
[ -n "${DELAY}" ] && /usr/sbin/brctl setfd ${DEVICE} ${DELAY}
[ -n "${GCINT}" ] && /usr/sbin/brctl setgcint ${DEVICE} ${GCINT}
[ -n "${STP}" ] && /usr/sbin/brctl stp ${DEVICE} ${STP}
+ [ -n "${HELLO}" ] && /usr/sbin/brctl sethello ${DEVICE} ${HELLO}
fi
# now check the real state
ifcfg-intern # interne netzwerk bridge
DEVICE=intern TYPE=Bridge BOOTPROTO=static ONBOOT=yes STP=off DELAY=0 HELLO=0 IPADDR=192.168.100.7 NETMASK=255.255.255.0 NETWORK=192.168.100.0 BROADCAST=192.168.100.255
ifcfg-eth0
DEVICE=eth0 BOOTPROTO=none ONBOOT=yes BRIDGE=br0 ARP=yes
ifcfg-br0
DEVICE=br0 TYPE=Bridge BOOTPROTO=static ONBOOT=yes STP=off DELAY=0 HELLO=0 IPADDR=192.168.0.7 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.255
ifcfg-eth1
DEVICE=eth1 BOOTPROTO=none ONBOOT=yes BRIDGE=br1 ARP=yes
ifcfg-br1
DEVICE=br1 TYPE=Bridge BOOTPROTO=static ONBOOT=yes STP=off DELAY=0 HELLO=0 IPADDR=192.168.1.7 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255
/var/lib/xend/state/network.xml