×

华为交换机配置端口隔离port-isolate

hqy hqy 发表于2021-06-18 08:37:21 浏览1475 评论0

抢沙发发表评论

  1. 组网需求

    如图1所示,要求PC1与PC2之间不能互相访问,PC1与PC3之间可以互相访问,PC2与PC3之间可以互相访问。

    配置端口隔离功能

    # 配置端口隔离模式为二层隔离三层互通。

    <Quidway> system-view

    [Quidway] port-isolate mode l2

  2. # 配置Ethernet0/0/1的端口隔离功能。

    <Quidway> system-view

    [Quidway] interface ethernet 0/0/1

    [Quidway-Ethernet0/0/1] port-isolate enable group 1

    [Quidway-Ethernet0/0/1] quit

  3. # 配置Ethernet0/0/2的端口隔离功能。

    <Quidway> system-view

    [Quidway] interface ethernet 0/0/2

    [Quidway-Ethernet0/0/2] port-isolate enable group 1

    [Quidway-Ethernet0/0/2] quit

  4. ethernet 0/0/3 无需加入端口隔离组,处于隔离组的各个端口间不能通信

  5. 查看当前配置


    disp cur  


    #

     sysname Quidway

    #

    interface Ethernet0/0/1

     port-isolate enable group 1

    #

    interface Ethernet0/0/2

     port-isolate enable group 1

    #

    interface Ethernet0/0/3

    #

    return

  6. 8

    验证配置结果:



    PC1和PC2不能互相ping通。


    PC1和PC3可以互相ping通。


    PC2和PC3可以互相ping通。


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/1752.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客