相同vlan 端口隔离
程序员文章站
2022-07-02 21:00:15
...
相同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
下一篇: 华为端口隔离技术