首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Mate 16.04中的链接聚合问题

Mate 16.04中的链接聚合问题
EN

Ask Ubuntu用户
提问于 2018-03-10 01:36:43
回答 1查看 336关注 0票数 0

在主板故障之后,我升级了我的系统,用Mate 16.04重建了系统磁盘(这是我以前运行的)。我已经安装了一个双NIC,在bios中禁用了车载NIC,并花费了过去6个小时试图连接这两个NIC,但没有成功。我已经为IEEE802.3adLACP连接设置了交换机(Netgear GS108T)。我尝试了以下各种变体:(连接模式加载在etc/模块中,如果安装并更新了ifenslave )

代码语言:javascript
复制
sudo service NetworkManager stop
sudo modprobe bonding
sudo pluma /etc/network/interfaces

我输入了以下内容

代码语言:javascript
复制
# 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时,我得到了输出

代码语言:javascript
复制
Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

花了几个小时在这个和其他细微的变化上,我尝试了一种不同的方法,并尝试了我所见过的其他东西

代码语言:javascript
复制
   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;我没有完整的输出)。

我现在已经放弃了,但我想解决这件事。有人能给我点光吗?

EN

回答 1

Ask Ubuntu用户

发布于 2018-03-14 21:22:53

我知道我哪里出了问题

代码语言:javascript
复制
sudo ifup bond0

没有正确激活键。重新启动个人电脑做到了这一点,这一切都成功了。

我可以告诉你,这是一个非常恰当的时刻!这些天我只是不习惯重新启动linux机器,任何人都会认为我还在Windows上:-D

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1013559

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档