打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
交换机端口捆绑配置方法(port-channel配置)
配置EtherChannel
以太通道捆绑几个以太端口为一个独立的逻辑链路。如4006交换机,你可以捆绑在4006任何模块上最多8个兼容的具有相同速率的端口。每个以太通道具有一个port-channel端口号。要捆绑一个以太通道时,会产生一个逻辑port-channel端口,逻辑端口下的配置可影响与之捆绑的物理端口,但物理端口下的配置不能影响逻辑端口的配置。
1) 三层以太通道(逻辑port-channe)的配置
Switch# configure terminal
Switch(config)# interface port-channel 1           //   创建一个逻辑端口
Switch(config-if)# ip address 172.32.52.10 255.255.255.0
Switch(config-if)# end

2) 三层物理端口配置
Switch# configure terminal
Switch(config)# interface range fastethernet 5/4 – 5 (注意: 空格是必需的)
Switch(config-if)# no switchport       //   改变该端口为三层接口
Switch(config-if)# no ip address       //   确认接口没有配置IP地址
Switch(config-if)# channel-group 1 mode desirable
Switch(config-if)# end

附: Switch(config-if)# channel-group port_channel_number mode {auto | desirable | on}   // 将该物理端口加入一个以太通道中,并确定PagP模式。

3) 二层以太通道配置
Switch# configure terminal
Switch(config)# interface range fastethernet 5/6 - 7 (注意: 空格是必需的)
Switch(config-if-range)# channel-group 2 mode desirable
Switch(config-if-range)# end
Switch# show running-config interface port-channel 2
Building configuration...
Current configuration:
!
interface Port-channel2
switchport access vlan 10
switchport mode access
end       
Switch#

?        如何作端口聚合
如果要配置二台6509之间的Trunk联接,首先将二6509用千兆光纤相联好,然后分别配置二相联端口的trunk,可以是只用一双光纤,或用二对光纤做port channel,配置如下:
一双光纤相联时,分别在二台65上进行以下的配置:

interface GigabitEthernet1/1 
   no ip address 
   switchport 
   switchport trunk encapsulation dot1q 
   switchport trunk native vlan 1 
  
二对光纤相联时,必须要做port channel,分别在二台65上进行以下的配置:
interface port-channe1 
   no ip address 
   switchport 
   switchport trunk encapsulation dot1q 
   switchport trunk native vlan 1 

interface GigabitEthernet1/1 
   no ip address 
   duplex full
   speed 1000
switchport mode trunk
   switchport trunk encapsulation dot1q 
   switchport trunk native vlan 1 
   channel-group 1 mode on 

interface GigabitEthernet1/2 
   no ip address
   duplex full
   speed 1000
switchport mode trunk
   switchport trunk encapsulation dot1q 
   switchport trunk native vlan 1 
   channel-group 1 mode on
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
交换机命令
总结:华为、H3C、锐捷三家交换机配置命令详解
交换机上的trunk,hybrid,access配置和应用
最全的交换机知识汇总集,看完就明白
配置交换机端口工作模式 - 中国建站联盟
VLAN的基本配置命令
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服