[Comm] снова kvm и bridge
Andrew Clark
andrewclarkiii на gmail.com
Ср Мар 17 18:12:51 UTC 2010
icmp пакеты не проходят между гостевой машиной и хостом.
Настройки сетевых интерфесов:
[root на timelock ~]# grep '^[^#]' /etc/net/ifaces/{,br0,tap0,eth0}/*
/etc/net/ifaces/br0/brctl:stp AUTO off
/etc/net/ifaces/br0/brctl:setfd AUTO 0
/etc/net/ifaces/br0/iplink:mtu 1442
/etc/net/ifaces/br0/ipv4address:192.168.1.2/24
/etc/net/ifaces/br0/ipv4route:default via 192.168.1.1
/etc/net/ifaces/br0/options:TYPE=bri
/etc/net/ifaces/br0/options:HOST='eth0 tap0'
/etc/net/ifaces/br0/options:BOOTPROTO=static
/etc/net/ifaces/br0/options:ONBOOT=yes
/etc/net/ifaces/br0/resolv.conf:search domail timelock
/etc/net/ifaces/br0/resolv.conf:nameserver 8.8.8.8
/etc/net/ifaces/br0/resolv.conf:nameserver 8.8.4.4
/etc/net/ifaces/tap0/iplink:mtu 1442
/etc/net/ifaces/tap0/ipv4address:192.168.1.4/24
/etc/net/ifaces/tap0/options:TYPE=tuntap
/etc/net/ifaces/tap0/options:TUNTAP_USER=andy
/etc/net/ifaces/tap0/options:ONBOOT=yes
/etc/net/ifaces/tap0/resolv.conf:search domail timelock
/etc/net/ifaces/tap0/resolv.conf:nameserver 8.8.8.8
/etc/net/ifaces/tap0/resolv.conf:nameserver 8.8.4.4
/etc/net/ifaces/eth0/options:TYPE=eth
/etc/net/ifaces/eth0/options:MODULE=r8169
/etc/net/ifaces/eth0/options:BOOTPROTO=static
/etc/net/ifaces/eth0/resolv.conf:search domail timelock
/etc/net/ifaces/eth0/resolv.conf:nameserver 8.8.8.8
/etc/net/ifaces/eth0/resolv.conf:nameserver 8.8.4.4
[root на timelock ~]# sysctl -a | grep bridge-nf-call
net.bridge.bridge-nf-call-arptables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-ip6tables = 0
[root на timelock ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UNKNOWN qlen 1000
link/ether 00:1d:7d:01:01:05 brd ff:ff:ff:ff:ff:ff
5: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 0e:eb:af:47:f8:ca brd ff:ff:ff:ff:ff:ff
8: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc pfifo_fast
state UNKNOWN qlen 500
link/ether 16:48:05:36:f6:86 brd ff:ff:ff:ff:ff:ff
9: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1442 qdisc noqueue state
UNKNOWN
link/ether 00:1d:7d:01:01:05 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 scope global br0
[root на timelock ~]# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.2
default via 192.168.1.1 dev br0
[root на timelock ~]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.001d7d010105 no eth0
tap0
pan0 8000.000000000000 no
[root на timelock ~]# uname -a
Linux timelock.linux 2.6.32-std-def-alt9 #1 SMP Tue Mar 2 11:21:59 UTC
2010 i686 GNU/Linux
[root на timelock ~]#
Подробная информация о списке рассылки community