在麒麟操作系统中,可以使用以下命令查看bond0为动态链路聚合的成员端口以及是否为lacp协议:
ip link show bond0
输出将类似以下内容:
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noqueue state UP mode 802.3ad group default link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff inet 192.168.1.100/24 brd 192.168.1.255 scope global bond0 inet6 fe80::200:ff:fe00:0000/64 scope link link-layer bond 00:00:00:00:00:00
从输出中可以看到,bond0网卡的链路聚合模式为802.3ad
,即动态链路聚合,使用的协议为LACP。
也可以使用以下命令查看bond0的链路聚合状态:
ethtool bond0
输出将类似以下内容:
Settings for bond0:
Driver: bonding
Link detected: yes
Slave Interface: eth0
Link detected: yes
Slave Interface: eth1
Link detected: yes
Bonded slaves: 2
Active slaves: 2
Bond mode: 802.3ad
Transmit hash policy: layer2+3
MII Status: up
Link partner detected: yes
从输出中可以看到,bond0网卡的从属网卡为eth0和eth1,链路聚合模式为802.3ad
,使用的协议为LACP。