Modules
// View lsmod// default load vi/etc/modules// load VLAN module (ieee8021q) modprobe 8021q// remove 8021q modprobe-r 8021q
Vlan
//Check VLAN support (with directory support)ls/proc/net/vlan///Installing VLANsAptitude Install VLAN//Add Protocol ieee802.1q support (with this support to create a VLAN NIC)modprobe 8021q//Vi/etc/network/interface Configuration Cases// ======Auto P6P1. Oneiface p6p1. OneinetStaticAddress172.17.2.55netmask255.255.255.0VLAN-raw-device P6P1. One // **Auto P6p1iface p6p1 inetStaticAddress172.17.2.55netmask255.255.255.0// =======
Ubuntu Network operation
// Operation 1/etc/init.d/Networking Restart// Operation 2service networking Resart while stopping is already running:networking // Action 3 ifconfig p6p1 downifconfig p6p1 up // Operation 1, 2 failed to succeed // Action 3 single off after Ifconfig view information has not changed // only restart the hype system
Ubuntu VLAN configuration (modules)