EtherChannel

SwitchA(config)#interface port-channel 1  //创建以太通道,指定一个唯一通道号
SwitchA(config)#int f0/0     
SwitchA(config-if)#channel-group 1 mode on    // 将物理接口指定到已经创建的通道中
SwitchA(config-if)#int f0/1
SwitchA(config-if)#channel-group 1 mode on   // 将物理接口指定到已经创建的通道中
SwitchA(config-if)#exit      
SwitchA(config)#int port-channel 1  配置通道中的物理接口的速率及双工等属性
SwitchA(config-if)#switchport mode trunk
SwitchA(config-if)#speed 100
SwitchA(config-if)#duplex full
  
SwitchA(config-if)#speed
SwitchA(config-if)#exit
SwitchA(config)#port-channel load-balance dst-mac   //配置Etherchannel的平衡方式
Warning: Delete and re-create existing port channels to apply new load balance method to them
SwitchA#sh etherchannel 
% Incomplete command.
SwitchA#sh etherchannel sum
SwitchA#sh etherchannel summary 
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        R - Layer3      S - Layer2
        U - in use
Group Port-channel  Ports
-----+------------+-----------------------------------------------------------
1     Po1(SU)     Fa0/0(P)   Fa0/1(P)  
 

 SwitchB(config)#interface port-channel 1  //创建以太通道,指定一个唯一通道号

SwitchB(config)#int f0/0
SwitchB(config-if)#channel-group 1 mode on   // 将物理接口指定到已经创建的通道中

SwitchB(config-if)#int f0/1
SwitchB(config-if)#channel-group 1 mode on  // 将物理接口指定到已经创建的通道中
SwitchB(config-if)#exit
SwitchB(config)#int port-channel 1      //配置通道中的物理接口的速率及双工等属性
SwitchB(config-if)#switchport mode trunk
SwitchB(config-if)#speed 100
 
SwitchB(config-if)#duplex full 
SwitchB(config-if)#exit
SwitchB(config)#port-channel load-balance dst-mac    //配置Etherchannel的平衡方式
SwitchB(config)#^Z
SwitchB#sh 
*Mar  1 00:11:08.599: %SYS-5-CONFIG_I: Configured from console by consoleeth
SwitchB#sh etherchannel sum
SwitchB#sh etherchannel summary 
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        R - Layer3      S - Layer2
        U - in use
Group Port-channel  Ports
-----+------------+-----------------------------------------------------------
1     Po1(SU)     Fa0/0(P)   Fa0/1(P)  
 


    本文转自hexianguo 51CTO博客,原文链接:http://blog.51cto.com/xghe110/88567 ,如需转载请自行联系原作者


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值