端口隔离是为了在同一vlan下阻止某些端口之间不可以互相访问。
加入端口隔离相同组的内部成员之间不可以互通。
PC1和PC2不能互通,都可以访问PC3,PC3可以访问PC2不可以访问PC1
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center en
Info: Information center is disabled.
[Huawei]vlan 10
[Huawei-vlan10]q
[Huawei]port-group group-member e0/0/1 to e0/0/12
[Huawei-port-group]port link-type access
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-Ethernet0/0/5]port link-type access
[Huawei-Ethernet0/0/6]port link-type access
[Huawei-Ethernet0/0/7]port link-type access
[Huawei-Ethernet0/0/8]port link-type access
[Huawei-Ethernet0/0/9]port link-type access
[Huawei-Ethernet0/0/10]port link-type access
[Huawei-Ethernet0/0/11]port link-type access
[Huawei-Ethernet0/0/12]port link-type access
[Huawei-port-group]port default vlan 10
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei-Ethernet0/0/2]port default vlan 10
[Huawei-Ethernet0/0/3]port default vlan 10
[Huawei-Ethernet0/0/4]port default vlan 10
[Huawei-Ethernet0/0/5]port default vlan 10
[Huawei-Ethernet0/0/6]port default vlan 10
[Huawei-Ethernet0/0/7]port default vlan 10
[Huawei-Ethernet0/0/8]port default vlan 10
[Huawei-Ethernet0/0/9]port default vlan 10
[Huawei-Ethernet0/0/10]port default vlan 10
[Huawei-Ethernet0/0/11]port default vlan 10
[Huawei-Ethernet0/0/12]port default vlan 10
[Huawei-port-group]q
[Huawei]port-group group-member e0/0/1 e0/0/2
[Huawei-port-group]port-isolate en group 1
[Huawei-Ethernet0/0/1]port-isolate en group 1 //端口1加入隔离组1
[Huawei-Ethernet0/0/2]port-isolate en group 1 //端口2加入隔离组1
[Huawei-port-group]q
[Huawei]int e0/0/3
[Huawei-Ethernet0/0/3]am isolate e0/0/1 //e0/0/3端口不能访问e0/0/1