华为端口隔离高级用法经典案例

最终效果:

pc4不能ping通pc5,pc5能ping通pc4

pc1不能和pc2、pc3通,但pc2和pc3能互通

vlan batch 2

interface Vlanif1

ip address 10.0.0.254 255.255.255.0

interface Vlanif2

ip address 192.168.2.1 255.255.255.0

interface MEth0/0/1

interface GigabitEthernet0/0/1 //一个口子能加入多个隔离组

port-isolate enable group 1

port-isolate enable group 2

interface GigabitEthernet0/0/2

port-isolate enable group 1

interface GigabitEthernet0/0/3

port-isolate enable group 2

interface GigabitEthernet0/0/4

interface GigabitEthernet0/0/5

am isolate GigabitEthernet0/0/4

//配置单通4口的pc不能访问5口的pc,但5口可以访问4口的pc

interface GigabitEthernet0/0/6

port link-type access

port default vlan 2

相关推荐
23zhgjx-zgx13 小时前
OSPF:虚链路
网络·tcp/ip·华为·智能路由器·ensp
Georgewu14 小时前
【HarmonyOS Next】鸿蒙应用弹框和提示气泡详解(一)
前端·华为·harmonyos
今阳15 小时前
鸿蒙开发笔记-11-LazyForEach 数据懒加载
android·华为·harmonyos
坚果的博客15 小时前
鸿蒙版Flutter快递查询助手
flutter·华为·harmonyos
轻口味15 小时前
【每日学点HarmonyOS Next知识】状态栏控制、片段按钮点击回调、绘制组件、取消按钮与输入框对齐、父调子组件方法
pytorch·华为·harmonyos·harmonyosnext
花先锋队长15 小时前
鸿蒙生态日日新,夸克、顺丰速运、驾校一点通等多款应用功能更新
华为·harmonyos
zzialx15 小时前
HarmonyOS:基于hmrouter实现Page的生命周期监听
华为·harmonyos
遇到困难睡大觉哈哈18 小时前
HarmonyOS 音频录制与播放模块
华为·音视频·harmonyos·鸿蒙
沧海一笑-dj1 天前
【鸿蒙开发】OpenHarmony调测工具hdc使用教程(应用开发者)
华为·harmonyos·鸿蒙·openharmony·hdc·调测工具