Taigo,
This is the automatic virt-manager set up on the host.
Code: Select all
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:39:aa:f0 txqueuelen 1000 (Ethernet)
RX packets 267 bytes 47532 (46.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 120 bytes 70659 (69.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Guests will use 192.168.122.1 as their default route.
Code: Select all
br0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c6:0c:7d:b9:6f:c7 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
is the bridge I asked you to create.
Notice that it dos not have an IP address. That's correct.
Code: Select all
virbr1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.112.1 netmask 255.255.255.0 broadcast 192.168.112.255
ether 52:54:00:97:2b:7f txqueuelen 1000 (Ethernet)
RX packets 8464 bytes 1471971 (1.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8213 bytes 135188562 (128.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
is in a name range that belongs to virt-manager.
It has an IP address of 192.168.112.1 on the host. What is that for.
The routing table looks correct.
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 1002 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 1002 0 0 eth0
192.168.112.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
Rules are applied from the bottom up. The kernel loots at the IP address in the packet, if it matches 192.168.122.0/24, its sent to virbr0. No other rools are tested.
When that fails, the packet is tested against 192.168.112.0/24, if it matches, the packet is sent to virbr1.
Anything eventually left over gets to the default, which matches everything, so packets the kernel cannot route are sent to 192.168.1.1 on eth0.
That's OK, now what of the two VMs?
When you set up the extra NICs in the VMs, connect them to br0.
What does
and
show for the two VMs?