两种方法:
一、划分成不同的VLAN,灵活但是会浪费有限的VLAN资源
二、端口隔离配置命令
锐捷交换机配置端口隔离:
interface range f0/1-3
switchport protect
华为交换机配置端口隔离:
interface f0/0/1
port-isolate enable
interface f0/0/2
port-isolate enable
华为交换机一键清除端口隔离:
clear configuration port-isolate