1、交换机的端口划分VLAN
ZX210#con ter
Enter configuration commands, one per line. End with CTRL/Z.
ZX210(config)#sw
ZX210(config-swvlan)#interface smartgroup44
ZX210(config-swvlan-if-smartgroup44)#show this
ZX210(config-swvlan-if-smartgroup44)#switchport mode trunk
ZX210(config-swvlan-if-smartgroup44)#switchport trunk vlan 2008
ZX210(config-swvlan-if-smartgroup44)#show this
!<switchvlan>
switchport mode trunk
switchport trunk vlan 2008
2、查看是否存在端口聚合,
下面结果中43是有聚合,而44没有
ZX210(config-lacp-member-if-xgei-0/1/1/44)#show lacp internal # 展示所有聚合组
Smartgroup:43
Flags: * - Port is Active member Port
S - Port is requested in Slow LACPDUs
F - Port is requested in Fast LACPDUs
A - Port is in Active mode
P - Port is in Passive mode
Actor Agg LACPDUs Port Oper Port RX Mux
Port[Flags] State Interval Pri Key State Machine Machine
--------------------------------------------------------------------------------
xgei-0/1/1/43[FA*] ACTIVE 30 32768 0x2b21 0x3d CURRENT COLL&DIST
Smartgroup:44
Flags: * - Port is Active member Port
S - Port is requested in Slow LACPDUs
F - Port is requested in Fast LACPDUs
A - Port is in Active mode
P - Port is in Passive mode
Actor Agg LACPDUs Port Oper Port RX Mux
Port[Flags] State Interval Pri Key State Machine Machine
--------------------------------------------------------------------------------
3、端口聚合
聚合端口配置,如xlgei-0/1/1/13、xlgei-1/1/1/13端口
#创建端口聚合组smartgroup1#
NS20(config)#interface smartgroup1
NS20(config-if-smartgroup1)#exit
#创建动态802.3ad链路聚合#
NS20(config)#lacp
NS20(config-lacp)#interface smartgroup1
NS20(config-lacp-sg-if-smartgroup1)#lacp mode 802.3ad
NS20(config-lacp-sg-if-smartgroup1)#exit
NS20(config-lacp)#exit
#将端口加到链路聚合组中#
NS20(config)#lacp
NS20(config-lacp)#interface xlgei-0/1/1/13
NS20(config-lacp-member-if-xlgei-0/1/1/13)#smartgroup 1 mode active (active指端口的模式,为主动协商模式,端口运行lacp)
NS20(config-lacp-member-if-xlgei-0/1/1/13)#ex
NS20(config-lacp)#interface xlgei-1/1/1/13
NS20(config-lacp-member-if-xlgei-1/1/1/13)#smartgroup 1 mode active
NS20(config-lacp-member-if-xlgei-1/1/1/13)#ex
NS20(config-lacp)#exit
NS20(config)#exit
配置完毕后,保存配置。
NS20#write
查看聚合端口:
NS20(config)#show lacp internal
常见问题:
由于做聚合之前,端口或者group做了VLAN导致聚合失败,需要提前检查并删除
ZX210(config-lacp-member-if-xgei-0/1/1/44)#smartgroup 44 mode active
%Error 11509: VLAN attributes of this port is not the same as the smartgroup interface
ZX210(config-swvlan-if-smartgroup44)#show this
ZX210(config-swvlan-if-smartgroup44)#exit
ZX210(config-swvlan)#int
ZX210(config-swvlan)#interface x
ZX210(config-swvlan)#interface xgei-0/1/1/44
ZX210(config-swvlan-if-xgei-0/1/1/44)#show this
!<switchvlan>
switchport mode trunk
switchport trunk vlan 708,2008
!</switchvlan>
ZX210(config-swvlan-if-xgei-0/1/1/44)#no sw
ZX210(config-swvlan-if-xgei-0/1/1/44)#no switchport mode
ZX210(config-swvlan-if-xgei-0/1/1/44)#show this
4、查看交换机网络拓扑
ZX210(config-swvlan-if-smartgroup44)#show lldp nei