码迷,mamicode.com
首页 > 其他好文 > 详细

华为trunk附案例(so easy)

时间:2018-01-11 11:43:49      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:5.0   body   span   pass   port   华为   one   验证   lin   

 

 

实验环境:华为模拟器

1.           配置pc机ip(192.168.10.1 192.168.20.1 192.168.10.2   192.168.20.2),子掩:255.255.255.0

2,给交换机添加vlan10,VLAN20,

      vlan 10

quit

Vlan 20

 Quit

 Interface g0/0/1

    Port link-type access

    Port   default vlan 10

    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链路思路:(华为)
     1、配置端口的链路类型
         interface(端口)
      port link-type trunk
     2、设置 Trunk 链路上允许通过的 VLAN
         interface (端口)
      port trunk allow-pass vlan all
  3、查看
      display port vlan


 

华为trunk附案例(so easy)

标签:5.0   body   span   pass   port   华为   one   验证   lin   

原文地址:http://blog.51cto.com/13555654/2059683

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!