大家好,我在按照本指南设置 Ubuntu Bonding 时遇到问题。
我的interfaces
文件看起来像这样:
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
auto iface inet static
address 10.1.10.30
netmask 255.255.255.0
dns-nameservers 10.1.10.50
gateway 10.1.10.2
bond-mode balance-rr
bond-miimon 100
bond-lacp-rate 1
bond-slaves none
Run Code Online (Sandbox Code Playgroud)
我可以从另一台 ISP 上的另一台计算机 ping Google 和我的外部静态 IP(我为它分配了一个与路由器的静态一对一 NAT 地址,并禁用了路由器的防火墙以进行故障排除)。但是,在 Ubuntu 机器上,我无法 ping 它的网关 10.1.10.2(即使它使用它来访问 Google 哈哈),也无法 ping 任何其他内部地址。
如果我注释掉绑定并且只使用 eth0 或 eth1 一切正常。有什么想法吗?