文章目录
内容包括生成树协议解决网络环路,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