Skip to content

Instantly share code, notes, and snippets.

@wynro
Last active April 26, 2017 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wynro/7350fe9b522494e70029fb6988e0eb30 to your computer and use it in GitHub Desktop.
Save wynro/7350fe9b522494e70029fb6988e0eb30 to your computer and use it in GitHub Desktop.
# 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment