LACP模式链路聚合配置;
两台三层交换机连接3口,两个使用链路,第三个做活动链路
SW1:
interface eth-trunk 1 #创建eth-trunk
mode lacp-static #自动模式
mac active-linknumber 2 #接口连接最大2 第三个活动备链路
trunkport gigabitethernet 0/0/1 to 0/0/3 #接口加入eth-trunk 1
port link-type trunk #模式trunk
port trunk allow-pass vlan 10 20 #加入vlan 10 20 默认1
quit
lacp priority 3000 #SW1优先级 默认32768
SW2:
interface eth-trunk 1
mode lacp-static
mac active-linknumber 2
trunkport gigabitethernet 0/0/1 to 0/0/3
port link-type trunk
port trunk allow-pass vlan 10 20
quit
查询:display interface eth-trunk 1
手动链路聚合
SW1:
interface eth-trunk 1 #创建eth-trunk
interface gigabitethernet 0/0/1 #接口1 加入eth-trunk 1
eth-trunk 1
interface gigabitethernet 0/0/2 #接口2 加入eth-trunk 1
eth-trunk 1
vlan 10 #创建vlan 10
interface vlanif 10 #创建vlanif 10
ip address 1.1.1.1 24 #vlanif10 配置IP
interface eth-trunk 1 #vlanif10加入eth-trunk 1
port link-type access #vlanif10 模式access
port default vlan 10 #加入vlan 10
SW2:
interface eth-trunk 1
interface gigabitethernet 0/0/1
eth-trunk 1
interface gigabitethernet 0/0/2
eth-trunk 1
vlan 10
interface vlanif 10
ip address 1.1.1.2 24
interface eth-trunk 1
port link-type access
port default vlan 10