Answer the question
In order to leave comments, you need to log in
KVM host does not see the guest machine on the network?
Good afternoon!
There is the following situation
1. Subnet
2. KVM host 172.31.1.7
3. VM on host 172.31.1.8
4. PC in the same subnet
VM is connected to the network via interface br0
KVM does not see the VM over the VM network
The VM does not see over the KVM network The
PC sees and KVM and VM
KVM host settings
[email protected]:/home/user# traceroute 172.31.1.8
traceroute to 172.31.1.8 (172.31.1.8), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
[email protected] kvm:/home/user# ping 172.31.1.8
PING 172.31.1.8 (172.31.1.8) 56(84) bytes of data.
^C
--- 172.31.1.8 ping statistics ---
30 packets transmitted, 0 received, 100% packet loss, time 28999ms
[email protected]:/home/user# cat /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp5s0
iface enp5s0 inet manual
auto br0
iface br0 inet dhcp
bridge_ports enp5s0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
[email protected]:/home/user# cat /etc/sysctl.conf | grep net.ipv4.ip_forward
net.ipv4.ip_forward=1
[email protected]:/home/user# ifconfig br0
br0 Link encap:Ethernet HWaddr ac:22:0b:c9:51:3b
inet addr:172.31.1.7 Bcast:172.31 .1.23Mask:255.255.255.224
inet6 addr: fe80::ae22:bff:fec9:513b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6480 errors:0 dropped:0 overruns:0 frame:0
TX packets:4604 errors: 0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:777790 (777.7 KB) TX bytes:1727879 (1.7 MB)
[email protected]:/home/user# ifconfig enp5s0
enp5s0 Link encap:Ethernet HWaddr ac :22:0b:c9:51:3b
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45032 errors:0 dropped:275 overruns:0 frame:0
TX packets:29429 errors:0 dropped:0 overruns:0 carrier :0
collisions:0 txqueuelen:1000
RX bytes:14913746 (14.9 MB) TX bytes:8642327 (8.6 MB)
[email protected]:/home/user# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.31.1.2 0.0.0.0 UG 0 0 0 Br0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0
0.0.0.0 172.31.1.0 0.0.0.0 255.255.255.224 U 0 0 0.0.0.0.068.120.0 0.0.0.0 255.255.255.0 U 0 0
0 0 VirBr0
root @ KVM: /home/user# cat /etc/libvirt/qemu/networks/br0.xml
br0a7226dc4-a7de-4282-b5ed-bf2fb2bbf288
[email protected]:/etc/libvirt/qemu$ brctl show
bridge name bridge id STP enabled interfaces
br0 8000.ac220bc9513b no enp5s0
vnet1
vnet2
virbr0 8000.fe5400c7fc72 no vnet0
virbr1 8000.000000000000 yes
virbr2 8000.000000000000 yes
Thanks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question