2016年4月14日 星期四

Linux VLAN 命令

1. VLAN命令參數
Usage: vconfig COMMAND [OPTIONS]

Create and remove virtual ethernet devices

        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]
2. Create VLAN interface
$ vconfig add eth1 100
Added VLAN with VID == 100 to IF -:eth1:-
3. Remove VLAN interface
$ vconfig rem eth1.100

沒有留言:

張貼留言