Skip to content

Instantly share code, notes, and snippets.

@dmpatel151282
Last active January 25, 2017 12:47
Show Gist options
  • Save dmpatel151282/9eafd3d9ecc427b582c5968b066e9903 to your computer and use it in GitHub Desktop.
Save dmpatel151282/9eafd3d9ecc427b582c5968b066e9903 to your computer and use it in GitHub Desktop.
ip link add link eth0 name eth0.$VLAN_ID type vlan id $VLAN_ID
eg. ip link add link eth0 name eth0.100 type vlan id 100 -> Add eth0.100 interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment