交换机网络

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值