Cisco Port-Channel 设置(链路聚合)
2018-01-23 17:18
429 查看
Port-Channel 的在实际工作中的主要作用是将两个或多个端口捆绑成为一个虚拟通道。
interface Port-channel1
description port(1/0/5-6)
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10
switchport mode trunk
!
interface Port-channel2
description port(1/0/7-8)
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10
switchport mode trunk
!
interface Port-channel3
description port(1/0/9-10)
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10
switchport mode trunk
!
interface Port-channel4
description port(1/0/11-12)
shutdown
以上是我在Cisco 3750上做的配置,其中:
description port(1/0/5-6) 是对这个虚拟通道的描述,告知这个虚拟通道使用了端口1/0/ 的5和6端口
switchport trunk encapsulation dot1q 是强制虚拟通道使用dot 1q 来封装数据包
switchport trunk allowed vlan 10 是强制虚拟通道能够通过的VLAN,此例只有vlan10能通过此通道
switchport mode trunk 是强制为 triuk 模式
具体的命令如下:
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 后,还需要在相应的端口上进行配置
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 是 port-channel 1 可以调用此端口,换句话说:这个端口隶属于 port-channel 1
具体命令如下:
3750-route#configure terminal
3750-route(config)#interface range gigabitEthernet 1/0/5-6
3750-route(config-if)#switchport mode trunk
3750-route(config-if)#switchport trunk encapsulation dot1q
3750-route(config-if)#description xxxxxx
3750-route(config-if)#channel-group 1 mode on
interface Port-channel1
description port(1/0/5-6)
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10
switchport mode trunk
!
interface Port-channel2
description port(1/0/7-8)
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10
switchport mode trunk
!
interface Port-channel3
description port(1/0/9-10)
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10
switchport mode trunk
!
interface Port-channel4
description port(1/0/11-12)
shutdown
以上是我在Cisco 3750上做的配置,其中:
description port(1/0/5-6) 是对这个虚拟通道的描述,告知这个虚拟通道使用了端口1/0/ 的5和6端口
switchport trunk encapsulation dot1q 是强制虚拟通道使用dot 1q 来封装数据包
switchport trunk allowed vlan 10 是强制虚拟通道能够通过的VLAN,此例只有vlan10能通过此通道
switchport mode trunk 是强制为 triuk 模式
具体的命令如下:
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 后,还需要在相应的端口上进行配置
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 是 port-channel 1 可以调用此端口,换句话说:这个端口隶属于 port-channel 1
具体命令如下:
3750-route#configure terminal
3750-route(config)#interface range gigabitEthernet 1/0/5-6
3750-route(config-if)#switchport mode trunk
3750-route(config-if)#switchport trunk encapsulation dot1q
3750-route(config-if)#description xxxxxx
3750-route(config-if)#channel-group 1 mode on
相关文章推荐
- Cisco Port-Channel 设置 端口捆绑
- 设置port-channel cisco 35
- Cisco Port-Channel 设置端口捆绑方法
- juniper SRX防火墙和cisco 交换机链路聚合配置
- pfSense LAGG(链路聚合)设置
- Cisco堆叠配置步骤+链路聚合实例
- cisco 6509与h3c S5130做链路聚合
- cisco 端口/链路聚合配置
- 端口聚合Port-Channel
- cisco 3560交换机和H3C S5120 链路聚合配置实例。
- 在添加cisco Sw port-channel 中的vlan时的注意点(未测试)
- cisco port-channel配置
- cisco 3550和 cisco 2950的链路聚合
- 链路聚合-CISCO
- cisco port-channel配置
- 端口聚合-port-channel
- cisco 交换机链路聚合
- SRX与Cisco之间的port-channel配置
- Cisco 路由交换练习VLAN与设置汇聚链路
- H3C 交换机基本设置(telnet、SSH、链路聚合)