zoukankan      html  css  js  c++  java
  • vconfig 的使用

    http://man.cx/vconfig%288%29

    vconfig 作用: (802.1q)VLAN配置程序

    root@hbg:/# vconfig --help
    BusyBox v1.22.1 (2016-02-24 11:41:04 CST) multi-call binary.

    Usage: vconfig COMMAND [OPTIONS]

    Create and remove virtual ethernet devices

            add             IFACE VLAN_ID                                        // 增加vlan接口
            rem             VLAN_NAME               // 删除vlan接口
            set_flag        IFACE 0|1 VLAN_QOS
            set_egress_map  VLAN_NAME SKB_PRIO VLAN_QOS
            set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS
            set_name_type   NAME_TYPE

    1)增加vlan接口:

         使用方法:vconfig  add [interface-name] [vlan-id]

    root@hbg:/# vconfig add eth0 20                           
    root@hbg:/# ifconfig -a | grep eth0
    eth0      Link encap:Ethernet  HWaddr 78:C2:C0:E3:00:4D 
    eth0.20   Link encap:Ethernet  HWaddr 78:C2:C0:E3:00:4D 

    2)删除vlan接口

        使用方法: vconfig rem [vlan-device]

    root@hbg:/# vconfig rem eth0.20
    root@hbg:/# ifconfig -a | grep eth0
    eth0      Link encap:Ethernet  HWaddr 78:C2:C0:E3:00:4D 

    涉及到的文件

    /proc/net/vlan/config 
    /proc/net/vlan/[vlan−device]

  • 相关阅读:
    路径规划算法总结
    常用滤波器整理
    Debian 9 strech 安装 ROS lunar
    understand 安装笔记
    protobuf 安装与卸载
    maven-surefire-plugin
    spring数据源、数据库连接池
    日志插件总结
    pom.xml常用元素解析
    BeanFactory笔记
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/5411846.html
Copyright © 2011-2022 走看看