No connectivity between Host and VM machine
by aocferreira from LinuxQuestions.org on (#4Z2AT)
Hi,
I have an host running Red Hat and KVM.
From my laptop, I can reach the host through management VLAN.
I had to configure eth0.10 subinterface to have connectivity.
Code:eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.225.3.140 netmask 255.255.255.0 broadcast 10.225.3.255
inet6 fe80::3a63:bbff:fe49:2488 prefixlen 64 scopeid 0x20<link>
ether 38:63:bb:49:24:88 txqueuelen 1000 (Ethernet)
RX packets 33783751 bytes 11250546356 (10.4 GiB)
RX errors 0 dropped 277771 overruns 0 frame 0
TX packets 3400449 bytes 253979579 (242.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Code:eth0.10: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 10.225.3.140 netmask 255.255.255.0 broadcast 10.225.3.255
inet6 fe80::3a63:bbff:fe49:2488 prefixlen 64 scopeid 0x20<link>
ether 38:63:bb:49:24:88 txqueuelen 1000 (Ethernet)
RX packets 5609280 bytes 8949719184 (8.3 GiB)
RX errors 0 dropped 1202 overruns 0 frame 0
TX packets 3399497 bytes 253918905 (242.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Code:macvtap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::5054:ff:fe2a:253b prefixlen 64 scopeid 0x20<link>
ether 52:54:00:2a:25:3b txqueuelen 500 (Ethernet)
RX packets 7610 bytes 458120 (447.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 105 bytes 7358 (7.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Code:macvtap0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500
link/ether 52:54:00:2a:25:3b brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe2a:253b/64 scope link
valid_lft forever preferred_lft forever
From the host, I cannot reach the VM.
Please check guest.jpg to see what I have configured.
Besides, from the Virt Manager I can see that for NIC *3b I have:
Network source - Host device eth0: macvtap
Source mode - bridge
What am I missing?
Thanks.
Attached Thumbnails


I have an host running Red Hat and KVM.
From my laptop, I can reach the host through management VLAN.
I had to configure eth0.10 subinterface to have connectivity.
Code:eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.225.3.140 netmask 255.255.255.0 broadcast 10.225.3.255
inet6 fe80::3a63:bbff:fe49:2488 prefixlen 64 scopeid 0x20<link>
ether 38:63:bb:49:24:88 txqueuelen 1000 (Ethernet)
RX packets 33783751 bytes 11250546356 (10.4 GiB)
RX errors 0 dropped 277771 overruns 0 frame 0
TX packets 3400449 bytes 253979579 (242.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Code:eth0.10: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 10.225.3.140 netmask 255.255.255.0 broadcast 10.225.3.255
inet6 fe80::3a63:bbff:fe49:2488 prefixlen 64 scopeid 0x20<link>
ether 38:63:bb:49:24:88 txqueuelen 1000 (Ethernet)
RX packets 5609280 bytes 8949719184 (8.3 GiB)
RX errors 0 dropped 1202 overruns 0 frame 0
TX packets 3399497 bytes 253918905 (242.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Code:macvtap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::5054:ff:fe2a:253b prefixlen 64 scopeid 0x20<link>
ether 52:54:00:2a:25:3b txqueuelen 500 (Ethernet)
RX packets 7610 bytes 458120 (447.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 105 bytes 7358 (7.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Code:macvtap0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500
link/ether 52:54:00:2a:25:3b brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe2a:253b/64 scope link
valid_lft forever preferred_lft forever
From the host, I cannot reach the VM.
Please check guest.jpg to see what I have configured.
Besides, from the Virt Manager I can see that for NIC *3b I have:
Network source - Host device eth0: macvtap
Source mode - bridge
What am I missing?
Thanks.
Attached Thumbnails