2015年1月22日 星期四

匯集交換器鏈路PAgP LACP

設定PAgP EtherChannel
S1(config)#port-channel load-balance src-dst-port
S1(config)#interface range gi0/1-4
S1(config-if)#channge-protocol pagp
S1(config-if)#channel-group 1 mode desirable non-silent

設定LACP EtherChannel
S1(config)#lacp system-priority 100
S1(config)#interface range gi0/1-2
S1(config-if)#channge-protocol lacp
S1(config-if)#channel-group 1 mode active
S1(config-if)#lacp port-priority 100 需要備援時
S1(config-if)#exit
S1(config)#interface range gi0/3-4
S1(config-if)#channge-protocol lacp
S1(config-if)#channel-group 1 mode active

確認狀態
S1#show etherchannel summary





STP

STP狀態
S1#show spanning interface gi0/1
S1#debug spanning-tree switch state

設定根橋接器
S1(config)#spanning-tree vlan 100 root primary
S1(config)#spanning-tree vlan 100 priority 0

設定交換埠的路徑成本
S1(config)#spanning-tree vlan 10 cost 2

啟用根防護
S1(config-if)#spanning-tree guard root

BPDU防護
啟用BPDU防護作為預設
S1(config)#spanning-tree portfast bpduguard default

啟用BPDU防護
S1(config-if)#spanning-tree bpduguard enable