zoukankan      html  css  js  c++  java
  • VLAN configuration on linux

    root@ubuntu:/etc/apt# vconfig
    Expecting argc to be 3-5, inclusive. Was: 1

    Usage: add [interface-name] [vlan_id]
    rem [vlan-name]
    set_flag [interface-name] [flag-num] [0 | 1]
    set_egress_map [vlan-name] [skb_priority] [vlan_qos]
    set_ingress_map [vlan-name] [skb_priority] [vlan_qos]
    set_name_type [name-type]

    * The [interface-name] is the name of the ethernet card that hosts
    the VLAN you are talking about.
    * The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
    * skb_priority is the priority in the socket buffer (sk_buff).
    * vlan_qos is the 3 bit priority in the VLAN header
    * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
    DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
    * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the
    ethernet header around to make it look exactly like a real
    ethernet device. This may help programs such as DHCPd which
    read the raw ethernet packet and make assumptions about the
    location of bytes. If you don't need it, don't turn it on, because
    there will be at least a small performance degradation. Default
    is OFF.

  • 相关阅读:
    ACM中java的使用
    hdu 1273最大流
    1066N !最右边非零数
    关于为什么要建退边的原因
    浅析指向指针的指针其作用
    poj 1860 bellman 求正环
    poj 3461
    poj 2031
    poj 1068
    strncpy的用法
  • 原文地址:https://www.cnblogs.com/abacuspix/p/2689845.html
Copyright © 2011-2022 走看看