• 配置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

  • 相关阅读:
    poj 1611 The Suspects
    POJ 2236 Wireless Network
    POJ 1703 Find them, Catch them
    poj 1733 Parity game
    hdu 1598 find the most comfortable road
    cmake的使用二:链接第三方静态库
    线段树基础
    迪杰斯特拉算法
    Floyd详解
    STL中的set使用方法详细
  • 原文地址:https://www.cnblogs.com/niezhongle/p/11271698.html
Copyright © 2020-2023  润新知