欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

相同vlan 端口隔离

程序员文章站 2022-07-02 21:00:15
...

相同vlan 端口隔离

相同vlan 端口隔离
注:相同隔离组的端口不能互访!

Sw1:
<Huawei>system-view 
[Huawei]un in en
[Huawei]sysname sw1
[sw1]vlan 10
[sw1-vlan10]quit
[sw1]port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/5
[sw1-port-group]port link-type access
[sw1-GigabitEthernet0/0/1]port link-type access
[sw1-GigabitEthernet0/0/2]port link-type access
[sw1-GigabitEthernet0/0/3]port link-type access
[sw1-GigabitEthernet0/0/4]port link-type access
[sw1-GigabitEthernet0/0/5]port link-type access
[sw1-port-group]port default vlan 10
[sw1-GigabitEthernet0/0/1]port default vlan 10
[sw1-GigabitEthernet0/0/2]port default vlan 10
[sw1-GigabitEthernet0/0/3]port default vlan 10
[sw1-GigabitEthernet0/0/4]port default vlan 10
[sw1-GigabitEthernet0/0/5]port default vlan 10
[sw1-port-group]quit
[sw1]int g0/0/3
[sw1-GigabitEthernet0/0/4]port-isolate enable group 1
[sw1-GigabitEthernet0/0/4]int g0/0/1
[sw1-GigabitEthernet0/0/1]port-isolate enable group 1