# Install the necessary VLAN packages and configuration # Install package sudo apt-get install -y vlan # Load the kernel module sudo modprobe 8021q # Add the module to load at system boot (If it isn't already) grep '^8021q$' /etc/modules 2>/dev/null 1>&2 || sudo sh -c 'echo "8021q" >> /etc/modules' echo "I recommend rebooting"