• 配置vlan trunk


    [H3C1]int vlan 1                 //为vlan1配置ip地址

    [H3C1-Vlan-interface1]ip add 1.1.1.1 255.255.255.0

    [H3C1-Vlan-interface1]un shut

     

    [H3C1]vlan 2                   //创建vlan2

    [H3C1-vlan2]q   

    [H3C1]int vlan 2                //为vlan2配置ip地址

    [H3C1-Vlan-interface2]ip add 2.2.2.2 255.255.255.0

    [H3C1-Vlan-interface2]un shut

    [H3C1-Vlan-interface2]q

     

    [H3C1]int e0/4/3               //开启trunk链路

    [H3C1-Ethernet0/4/3]port link-type trunk

    粗略的查看有设备上有几个vlan

    [H3C1]display vlan   

     Total 2 VLAN exist(s).

     The following VLANs exist:

      1(default), 2

    详细的查看设备上vlan的情况

    [H3C1]display vlan all

     VLAN ID: 1                              //vlan1的详细信息

     VLAN Type: static                         //vlan属于静态的,也就是说是手工创建的

     Route Interface: configured

     IP Address: 1.1.1.1

     Subnet Mask: 255.255.255.0

     Description: VLAN 0001                       //对vlan的描述

     Broadcast MAX-ratio: 100%                   //广播包在vlan链路占的百分比,可改

     Tagged   Ports: none                        //标记的,如果串行接口不在此vlan中,                                                                          那个接口将会出现在此处!

     Untagged Ports:                             //可以说是属于本vlan的接口

        Ethernet0/4/0            Ethernet0/4/1            Ethernet0/4/2           

        Ethernet0/4/3            Ethernet0/4/4            Ethernet0/4/5           

        Ethernet0/4/6            Ethernet0/4/7           

     

     VLAN ID: 2                 //vlan2的详细信息

     VLAN Type: static

     Route Interface: configured

     IP Address: 2.2.2.2

     Subnet Mask: 255.255.255.0

     Description: VLAN 0002

     Broadcast MAX-ratio: 100%

     Tagged   Ports: none

     Untagged Ports: none

  • 相关阅读:
    day11_获取前一条用例的结果(用参数化实现)
    day11_获取前一条用例的结果
    codeforce 1433F
    codeforces 1428 D. Bouncing Boomerangs (贪心)
    codeforces 761C
    codeforces 839C
    codeforces 859C
    codeforces 858C Did you mean... (贪心)
    codeforces 855B
    st表
  • 原文地址:https://www.cnblogs.com/niezhongle/p/11271698.html
Copyright © 2020-2023  润新知