KVM - Bridging Issues

Gabriel Gunderson gabe at gundy.org
Wed Nov 14 23:29:17 MST 2012


On Wed, Nov 14, 2012 at 5:03 PM, Steve Meyers <steve-plug at spwiz.com> wrote:
> Have you tried putting an IP directly on the bridge?


This is what we do. I just happen to have a CentOS box to share
configs from (most others are Ubuntu). Have a look:

[root at virt-01 network-scripts] # cat ifcfg-br-support
DEVICE=br-support
TYPE=Bridge
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no
USERCTL=no
BOOTPROTO=none
NETWORK=10.100.0.0
NETMASK=255.255.255.0
IPADDR=10.100.0.80
GATEWAY=10.100.0.1

and...

[root at virt-01 network-scripts] # cat ifcfg-eth0
DEVICE="eth0"
HWADDR="00:25:XX:XX:XX:XX"
NM_CONTROLLED="no"
ONBOOT="yes"
BRIDGE="br-support"

gives...

[root at virt-01 network-scripts]# brctl show
bridge name bridge id STP enabled interfaces
br-support 8000.0025XXXXXXXX no eth0
        vnetX
        vnetX
        vnetX

also...

[root at virt-01 network-scripts] # ifconfig br-support
br-support Link encap:Ethernet  HWaddr 00:25:XX:XX:XX:XX
          inet addr:10.100.0.80  Bcast:10.100.0.255  Mask:255.255.255.0


And we make sure we like the mappings found in:
/etc/udev/rules.d/70-persistent-net.rules

Hope that helps.


Best,
Gabe


More information about the PLUG mailing list