admin管理员组

文章数量:1636955

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档

文章目录

  • 前言
  • 一、首先根据第一部分将基础设备及连线框架搭建好,并且备注交换机名称和端口号,方便整理思路
  • 二、使用步骤
    • SWA
    • SWB
    • SWA
    • SWC
    • 最后,看一下是否配置成功
    • 如果出错可以通过no channel-group 命令关闭以太通道,再进行trunk
  • 效果


前言

Packet Tracer - Implement EtherChannel

Objectives
Part 1: Build the network

Part 2: Configure EtherChannel

Background
You have been assigned the task of designing an EtherChannel implementation for a company that wants to improve the performance of their switch trunk links. You will try several different ways of implementing the EtherChannel links in order to evaluate which is the best for the company. You will build the topology, configure trunk ports, and implement LACP and PAgP EtherChannels.

Instructions
Part 1: Build the network.
Use the table below to build the switch topology.

Step 1: Obtain the devices that are required.
a. Click the Network Devices icon in the bottom tool bar.

b. Click the Switches entry in the submenu.

c. Locate the 2960 switch icon. Click and drag the icon for the 2960 switch into the topology area.

d. Repeat the step above so that there are three 2960 switches in the topology area.

e. Arrange the devices into a layout that you can work with by clicking and dragging.

Step 2: Name the devices.
The devices have default names that you will need to change. You will name the devices SWA, SWB, and SWC. You are changing the display names of the devices. This is the text label that appears below each device. It is not the host name. Your display names must match the names that are given in this step exactly. If a display name does not match, you will not be scored for your device configuration.

a. Click the device display name that is below the device icon. A text field should appear with a flashing insertion point. If the configuration window for the device appears, close it and try again by clicking a little further away from the device icon.

b. Replace the current display name with the appropriate display name.

c. Repeat until all devices are named.

Step 3: Connect the devices.
a. Click the orange lightning bolt Connections icon in the bottom toolbar.

b. Locate the Ethernet straight-through cable icon. It looks like a solid black diagonal line.

c. To connect the device, click the Ethernet straight-through cable icon and then click the first device that you want to connect. Select the correct port and then click the second device. Select the correct port and the devices will be connected.

d. Connect the devices as specified in the table below.

Port Channel

Devices

Port Connections

Type

1

SWA to SWB

G0/1 to G0/1

PAgP

1

SWA to SWB

G0/2 to G0/2

2

SWA to SWC

F0/21 to F0/21

LACP

2

SWA to SWC

F0/22 to F0/22

3

SWB to SWC

F0/23 to F0/23

LACP

3

SWB to SWC

F0/24 to F0/24

Part 2: Configure EtherChannel
Open configuration window

On each switch, configure the ports that will be used in the Port Channels as static trunk ports.

Step 1: Configure a PAgP EtherChannel.
Follow the procedure that was used in previous activities to configure Port Channel 1 as a PAgP EtherChannel between SWA and SWB. Both sides should negotiate the EtherChannel.

Step 2: Configure a LACP EtherChannel.
Configure Port Channel 2 as an LACP channel between SWA and SWC. Both sides should negotiate the EtherChannel.

Step 3: Configure a Backup LACP EtherChannel
Configure Port Channel 3 channel as an LACP channel between SWB and SWC. In this case, SWC initiates negotiation with SWB. SWB does not initiate negotiation of the channel.


根据第二部分简介可知,需要将所有已使用的接口转化为trunk

第一步,将SWA和SWB连接端口通道需要配置为Cisco私有的端口聚合协议(Port Aggregation Protocol,PAgP),并且双方都进行协商,那么SWA和SWB的g0/1和g0/2端口都需要设置为Desirable(期望)模式.

第二步,给SWA和SWC配置常规使用的链路聚合控制协议(Link Aggregation Control Protocol,LACP),并且端口双方都需要协商,那么SWA和SWC的f0/21和f0/22端口都需要设置为Active(主动)模式.

第三步,将端口通道3通道配置为SWB和SWC之间的LACP通道。在这种情况下,SWC启动与SWB的协商。SWB不会启动通道的协商。所以SWC的f0/23和f0/24端口设置为Active(主动)模式,而SWB的f0/23和f0/24端口设置为Passive(被动)模式

一、首先根据第一部分将基础设备及连线框架搭建好,并且备注交换机名称和端口号,方便整理思路

二、使用步骤

第一步、配置SWA和SWB的链路聚合,对SWA和SWB进行重命名,进入g0/1-2端口,设置trunk,将接口加入以太通道并配置模式

SWA

SWA>enable
SWA#config
Configuring from terminal, memory, or network [terminal]? 
Enter configuration commands, one per line.  End with CNTL/Z.
SWA(config)#interface range g0/1-2
SWA(config-if-range)#switchport mode trunk
SWA(config-if-range)#channel-group 1 mode desirable

SWB

Switch>enable
Switch#config
Configuring from terminal, memory, or network [terminal]? 
Enter configuration commands, one per line.  End with CNTL/Z
Switch(config)#hostname SWB
SWB(config)#interface range g0/1-2
SWB(config-if-range)#switchport mode trunk
SWB(config-if-range)#channel-group 3 mode active
SWB(config-if-range)#channel-group 3 mode passive

第二步、配置SWA和SWC,不同之处在于端口和以太通道名称及模式

SWA

SWA(config)#interface range f0/21-22
SWA(config-if-range)#switchport mode trunk
SWA(config-if-range)#channel-group 2 mode active

SWC

Switch>enable
Switch#config
Configuring from terminal, memory, or network [terminal]? 
Enter configuration commands, one per line.  End with CNTL/Z
Switch(config)#hostname SWC
SWC(config)#interface range f0/23-24
SWC(config-if-range)#switchport mode trunk
SWC(config-if-range)#channel-group 3 mode passive
SWC(config-if-range)#channel-group 3 mode active

最后,看一下是否配置成功


如果出错可以通过no channel-group 命令关闭以太通道,再进行trunk

这是我一段配置错误修改

SWB(config)#interface range f0/21-22
SWB(config-if-range)#no channel-group

效果

本文标签: PacketTraceretherchannelimplement