華爲trunk.access原理與應用

 

 

實驗環境:華爲模擬器ide

Juzi_20180202200146279.png

1.給交換機1添加vlan10,VLAN20,ui

     vlan 10spa

 quitblog

Vlan 20ip

 Quitit

 Interface g0/0/1io

    Port link-type access table

    Port   default vlan 10class

    Quit配置

   Interface   g0/0/2

Port   link-type access

  Port access vlan 20

 配置三層交換機2

  vlan   10

Quit

Vlan 20

Quit

    interface g0/0/1

     Port link-type access

     Port default vlan 10

Quit

Intface   g0/0/2

Port   link-type  access

Port   default vlan 20

Quit

3,配置trunk 鏈路

   在交換機2上,

     Interface g0/0/24

      Port link-type trunk

      Port trunk allow-pass vlan all

   在交換機1上

     Interface g0/0/24

     Port link-type trunk

Port   trunk  allow-paas vlan

4,驗證:ping192.168.10.2

配置 Trunk鏈路思路:(華爲)
     一、配置端口的鏈路類型
         interface(端口)
      port link-type trunk
     二、設置 Trunk 鏈路上容許經過的 VLAN
         interface (端口)
      port trunk allow-pass vlan all 

配置access思路

華爲交換機配置 VLAN :

     一、建立VLAN

           [sw1]vlan 10    //建立一個VLAN,並進入 VLAN 10 ;

           [sw1-vlan10]description AAA // 爲vlan配置一個名字;

     二、配置端口模式

           [sw1]interface gi0/0/1

           [sw1-gi0/0/1]port link-type access //指定端口爲access模式           

     三、將端口放入指定的 VLAN

           [sw1]interface gi0/0/1

           [sw1-gi0/0/1]port default vlan 10 //將端口放入vlan10

  三、查看      display port vlan

相關文章
相關標籤/搜索