Trying To Get Bride Network On CentOS 7 Working With Virt-manager

Home » CentOS » Trying To Get Bride Network On CentOS 7 Working With Virt-manager
CentOS 2 Comments

I have these interfaces listed.

eth0: flagsA63 mtu 1500
inet 192.168.1.8 netmask 255.255.252.0 broadcast 192.168.3.255
inet6 fe80::e2d5:5eff:fe63:abe5 prefixlen 64 scopeid 0x20 ether e0:d5:5e:63:ab:e5 txqueuelen 1000 (Ethernet)
RX packets 42411243 bytes 4701898681 (4.3 GiB)
RX errors 0 dropped 156 overruns 0 frame 0
TX packets 78372982 bytes 34946337897 (32.5 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0x92f00000-92f20000

virbr0: flags@99 mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:fc:34:af txqueuelen 1000 (Ethernet)
RX packets 132792 bytes 337411780 (321.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 138593 bytes 742263806 (707.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr1: flags@99 mtu 1500
inet 192.168.100.1 netmask 255.255.255.0 broadcast 192.168.100.255
ether 52:54:00:9c:39:02 txqueuelen 1000 (Ethernet)
RX packets 206217 bytes 132308800 (126.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 105448 bytes 197008661 (187.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0-nic: flags@99 mtu 1500
ether 52:54:00:fc:34:af txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

When I bring up virt-manager, got settings for my VM, and for “Network Source” I select
“Specify Shared Device Name” and I have tried the virbr0 and clicked apply and boot the machine. I get networking but not bridged networking – not a
192.168.1.X address.

Is there something I missed ?
Thanks,

Jerry

2 thoughts on - Trying To Get Bride Network On CentOS 7 Working With Virt-manager

  • Those interfaces are for NAT networks, not bridged networks.

    The easiest way to set up bridged networking on CentOS 7 is:

        virsh iface-bridge eth0 br0 –no-stp

    This command will create a new bridge interface, br0.  The existing interface, eth0, will be added to the bridge, and its current IP
    configuration will be migrated to the new interface.

    (This should work for C8, but I haven’t deployed KVM on C8 yet)