etherchannel配置
手动配置etherchannel
S1
interface port-channel 1
exit
interface range gigabitEthernet 0/1-2
channel-group 1 mode on
switchport trunk encapsulaition dot1q
switchport mode trunk
exit
port-channel load-balance dst-ip
S2
interface port-channel 2 两边的编号可以不一样,只是本地有效而已
exit
interface range gigabitEthernet 0/1-2
channel-group 2 mode on
switchport trunk encapsulation dot1q
switchport mode trunk
exit
port-channnel load-balance dst-ip
配置pagp 和lacp
S1
interface port-channel 1
exit
interface range gigabitEthernet 0/1-2
channel-procotol pagp
channel-group 1 mode desirable
switchport trunk encapsulaiton dot1q
switchport mode trunk
interface port-channel 2
exit
interface range gigabitEthernet 0/1-2
channel-procotol pagp
channel-group 2 mode auto
switchport trunk encapsulation dot1q
switchport mode trunk
实验调试
show etherchannel summary
Switch#show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------------
1 Po1(SU) PAgP Gig0/1(P) Gig0/2(P)
show etherchannel prot-channel
Switch#show etherchannel port-channel
Channel-group listing:
----------------------
Group: 1
----------
Port-channels in the group:
---------------------------
Port-channel: Po1
------------
Age of the Port-channel = 00d:00h:20m:19s
Logical slot/port = 2/1 Number of ports = 2
GC = 0x00000000 HotStandBy port = null
Port state = Port-channel
Protocol = PAGP
Port Security = Disabled
Ports in the Port-channel:
Index Load Port EC state No of bits
------+------+------+------------------+-----------
0 00 Gig0/2 Desirable-Sl 0
0 00 Gig0/1 Desirable-Sl 0
Time since last port bundled: 00d:00h:17m:41s Gig0/1
附件:
Switch(config-if-range)#channel-group 1 mode ?
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected
Switch(config-if-range)#channel-protocol ?
lacp Prepare interface for LACP protocol
pagp Prepare interface for PAgP protocol