Port-Channel 是配置层面上的一个物理端口组,配置到port group里面的物理端口才可以参加链路汇聚,并成为port channel里的某个成员端口。在逻辑上,port group 并不是一个端口,而是一个端口序列。加入port group 中的物理端口满足某种条件时进行端口汇聚,形成一个port channel,这个port channel 具备了逻辑端口的属性,才真正成为一个独立的逻辑端口。端口汇聚是一种逻辑上的抽象过程,将一组具备相同属性的端口,抽象成一个逻辑端口。Port-Channel 是一组物理端口的集合体,在逻辑上被当作一个物理端口。
Port-Channel 功能主要适合于以下方面具体应用:
从实际应用来讲,将这个Port-Channel 当作一个端口使用,日常使用中主要目的有以下几类:
配置Port-Channel时的注意事项:
以下为典型应用场景:
场景描述:
配置步骤:
[A站]dis current-configuration int Bridge-Aggregation 1
#
interface Bridge-Aggregation1
description BBONE
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
undo stp enable
[A站]dis current-configuration int Ten-GigabitEthernet 1/0/48
#
interface Ten-GigabitEthernet1/0/48
port link-mode bridge
description BBONE:
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
undo stp enable
port link-aggregation group 1
#
[A站]dis current-configuration int Ten-GigabitEthernet 2/0/48
#
interface Ten-GigabitEthernet2/0/48
port link-mode bridge
description BBONE:
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
undo stp enable
port link-aggregation group 1
#
return
[B站]dis current-configuration int Bridge-Aggregation 1
#
interface Bridge-Aggregation1
description BBONE
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
undo stp enable
#
return
[B站]dis current-configuration int Ten-GigabitEthernet 1/0/48
#
interface Ten-GigabitEthernet1/0/48
port link-mode bridge
description BBONE:
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
undo stp enable
port link-aggregation group 1
#
return
[B站]dis current-configuration int Ten-GigabitEthernet 2/0/48
#
interface Ten-GigabitEthernet2/0/48
port link-mode bridge
description BBONE:CSW4.PEK3-TE2/0/4 PEK3-TSN3-DF [Over 2nd-DWDM]
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
undo stp enable
port link-aggregation group 1
#
return
[A站]dis int Bridge-Aggregation 1 brief
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
BAGG1 UP 20G(a) F(a) T 1 BBONE:
[B站]dis int Bridge-Aggregation 1 brief
Brief information on interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
BAGG1 UP 20G(a) F(a) T 1 BBONE:
2. 新端口配置(图示红色线路)
[A站]dis current-configuration interface Ten-GigabitEthernet 1/0/26 == 端口配置必须与现网端口保持一致
#
interface Ten-GigabitEthernet1/0/26
port link-mode bridge
description BBONE:
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
shutdown== 端口必须提前处于Down状态
undo stp enable
port link-aggregation group 1
#
return
[A站]dis current-configuration interface Ten-GigabitEthernet 2/0/26 == 端口配置必须与现网端口保持一致
#
interface Ten-GigabitEthernet2/0/26
port link-mode bridge
description BBONE:
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
shutdown== 端口必须提前处于Down状态
undo stp enable
port link-aggregation group 1
#
return
[B 站]dis current-configuration int Ten-GigabitEthernet 1/0/26== 端口配置必须与现网端口保持一致
#
interface Ten-GigabitEthernet1/0/26
port link-mode bridge
description BBONE:
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
shutdown== 端口必须提前处于Down状态
undo stp enable
port link-aggregation group 1
#
return
[B 站]dis current-configuration int Ten-GigabitEthernet 2/0/26== 端口配置必须与现网端口保持一致
#
interface Ten-GigabitEthernet2/0/26
port link-mode bridge
description BBONE:
port link-type trunk
port trunk permit vlan all
speed 10000
duplex full
shutdown== 端口必须提前处于Down状态
undo stp enable
port link-aggregation group 1
#
3. 测试现网连通性
A站#ping 222.126.130.137 r 1000 size 1500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!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (1000/1000), round-trip min/avg/max = 1/1/5 ms
4. 逐步打开各个新增端口并测试连通性
通过测试连通性发现,整个升级过程中丢失了一个数据包。由此表明,Port-Channel升级端口对上层实际业务是没有任何影响
5. 查看升级后的结果
[A站]dis int Bridge-Aggregation 1 brief
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
BAGG1 UP 40G(a) F(a) T 1 BBONE:、
[B 站]dis int Bridge-Aggregation 1 brief
Brief information on interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
BAGG1 UP 40G(a) F(a) T 1 BBONE:
新端口负载流量
如果各位有技术问题或者技术方向解决方案需要交流,请进一步与我联系,我的联系方式如下:
王重阳 联系方式:183 0113 0843 微信号:183 0113 0843