我有一个配置了 2 个网卡的 Debian 6 系统
这些 NIC 在需要使用 VLAN 的桥所使用的绑定 (bond0) 上使用。
我可以在 VLAN10 上运行的客户机之间建立连接,但是无法从任何客户机访问主机(10.1.10.3)。
由于我不是网络专家 - 我只是正在建立一个小型实验室 - 我可以就这个问题寻求一些指导吗?
如果需要更多信息,请告诉我。
多谢
系统安装:
cat /etc/debian_version
6.0.7
正在使用的内核:
uname -r
3.2.0-0.bpo.4-amd64
以太网控制器
lspci | grep -i ether
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
。
# The loopback network interface
auto lo
iface lo inet loopback
# bond0 network interface
auto bond0
iface bond0 inet manual
pre-down ethtool -s $IFACE wol g
bond-slaves eth0 eth1
bond-primary eth0
bond-mode 1
bond-miimon 100
bond-downdelay 200
bond-updelay 200
auto virbr1
iface virbr1 inet static
address 192.168.1.3
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1
dns-search home.brain
dns-nameservers 192.168.1.1 8.8.8.8
bridge_ports bond0
bridge_stp off # disable Spanning Tree Protocol
bridge_waitport 0 # no delay before a port becomes available
bridge_fd 0 # no forwarding delay
## default bridge can not have it own hardware value
## it has to have the same MAC as the bond
## hwaddress ether 02:01:02:03:04:11
auto virbr10
iface virbr10 inet static
address 10.1.10.3
broadcast 10.1.10.255
netmask 255.255.255.0
# gateway 10.1.10.1
dns-search mngt.brain
dns-nameservers 10.1.10.253
vlan-raw-device bond0
bridge_ports bond0.10
bridge_stp off # disable Spanning Tree Protocol
bridge_waitport 0 # no delay before a port becomes available
bridge_fd 0 # no forwarding delay
hwaddress ether 02:01:02:03:04:12
auto bond0.20
iface bond0.20 inet manual
auto virbr20
iface virbr20 inet static
address 10.1.20.3
netmask 255.255.255.0
broadcast 10.1.20.255
network 10.1.20.0
# pre-up brctl addbr virbr20
bridge_ports bond0.20
bridge_stp off # disable Spanning Tree Protocol
bridge_waitport 0 # no delay before a port becomes available
bridge_fd 0 # no forwarding delay
hwaddress ether 02:01:02:03:04:13