Добрый день.
Столкнулся с проблемой - не могу настроить сеть на госте (win7), установленной на qemu/kvm. Нужен доступ как с гостя до сети, так и из сети до гостя (rdp, smb и пр.) Имеется: хост Debian10 с qemu/kvm хост 172.16.4.80 гость 172.16.4.90 сеть 172.0.0.0/8 шлюз/днс 172.16.4.213
на хосте:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000
link/ether bc:5f:f4:cc:dd:6c brd ff:ff:ff:ff:ff:ff
3: enp5s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether a0:f3:c1:00:0f:08 brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:5f:f4:cc:dd:6c brd ff:ff:ff:ff:ff:ff
inet 172.16.4.80/16 brd 172.16.255.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::be5f:f4ff:fecc:dd6c/64 scope link
valid_lft forever preferred_lft forever
5: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNOWN group default qlen 1000
link/ether fe:54:00:fa:cc:31 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fefa:cc31/64 scope link
valid_lft forever preferred_lft forever
cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto enp4s0
iface enp4s0 inet manual
auto br0
iface br0 inet static
address 172.16.4.80
netmask 255.255.0.0
gateway 172.16.4.213
dns-nameservers 172.16.4.213
bridge_ports enp4s0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
virsh net-list --all
Name State Autostart Persistent
----------------------------------------------
default inactive no yes
main inactive no yes
ping 172.16.4.213
PING 172.16.4.213 (172.16.4.213) 56(84) bytes of data.
64 bytes from 172.16.4.213: icmp_seq=1 ttl=64 time=5.24 ms
ping 172.16.4.90 - до гостя
PING 172.16.4.90 (172.16.4.90) 56(84) bytes of data.
^C
--- 172.16.4.90 ping statistics ---
450 packets transmitted, 0 received, 100% packet loss, time 1225ms
из гостя пинг до 172.16.4.213 есть, пинг до хоста 172.16.4.80 есть