cisco port-channel配置

cisco port-channel配置

ort-channel分爲2類.一類爲2層的port-channel.一類爲3層的 port-channel. 2層的port-channel只需要配physical interface就行了,可以是static access,也可以使trunk,但是必須一樣。不需要create port-channel。
    3層的port-channel要首先create port-channel,然後no switchport把port-channel變成L3 interface,加上IP地址。再進入physical interface,必須no ip address去掉physical interface的IP信息,然後直接channel-group加入EtherChannel就行了
example:
For L2 static access EtherChannel:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode desirable
Switch(config-if-range)# end

For L2 trunk EtherChannel:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# switchport trunk encapsulation isl
Switch(config-if-range)# switchport mode trunk
Switch(config-if-range)# channel-group 5 mode desirable
Switch(config-if-range)# end

驗證查看 sh int port-channel 5 trunk

For L3 EtherChannel:
Switch# configure terminal
Switch(config)# interface port-channel 5
Switch(config-if)# no switchport
Switch(config-if)# ip address 172.10.20.10 255.255.255.0
Switch(config-if)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# no ip address
Switch(config-if-range)# channel-group 5 mode desirable
Switch(config-if-range)# end

注意:在配置port-channel的端口上不能陪着端口鏡像,否則port-channel端口 報notconnect,日 志信息:

端口 will not join any port-channel, SPAN source ports are not allowed to be part of an etherchannel

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章