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)  
 

你可能感兴趣的:(冗余,休闲,可靠性,交换,链路)