交换机关于环路、接口绑定、链路聚合的相关知识


内容包括生成树协议解决网络环路,mac地址与接口绑定实现设备接入,通过链路聚合提高网络可靠性。

新建相关拓扑
在这里插入图片描述

1、对交换机SW-1进行配置,仅允许Host-1通过Ethernet0/0/1接口与Host-3和Host-4通信,Host-2无法与其他主机通信。

在绑定前先进行测试当前拓扑的连通性
在这里插入图片描述
查看交换机的mac表
在这里插入图片描述
重启交换机SW-1,消除mac地址表动态项。
关闭交换机SW-1指定接口的mac地址学习功能

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]undo	
[Huawei]undo info	
[Huawei]undo info-center ena	
[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]sysnam	
[Huawei]sysname SW-1
[SW-1]inte	
[SW-1]interface Eth	
[SW-1]interface Ethernet 0/0/1
[SW-1-Ethernet0/0/1]mac-add	
[SW-1-Ethernet0/0/1]mac-address learn	
[SW-1-Ethernet0/0/1]mac-address learning disab	
[SW-1-Ethernet0/0/1]mac-address learning disable acti	
[SW-1-Ethernet0/0/1]mac-address learning disable action disca	
[SW-1-Ethernet0/0/1]mac-address learning disable action discard 
[SW-1-Ethernet0/0/1]quit
[SW-1]inte	
[SW-1]interface Eth	
[SW-1]interface Ethernet 0/0/2
[SW-1-Ethernet0/0/2]mac-address learning disable action discard
[SW-1-Ethernet0/0/2]quit
[SW-1]interface Ethernet 0/0/3
[SW-1-Ethernet0/0/3]mac-address learning disable action discard
[SW-1-Ethernet0/0/3]quit
[SW-1]interface Ethernet 0/0/4
[SW-1-Ethernet0/0/4]mac-address learning disable action discard
[SW-1-Ethernet0/0/4]quit
[SW-1]interface Ethernet 0/0/5
[SW-1-Ethernet0/0/5]mac-address learning disable action discard
[SW-1-Ethernet0/0/5]quit
[SW-1]interface Ethernet 0/0/6
[SW-1-Ethernet0/0/6]mac-address learning disable action discard
[SW-1-Ethernet0/0/6]quit
[SW-1]interface Ethernet 0/0/7
[SW-1-Ethernet0/0/7]mac-address 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

侬本多情。

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

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

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

打赏作者

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

抵扣说明:

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

余额充值