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

最终效果:

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

相关推荐
搬砖的kk3 小时前
从 0 到 1:react-native-screenshot-aware 鸿蒙适配实战(RNOH 0.84)
react native·华为·harmonyos
哈__4 小时前
Flutter 3.44.9 + OpenHarmony7:home_widget 三方库桌面服务卡片(FormKit)的应用
flutter·华为·harmonyos
Kevin Coding5 小时前
鸿蒙 emitter/EventHub 没有 Sticky 粘性事件?手写一个轻量级 EmitterManager 解决
前端·华为·前端框架·移动开发·harmonyos
体毛旺盛的猿6 小时前
HarmonyOS开发面试题
前端·华为·harmonyos
大雷神1 天前
HarmonyOS ArkGraphics 2D 自定义字体实操:注册字体并验证中文回退
pytorch·华为·harmonyos
大雷神1 天前
HarmonyOS ArkGraphics 2D 复杂文本排版实操:用 ParagraphBuilder 做资讯阅读卡片
华为·harmonyos
大雷神1 天前
HarmonyOS ArkGraphics 2D NativeImage 实操:获取 NativeWindow 与 SurfaceId
华为·harmonyos
小玮看世界1 天前
当“教用户配置系统“成为产品的遮羞布:从鸿蒙拦截栈与小红书联系机制看科技公司的“驯化式创新“
科技·华为·harmonyos
梦想不只是梦与想1 天前
鸿蒙 应用类型:企业应用
华为·harmonyos·企业应用
无限码力1 天前
华为非AI方向笔试真题【工厂落点最小加权路程】
算法·华为·华为非ai方向笔试真题·华为笔试真题·华为最新笔试真题·华为笔试题库