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

最终效果:

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

相关推荐
义一27 分钟前
华为---MUX VLAN简介及示例配置
华为
baobao熊12 小时前
【HarmonyOS】时间处理Dayjs
华为·harmonyos
GZ_TOGOGO12 小时前
【2024最新】华为HCIE认证考试流程
大数据·人工智能·网络协议·网络安全·华为
@海~涛19 小时前
鸿蒙OpenHarmony
华为·harmonyos
训山1 天前
【11】纯血鸿蒙HarmonyOS NEXT星河版开发0基础学习笔记-模块化语法与自定义组件
笔记·学习·华为·harmonyos·鸿蒙系统
helloxmg1 天前
鸿蒙harmonyos next flutter混合开发之开发package
flutter·华为·harmonyos
东林知识库2 天前
鸿蒙NEXT开发-自定义构建函数(基于最新api12稳定版)
华为·harmonyos
真正的醒悟2 天前
华为资源分享
运维·服务器·华为
鸿蒙自习室3 天前
鸿蒙网络管理模块04——网络连接管理
华为·harmonyos·鸿蒙·媒体
Yeats_Liao3 天前
华为开源自研AI框架昇思MindSpore应用案例:计算高效的卷积模型ShuffleNet
人工智能·深度学习·华为