端口隔离port-isolate(二层隔离)

端口隔离port-isolate(二层隔离)


port-isolate mode
S2720-EI、S5720-LI、S5735-L、S5735S-L、S5735S-L-M、S5720S-LI、S6720-LI、S6720S-LI仅支持二层隔离三层互通,因此不支持此命令配置。

#HX
interface GigabitEthernet1/0/1
 eth-trunk 1
#
interface GigabitEthernet1/0/2
 eth-trunk 2
#
interface GigabitEthernet2/0/1
 eth-trunk 1
#
interface GigabitEthernet2/0/2
 eth-trunk 2
#
interface Eth-Trunk1
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 2 to 4094
 port-isolate enable group 1
#
interface Eth-Trunk2                
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 2 to 4094
 port-isolate enable group 1
#
#接入汇聚层仅配置上联交换机的下联口port-isolate
interface GigabitEthernet1/0/3
 port link-type access
 port default vlan 10
 port-isolate enable group 1
#
interface GigabitEthernet1/0/4
 port link-type access
 port default vlan 10
 port-isolate enable group 1
#
interface GigabitEthernet1/0/5
 port link-type access
 port default vlan 10
 port-isolate enable group 1
#
interface GigabitEthernet1/0/6
 port link-type access
 port default vlan 10                     
 port-isolate enable group 1
#
interface GigabitEthernet1/0/7
 port link-type access
 port default vlan 10
 port-isolate enable group 1

这里使用的都是华为S5720系列,仅支持二层隔离
测试结果
同交换机
相同vlan相同group 隔离
相同vlan不同group 互通
不同vlan相同group 互通
不同vlan不同group 互通

跨交换机(上联交换机下联口没有配置port-isolate)
全部互通

跨交换机(上联交换机下联口配置port-isolate)
相同vlan相同group 隔离
相同vlan不同group 互通
不同vlan相同group 互通
不同vlan不同group 互通

  • 1
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值