zoukankan      html  css  js  c++  java
  • 修改端口的VLAN


    system-view
    session 1 华为交换机端口模式

    一、华为交换机端口分为三种模式:access、trunk、hybird

    1、access端口,用于连接主机,pvid就是该端口所属的vlan号,只能属于一个vlan

    2、trunk端口,用于交换机之间连接,默认pvid是vlan1,不属于任何vlan

    3、hybird端口,是一种特殊的端口类型,默认pvid是vlan1,不属于任何vlan,是交换机端口的默认模式
    ————————————————

    单个端口加入到vlan:


    interface GigabitEthernet 0/0/25
    port link-type access
    port default vlan 999
    display this
    display arp


    修改端口Ethernet 0/0/1的vlan
    interface Ethernet 0/0/1
    display this
    port link-type access
    port default vlan1

    port link-type access
    port default vlan3


    端口interface GigabitEthernet0/0/2,属于trunk类型,pvid 为2
    port link-type trunk
    port trunk pvid vlan 2

    端口pvid可以直接改为vlan3
    port link-type trunk
    port trunk pvid vlan 3

  • 相关阅读:
    python--模块
    python--*args与**kw
    python--偏函数
    Reversible Cards ARC111 -B 思维,图论
    Simple Math ARC111
    状压DP详解(位运算)
    E
    Ball CodeForces
    Reward HDU
    Choosing Capital for Treeland CodeForces
  • 原文地址:https://www.cnblogs.com/walkersss/p/15558011.html
Copyright © 2011-2022 走看看