如何配置隔離組使二層之間不能相互通信,但可以與外部網絡通信。

組網要求:hostA hostB hostC 分別與Device的端口g1/0/1,g1/0/2,g1/0/3相連,Device通過g1/0/4與外部網絡相連,現要求hostA hostB hostC 三者之間不能相互通信,但可與外部網絡通信。
配置步驟如下:
1.創建隔離組2
<Device>system-view
[Device]port-isolate group 2

2.將端口g1/0/1,g1/0/2,g1/0/3加入隔離組2中
[Device]int g1/0/1
[Device-Gigab it Ethernet1/0/1]port-isolate enable group 2
[Device-Gigab it Ethernet1/0/1]quit
[Device]int g1/0/2
[Device-Gigab it Ethernet1/0/2]port-isolate enable group 2
[Device-Gigab it Ethernet1/0/2]quit
[Device]int g1/0/3
[Device-Gigab it Ethernet1/0/3]port-isolate enable group 2
[Device-Gigab it Ethernet1/0/3]quit

驗證配置:
1.顯示隔離組2中的信息
[Device]display port-isolate group 2
Port-isolation group information :
Group ID:2
Group members:
G1/0/1
G1/0/2
G1/0/3

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章