0
点赞
收藏
分享

微信扫一扫

网络集成期末重点4

金刚豆 2022-01-05 阅读 96
网络

链路聚合:(思科4.2.1.3)

 

第 1 部分:配置基本开关设置

步骤 1:配置基本开关参数。

根据拓扑图为每个交换机分配一个主机名。

Switch(config)# hostname S1

Switch(config)# hostname S2

Switch(config)# hostname S3

将所有必需的端口配置为中继,具体取决于设备之间的连接。

S1(config)# interface range g0/1 - 2

switchport mode trunk

interface range f0/21 - 22

switchport mode trunk

end



S2(config)# interface range g0/1 - 2

switchport mode trunk

interface range f0/23 - 24

switchport mode trunk

end



S3(config)# interface range f0/21 - 24

switchport mode trunk

end

第 2 部分:使用思科 PAgP 配置以太网通道

步骤 1:配置端口通道 1。

在两个交换机上,将端口 F0/21 和 F0/22 添加到端口通道 1,并采用理想的通道组 1 模式"理想的模式选项使交换机能够主动协商以形成 PAgP 链路。

S1(config)# interface range f0/21-22

shutdown

channel-group 1 mode desirable

no shutdown



S3(config)# interface range f0/21 - 22

shutdown

channel-group 1 mode desirable

no shutdown

第 3 部分:配置 802.3ad LACP 以太网通道

步骤 1:配置端口通道 2。

使用前面的命令,将端口 G0/1 和 G0/2 上的 S1 和S2之间的链路配置为 LACP 以太网通道。 您必须在 S1 上使用与1不同的端口通道号,因为在上一步中已经使用了该端口号。要将端口通道配置为 LACP,请使用接口配置模式通道组编号模式主动主动模式,指示交换机主动尝试将该链路协商为 LACP,而不是 PAgP。

S1(config)# interface range g0/1 - 2

shutdown

channel-group 2 mode active

no shutdown



S2(config)# interface range g0/1 - 2

shutdwon

channel-group 2 mode active

no shutdown

第 4 部分:配置冗余以太网通道链路

请将S1配置为 VLAN 1的主根目录,或将优先级设置为24576。

S1(config)# spanning-tree vlan 1 root primary

or

S1(config)# spanning-tree vlan 1 priority 24576
举报

相关推荐

0 条评论