Cisco port channel

本文最后更新于 2024年6月12日 晚上

10001.png

Port-channel

链路聚合,主要用于将2个或多个端口捆绑成一个虚拟通道

在Pnet,EveNG模拟器的IOU中有时候会模拟不出来,但是直接的dynamic可以模拟出来,配置如下

具体的命令如下:

1
2
3
4
5
6
7
8
9
10
11
12
3750-route#configure terminal

3750-route(config)#interface port-channel 1

3750-route(config-if)#switchport mode trunk

3750-route(config-if)#switchport trunk encapsulation dot1q

3750-route(config-if)#switchport trunk allowed vlan 10

3750-route(config-if)#description xxxxxx

创建 port-channel 1 后,还需要在相应的端口上进行配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

interface GigabitEthernet1/0/5

description Port-channel-1

switchport trunk encapsulation dot1q

switchport mode trunk

channel-group 1 mode on

!

interface GigabitEthernet1/0/6

description Port-channel-1

switchport trunk encapsulation dot1q

switchport mode trunk

channel-group 1 mode on


>## channel-group 1 mode on 指定端属于某个channel-group

端口聚合查看命令(排错常用命令)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#查看端口聚合信息,正常情况Port-channel显示是SU,如果显示SD就不正常
>Switch#show etherchannel summary

>#更具体的命令:
Switch#sh etherchannel 3 summary 查PO3 汇总信息,即绑定哪些接口 做聚合
>1 Po1(SU) PAgP Fa0/23(P) Fa0/24(P)
2 Po2(SU) PAgP Fa0/21(P) Fa0/22(P)

>#查看通道接口状况
>Switch#show etherchannel load-balance //查看负载信息
>**Switch****#** **show etherchannel port-channel** **//****查看****port-channel****详细信息**

Switch#sh int trunk 查所有允许trunk 通道的VLAN
>更具体的命令:
>Switch#sh int port-channel 1 trunk 查po1 允许通过的vlan ,trunk 通道
>sh int etherchannel

3层port-channel

3层口做捆绑

1
2
3
4
5
6
7
8
9
10
11
12
>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)# exit

>Switch(config)# interface range gigabitethernet0/1 -2
>Switch(config-if-range)# no switchport
>Switch(config-if-range)# no ip address
>Switch(config-if-range)# channel-group 5 mode on
>Switch(config-if-range)# end

Cisco port channel
https://www.kwenyan.link/post/10007.html
作者
WenYan
发布于
2024年4月15日
许可协议