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

在这里插入图片描述
最终效果:
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

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-07 22:10:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-07 22:10:01       101 阅读
  3. 在Django里面运行非项目文件

    2024-01-07 22:10:01       82 阅读
  4. Python语言-面向对象

    2024-01-07 22:10:01       91 阅读

热门阅读

  1. C++中的面向对象重点总结

    2024-01-07 22:10:01       69 阅读
  2. C#VB.net如何增加WinForms中复选框的大小?

    2024-01-07 22:10:01       64 阅读
  3. DOS小白手册(DOS的基本使用)

    2024-01-07 22:10:01       54 阅读
  4. Autosar PNC网络管理配置(1)-基于ETAS软件

    2024-01-07 22:10:01       58 阅读
  5. 微信小程序如何使用天地图的逆地理编码api

    2024-01-07 22:10:01       57 阅读
  6. spring 项目配置中一些问题和使用方法

    2024-01-07 22:10:01       59 阅读
  7. DevOps(7)

    2024-01-07 22:10:01       53 阅读