Jerry Geis
2020-Jun-08 22:46 UTC
[CentOS] Trying to get bride network on CentOS 7 working with virt-manager
I have these interfaces listed. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> 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<link> 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=4099<UP,BROADCAST,MULTICAST> 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=4099<UP,BROADCAST,MULTICAST> 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=4099<UP,BROADCAST,MULTICAST> 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
Gordon Messmer
2020-Jun-08 23:21 UTC
[CentOS] Trying to get bride network on CentOS 7 working with virt-manager
On 6/8/20 3:46 PM, Jerry Geis wrote:> I have these interfaces listed. > > virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 > inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 > > virbr1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 > inet 192.168.100.1 netmask 255.255.255.0 broadcast 192.168.100.255Those 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)
Seemingly Similar Threads
- Anyone gotten qemu to operate in bride network mode on centos 4
- Bride of vorbisfile questions
- [Bridge] bride: IPv6 multicast snooping enhancements
- Loop overwrite and data output problems
- [Bridge] [PATCH net-next 2/2] bridge: Add a sysctl to limit new brides FDB entries