端口隔离把接口加入隔离组,同一组内的端口不能直接二层互通,但都可以与未加入隔离组的端口(通常是上行口和网关)通信。它只影响同一台设备的同一 VLAN,跨设备不会自动保持隔离;跨设备需要私有 VLAN 或其他机制。华为/H3C 多用隔离组,Cisco 用 protected port 或 private VLAN,Junos 用 private VLAN/隔离配置,具体以平台和版本为准。
启用隔离会立即切断隔离端口之间的现有会话,可能影响服务器集群心跳、存储复制或堆叠协议。变更前确认业务依赖、备份配置并保留上行口不在隔离组;回滚是关闭端口隔离或移除隔离组。以设备版本为准。
Huawei VRP
port-isolate mode l2
interface GigabitEthernet0/0/1
port-isolate enable group 1
interface GigabitEthernet0/0/2
port-isolate enable group 1
display port-isolate group 1
H3C Comware
port-isolate group 1
interface GigabitEthernet1/0/1
port-isolate enable group 1
interface GigabitEthernet1/0/2
port-isolate enable group 1
display port-isolate group 1
Cisco IOS
interface GigabitEthernet1/0/1
switchport protected
interface GigabitEthernet1/0/2
switchport protected
show interfaces GigabitEthernet1/0/1 switchport
Junos 在支持 private VLAN 的平台上配置 primary/isolated/community VLAN,或用 isolation 相关选项;不同 EX/QFX 版本差异较大,以设备版本为准。
合上页面,先回答,再展开对照。
小程序版
微信扫码,随时查命令