分类: 系统运维
2013-01-22 14:43:05
步骤:
1、创建以太通道
2、在接口下把接口指定到已创建的通道中
3、在以太通道接口下指定双工模式、速率和 TRUNK
4、负载平衡
SW1(config)#int port-channel 1
SW1(config)#int f0/13
SW1()#channel-group 1 mode on
SW1(config-if)#int f0/14
SW1(config-if)#channel-group 1 mode on
SW1(config-if)#exit
SW1(config)#int port-channel 1
SW1(config-if)#switchport mode trunk
SW1(config-if)#duplex full
SW1(config-if)#exit
SW1(config)#port-channel load-balance dst-mac
Warning: Delete and re-create existing port channels to apply new load balance method to them/////要重起接口
SW1(config)#int port-channel 1
SW1(config-if)#sh
SW1(config-if)#no sh
SW1(config-if)#^Z
SW1#
*Mar 1 03:23:27.543: %EC-5-BUNDLE: Interface Fa0/13 joined port-channel Po1
*Mar 1 03:23:28.483: %EC-5-BUNDLE: Interface Fa0/14 joined port-channel Po1
*Mar 1 03:23:28.627: %DTP-5-TRUNKPORTON: Port Fa0/13-14 has become dot1q trunk
*Mar 1 03:23:28.631: %SYS-5-CONFIG_I: Configured from console by console
*Mar 1 03:23:29.383: %LINK-3-UPDOWN: Interface FastEthernet0/13, changed state to up
*Mar 1 03:23:29.391: %LINK-3-UPDOWN: Interface FastEthernet0/14, changed state to up
SW1#
*Mar 1 03:23:29.623: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
*Mar 1 03:23:30.383: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/13, changed state to up
*Mar 1 03:23:30.391: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/14, changed state to up
SW1#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/13(P) Fa0/14(P) /////////SU表示正常,SD表示要重起通道接口
SW1#
-----------------------------------------------------------------------
SW2(config)#int port-channel 1
SW2(config-if)#int f0/13
SW2(config-if)#channel-group 1 mode on
SW2(config-if)#int f0/14
SW2(config-if)#channel-group 1 mode on
SW2(config-if)#exit
SW2(config)#int port-channel 1
SW2(config-if)#switchport mode trunk
SW2(config-if)#duplex full
SW2(config-if)#exit
SW2(config)#port-channel load-balance dst-mac
SW2#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(SD) Fa0/13(D) Fa0/14(D) ///////////表示要重起
SW2(config)#int port-channel 1
SW2(config-if)#sh
SW2(config-if)#no sh
SW2(config-if)#^Z
SW2#^Z
SW2#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/13(P) Fa0/14(P)
SW2#