在主板故障之后,我升级了我的系统,用Mate 16.04重建了系统磁盘(这是我以前运行的)。我已经安装了一个双NIC,在bios中禁用了车载NIC,并花费了过去6个小时试图连接这两个NIC,但没有成功。我已经为IEEE802.3adLACP连接设置了交换机(Netgear GS108T)。我尝试了以下各种变体:(连接模式加载在etc/模块中,如果安装并更新了ifenslave )
sudo service NetworkManager stop
sudo modprobe bonding
sudo pluma /etc/network/interfaces我输入了以下内容
# eth0 is manually configured, and slave to the "bond0" bonded NIC
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0
# eth1 ditto, thus creating a 2-link bond.
auto eth1
iface eth1 inet manual
bond-master bond0
# bond0 is the bonding NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
address x.x.x.x
gateway x.x.x.x
netmask 255.255.255.0
bond-mode 4
bond-miimon 100
bond-slaves none然后我重新启动服务并运行sudo ifup bond0,这导致超时,并且它无法连接任何一个nics。当我运行more /proc/net/bonding/bond0时,我得到了输出
Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0花了几个小时在这个和其他细微的变化上,我尝试了一种不同的方法,并尝试了我所见过的其他东西
auto bond0
iface bond0 inet static
address x.x.x.x
netmask 255.255.255.0
network x.x.x.x
gateway 0.0.0.0
bond-slaves none
bond-mode 0
auto eth1
iface eth1 inet manual
bond-master bond0
auto eth2
iface eth2 inet manual
bond-master bond0这仍然不起作用,当我试图打开键(无法绑定任何一个nic)时,但至少这次我得到了一个不同的输出,尽管是有限的(它显示键模式为LACP;我没有完整的输出)。
我现在已经放弃了,但我想解决这件事。有人能给我点光吗?
发布于 2018-03-14 21:22:53
我知道我哪里出了问题
sudo ifup bond0没有正确激活键。重新启动个人电脑做到了这一点,这一切都成功了。
我可以告诉你,这是一个非常恰当的时刻!这些天我只是不习惯重新启动linux机器,任何人都会认为我还在Windows上:-D
https://askubuntu.com/questions/1013559
复制相似问题