3.14 L2 Etherchannel basic configuration
Purpose:
1. master the basic configurations of L2 Etherchannle.
2. Understand the Etherchannel negotiation protocol.
Tutorial topology:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0621121C2-0.png "title =" 3.14.png "/>
Tutorial steps:
1. Deploy L2 etherchannels on SW1 and SW2 Based on the topology shown in the figure to bind links and provide link bandwidth. You can deploy L2 etherchannels in three ways:
① Forced mode: bind directly without any negotiation.
② Pagp mode: negotiate through the Cisco private protocol Pagp.
③ Lacp: negotiation is conducted through the industry standard protocol Lacp.
2. Deploy L2 Etherchannel in force mode. The configuration is as follows:
On SW1
SW1 (config) # int range f0/1-2
SW1 (config-if-range) # switchport trunk encapsulation dot1q
SW1 (config-if-range) # switchport mode trunk
SW1 (config-if-range) # channel-group 1 mode on [PL1]
SW1 (config-if-range) # exit
On SW2
SW2 (config) # int range f0/1-2
SW2 (config-if-range) # switchport trunk encapsulation dot1q
SW2 (config-if-range) # switchport mode trunk
SW2 (config-if-range) # channel-group 1 mode on
SW2 (config-if-range) # exit
View the Ethernet channel information as follows:
SW1 # show etherchannel summary
Flags:D-downP-in port-channel
I-stand-alone s-susponded
H-Hot-standby (LACP only)
R-Layer3S-Layer2
U-in useF-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
GroupPort-channelProtocolPorts
------ + ------------- + ----------- + ----------------------------------------------
1Po1 (SU)-Fa0/1 (P) Fa0/2 (P)
At this time, the Ethernet channel has been successfully established to view the physical information of the Ethernet channel, as shown below:
SW1 # show interfaces port-channel 1
Port-channel1 is up, line protocol is up
Hardware is EtherChannel, address is cc03.0a28. f000 (bia cc03.0a28. f000)
MTU 1500 bytes, BW 200000 Kbit, DLY 1000 usec,
Reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100 Mb/s
Members in this channel: Fa0/0 Fa0/1
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:01, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
We can see that the bandwidth of the Ethernet channel is 200 MB.
3. Use Pagp for negotiation and binding. The configuration is as follows:
On SW1
SW1 (config) # int range f0/1-2
SW1 (config-if-range) # switchport trunk encapsulation dot1q
SW1 (config-if-range) # switchport mode trunk
SW1 (config-if-range) # channel-protocol pagp [PL2]
SW1 (config-if-range) # channel-group 1 mode desirable [PL3]
On SW2
SW2 (config) # int range f0/1-2
SW2 (config-if-range) # switchport trunk encapsulation dot1q
SW2 (config-if-range) # switchport mode trunk
SW2 (config-if-range) # channel-protocol pagp
SW2 (config-if-range) # channel-group 1 mode auto
View the Ethernet channel status as follows:
SW1 # show etherchannel summary
Flags:D-downP-in port-channel
I-stand-alone s-susponded
H-Hot-standby (LACP only)
R-Layer3S-Layer2
U-in useF-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
GroupPort-channelProtocolPorts
------ + ------------- + ----------- + ----------------------------------------------
1Po1 (SU)PAgPFa0/1 (P) Fa0/2 (P)
We can see that L2 Etherchannel binding is implemented through the PagP protocol, and Lacp can also be used, which is skipped here. This experiment is complete.
[PL1]Put F0/1 and F0/2 into group1, where group is the local identifier, used to distinguish multiple local bundle groups.
[PL2]The PAGP or LACP protocol can be used.
[PL3]PAGP has desirable and auto modes, and LACP has active and passive modes.
========================================================== =
PingingLab· High quality ITEducation provider
CCIELab-ITProject Practice · customization of high-end Talents
Shenzhen pinke Information Technology Co., Ltd. · waihuan West Road Station, Guangzhou University City
Sina Weibo :@PingingLab@ PingingLab-Chen xinjie
PingingLabPublic Account: pinginglab
PingingLabTechnical Exchange Group: 240920680
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0621126331-1.jpg "title =" pinginglab .bmp "/>
This article from the "Chen xinjie network" blog, please be sure to keep this source http://chenxinjie.blog.51cto.com/7749507/1274493