网络集成期末重点4

链路聚合:(思科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
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

钥钥睡着了

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值