第一步:
sw1(config)#int r f0/21 -22
sw1(config-if-range)#no sw
sw1(config-if-range)#channel-group 5 mo on
sw4(config)#int r f0/21 -22
sw4(config-if-range)#no sw
sw4(config-if-range)#channel-group 3 mo on
第二步:测试
w4#sh et 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
------+-------------+-----------+-----------------------------------------------
3 Po3(RU) - Fa0/21(P) Fa0/22(P)
sw1#sh et 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: 3
Number of aggregators: 3
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
5 Po5(RU) - Fa0/21(P) Fa0/22(P)
第三步:
sw1(config)#int port-channel 5
sw1(config-if)#ip add 192.168.1.1 255.255.255.0
sw4(config)#int port-channel 3
sw4(config-if)#ip add 192.168.1.2 255.255.255.0
第四步:测试
sw1#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms