華爲交換機端口隔離配置

  1. 請自行準備好華爲交換機和電腦ui

    而且讓你的電腦和交換機鏈接上blog

  2.  

    組網需求it

    如圖1所示,要求PC1與PC2之間不能互相訪問,PC1與PC3之間能夠互相訪問,PC2與PC3之間能夠互相訪問。class

    華爲交換機配置端口隔離port-isolate
  3.  

    配置端口隔離功能配置

    # 配置端口隔離模式爲二層隔離三層互通。im

    <Quidway> system-view通信

    [Quidway] port-isolate mode l2img

  4.  

    # 配置Ethernet0/0/1的端口隔離功能。端口

    <Quidway> system-viewdi

    [Quidway] interface ethernet 0/0/1

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

    [Quidway-Ethernet0/0/1] quit

  5.  

    # 配置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

  6.  

    ethernet 0/0/3 無需加入端口隔離組,處於隔離組的各個端口間不能通訊

  7.  

    查看當前配置

     

    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

  8. 8

    驗證配置結果:

     

     

    PC1和PC2不能互相ping通。

     

    PC1和PC3能夠互相ping通。

     

    PC2和PC3能夠互相ping通。

相關文章
相關標籤/搜索