1. <tt id="5hhch"><source id="5hhch"></source></tt>
    1. <xmp id="5hhch"></xmp>

  2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

    <rp id="5hhch"></rp>
        <dfn id="5hhch"></dfn>

      1. 三層交換實現vlan間路由配置實例詳解

        時間:2020-08-11 11:00:53 華為認證 我要投稿

        三層交換實現vlan間路由配置實例詳解2016

          華為三層交換機怎么實現vlan間路由配置呢?有哪些基本命令呢?下面yjbys小編為大家分享三層交換實現vlan間路由配置實例詳細介紹,僅供參考!

          一、實驗網絡拓撲:

          使用ENSP模擬器(版本V100R002C00 1.2.00.350)

          二、實驗需求:

          屬于vlan 10的C1能和屬于vlan 20的C3、C4及R1通信

          三、實驗步驟:

          A. IP地址及valn劃分規劃配置如下:

          C1:ip地址為192.168.10.10/24 屬于vlan 10

          C2: ip地址為192.168.20.20/24屬于vlan 20

          C3: ip地址為192.168.10.30/24屬于vlan 10

          C4: ip地址為192.168.20.40/24屬于vlan 20

          Sw1: vlan10 的網關為192.168.10.1/24

          vlan20 的網關為192.168.20.1/24

          G0/0/3屬于vlan100ip為201.100.100.1 /24

          R1:G0/0/0 ip為201.100.100.2/24

          B.配置腳本:

          1.交換機SW2的配置

          先在交換機上加VLAN 10 20,再設置接口傳輸模式為access口

          sy

          [Huawei]vlan bat 10 20 #批量加vlan10和20

          [Huawei]int e0/0/1

          [Huawei-Ethernet0/0/1]portlink-type ac

          [Huawei-Ethernet0/0/1]port link-typeaccess #接口類型為access

          [Huawei-Ethernet0/0/1]port defaultvlan 10 #讓接口屬于vlan10

          [Huawei-Ethernet0/0/1]inte0/0/2

          [Huawei-Ethernet0/0/2]portlink-type ac

          [Huawei-Ethernet0/0/2]portlink-type access

          [Huawei-Ethernet0/0/2]portde

          [Huawei-Ethernet0/0/2]portdefault vlan 20

          [Huawei-Ethernet0/0/2]intg0/0/1

          [Huawei-GigabitEthernet0/0/1]port link-type trunk #將g0/0/1設為trunk 中繼口

          [Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan 1 10 20

          #此中繼接口允許vlan1 10 20的數據過,也稱透傳

          用display vlan 查看配置結果如下圖

          l 給交換機SW2配IP地址和網關,便于遠程管理

          因為交換機的接口是二層接口不能陪IP,所以給交換機配IP只能為其VLAN虛擬口配IP

          [Huawei]int vlan 1

          [Huawei-Vlanif1]ip add192.168.1.254 24

          [Huawei-Vlanif1]q

          在華為模擬器上通過設默認路由的方式為其設置網關

          [Huawei]ip route-s

          [Huawei]ip route-static 0.0.0.0 0.0.0.0 192.168.1.1

          [Huawei]

          用display ip interface brief查看各接口配置

          2.交換機SW3的配置

          為交換機SW3配VLAN,接口傳輸模式為hybrid untagged模式,hybriduntagged模式不帶標簽相當于access模式,hybrid tagged模式帶標簽相當于trunk模式

          sy

          [Huawei]vlan bat 10 20

          [Huawei]interface e0/0/3

          [Huawei-Ethernet0/0/3]portlink-type hybrid #將接口類型設為hybrid混合接口,華為三層交換機接口默認就是hybrid,屬于這條命令可以不用寫

          [Huawei-Ethernet0/0/3]port hybridpvid vlan 10

          [Huawei-Ethernet0/0/3]porthy

          [Huawei-Ethernet0/0/3]porthybrid un

          [Huawei-Ethernet0/0/3]porthybrid untagged

          [Huawei-Ethernet0/0/3]porthybrid untagged vlan 10 #允許vlan10 的數據過且不帶標簽

          [Huawei-Ethernet0/0/3]inte0/0/4

          [Huawei-Ethernet0/0/4]porthybrid pvid vlan 20

          [Huawei-Ethernet0/0/4]porthybrid un

          [Huawei-Ethernet0/0/4]porthybrid untagged vlan 20

          [Huawei-Ethernet0/0/4]

          [Huawei-Ethernet0/0/4]intg0/0/1

          [Huawei-GigabitEthernet0/0/1]porthybrid pvid vlan 10

          [Huawei-GigabitEthernet0/0/1]porthybrid pvid vlan 20

          [Huawei-GigabitEthernet0/0/1]porthy

          [Huawei-GigabitEthernet0/0/1]porthybrid t

          [Huawei-GigabitEthernet0/0/1]porthybrid tagged vlan 10 20

          #允許vlan10 20的數據通過且帶標簽

          用display vlan查看vlan配置

          給交換機vlan1配ip地址和網關,便于遠程管理

          [Huawei-GigabitEthernet0/0/1]intvlan 1

          [Huawei-Vlanif1]ip add192.168.1.253 24

          [Huawei-Vlanif1]q

          [Huawei]ip route-s

          [Huawei]ip route-static 0.0.0.0 0.0.0.0 192.168.1.1

          [Huawei]

          結果如圖:

          3.三層交換機SW1的配置

          給交換機SW1配vlan

          sy

          [Huawei]vlan bat 10 20 100

          [Huawei]interface g0/0/1

          [Huawei-GigabitEthernet0/0/1]portlink-type trunk

          [Huawei-GigabitEthernet0/0/1]porttrunk allow-pass vlan 1 10 20

          [Huawei-GigabitEthernet0/0/1]intg0/0/2

          [Huawei-GigabitEthernet0/0/2]port hybridpvid vlan 1

          [Huawei-GigabitEthernet0/0/2]port hybridpvid vlan 10

          [Huawei-GigabitEthernet0/0/2]port hybridpvid vlan 20

          [Huawei-GigabitEthernet0/0/2]porthybrid un

          [Huawei-GigabitEthernet0/0/2]port hybriduntagged vlan 1 10 20

          [Huawei-GigabitEthernet0/0/2]intg0/0/3

          [Huawei-GigabitEthernet0/0/3]portlink-type ac

          [Huawei-GigabitEthernet0/0/3]portlink-type access

          [Huawei-GigabitEthernet0/0/3]portde

          [Huawei-GigabitEthernet0/0/3]portdefault vlan 100

          給vlan110 20 100配ip地址

          [Huawei-GigabitEthernet0/0/3]intvlan 1

          [Huawei-Vlanif1]ipadd 192.168.1.1 24

          [Huawei-Vlanif1]

          [Huawei]intvlan 10

          [Huawei-Vlanif10]

          [Huawei-Vlanif10]ip add192.168.10.1 24

          [Huawei-Vlanif10]

          [Huawei-Vlanif10]int vlan20

          [Huawei-Vlanif20]ip add192.168.20.1 24

          [Huawei-Vlanif20]

          [Huawei-Vlanif20]int vlan100

          [Huawei-Vlanif100]ip add201.100.100.1 24

          為交換機配默認路由

          [Huawei]iproute-s

          [Huawei]ip route-static 0.0.0.0 0.0.0.0 201.100.100.2

          結果如圖:

          4.路由器R1 的配置

          給路由器R1接口配ip地址和默認路由

          sy

          [Huawei]int g0/0/0

          [Huawei-GigabitEthernet0/0/0]ipadd 201.100.100.2 24

          [Huawei]ip route-s

          [Huawei]ip route-static 0.0.0.0 0.0.0.0 201.100.100.1

          用display ip int b查看接口配置,用displayip routing-t查看路由表,結果如圖

          4).驗證結果

          因為C1和C3屬于vlan10,C2和C4屬于vlan20,如果沒有做vlan間路由,不同vlan間的成員是無法通信的.,現在用C1 ping C2、C4和R1就說明vlan間路由是做成功的

          C1 ping C2 d的ip192.168.20.20和C4的ip192.168.20.40 結果如圖:

          C1ping R1的ip201.100.100.2 結果如圖:

          由上可得華為三層交換vlan間路由的實驗成功了。

        【三層交換實現vlan間路由配置實例詳解2016】相關文章:

        三層交換實現VLAN間路由配置方法08-15

        三層交換VLAN路由配置技巧詳解05-09

        三層交換機怎么實現VLAN間路由11-13

        華為三層交換機VLAN間路由怎么設置11-13

        思科三層交換機路由功能配置實例05-09

        思科交換機劃分vlan配置實例09-15

        華為交換機路由器配置實例201610-04

        華為交換機之間靜態路由配置實例2016最新05-22

        H3C交換機vlan配置實例10-10

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码

        1. <tt id="5hhch"><source id="5hhch"></source></tt>
          1. <xmp id="5hhch"></xmp>

        2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

          <rp id="5hhch"></rp>
              <dfn id="5hhch"></dfn>