Ubuntu 18.04.4 LTS
大约 18 个月前,我成功地将两个网络适配器绑定/组合在一起,但我不记得我是如何做到的。今天我想对它进行一些配置更改,但所有指南都说要使用/etc/network/interfaces
,而没有提到bond0
。但bond0
运行没有问题,并且出现在我在网上找到的指南中提到的所有其他正确位置,并且配置在重新启动后仍然存在,没有问题。我还应该在哪里寻找我的配置来对其进行更改?
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
-
ifconfig bond0
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
ether 50:e5:49:ec:04:a3 txqueuelen 1000 (Ethernet)
RX packets 3474191336 bytes 4420057363170 (4.4 TB)
RX errors 2 dropped 0 overruns 0 frame 2
TX packets 1982143191 bytes 1495586643074 (1.4 TB)
TX errors 0 dropped 49 overruns 0 carrier 0 collisions 0
-
cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 1
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
System priority: 65535
System MAC address: 50:e5:49:ec:04:a3
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 2
Actor Key: 9
Partner Key: 66
Partner Mac Address: b4:fb:e4:1a:e2:57
.......
Netplan 更新 据我所知,这似乎不是 netplan:
/etc/netplan$ ls
01-network-manager-all.yam
/etc/netplan$ cat 01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
更新 2
ls -al /etc/network/interfaces.d
total 8
drwxr-xr-x 2 root root 4096 Apr 27 2018 .
drwxr-xr-x 7 root root 4096 Apr 1 20:14 ..
答案1
来自评论...
在 中terminal
,查看nm-connection-editor
或nmtui
。您会在那里找到 bond0。