温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

华为trunk.access原理与应用

发布时间:2020-08-03 08:23:42 来源:网络 阅读:1400 作者:会飞的云彩 栏目:系统运维

 

 

实验环境:华为模拟器

华为trunk.access原理与应用

1.给交换机1添加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 

配置access思路

华为交换机配置 VLAN :

     1、创建VLAN

           [sw1]vlan 10    //创建一个VLAN,并进入 VLAN 10 ;

           [sw1-vlan10]description AAA // 为vlan配置一个名字;

     2、配置端口模式

           [sw1]interface gi0/0/1

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

     3、将端口放入指定的 VLAN

           [sw1]interface gi0/0/1

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


  3、查看
      display port vlan


 

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI