vlan
Provides legacy integration for VLAN configuration with ifupdown and a compatibility wrapper for the deprecated vconfig program using ip(route2) commands. Supports VLAN (802.1q) interface management on Kali Linux.
Description
The vlan package offers legacy integration scripts for configuring VLAN interfaces via ifupdown in /etc/network/interfaces. It is primarily needed for supporting the legacy VLAN naming scheme (vlan0001) or specific features like vlan-raw-device, ip-proxy-arp, ip-rp-filter, and hw-mac-address. For most VLAN use cases with ifupdown, this package is not required.
It includes a wrapper script called vconfig for backwards compatibility, translating old vconfig commands to modern ip(route2) commands. This shim may be removed in future releases, so direct use of ip(route2) is recommended.
The package details VLAN (802.1q) configuration, with man page vlan-interfaces(5) providing further information. Installed size is 37 KB.
How It Works
The tool integrates with ifupdown for legacy VLAN setup, using scripts to manage interfaces with specific naming (e.g., vlan0001) and features like REORDER_HDR flag for ethernet header manipulation. The vconfig wrapper converts commands such as add, rem, set_flag to ip(route2) equivalents, handling VLAN IDs (0-4095), QoS mappings, name types (VLAN_PLUS_VID, DEV_PLUS_VID), and flags like REORDER_HDR which adjusts ethernet headers for compatibility with tools assuming standard packet formats.
Installation
sudo apt install vlanFlags
Examples
vconfig add [interface-name] [vlan_id]vconfig rem [vlan-name]vconfig set_flag [interface-name] 1 1vconfig set_egress_map [vlan-name] [skb_priority] [vlan_qos]vconfig set_ingress_map [vlan-name] [skb_priority] [vlan_qos]vconfig set_name_type VLAN_PLUS_VIDvconfig -h