Skip to content

Instantly share code, notes, and snippets.

@brmzkw
Created February 24, 2020 11:15
Show Gist options
  • Save brmzkw/0992ff2399cb64edd24c59ddbea7debd to your computer and use it in GitHub Desktop.
Save brmzkw/0992ff2399cb64edd24c59ddbea7debd to your computer and use it in GitHub Desktop.
VLAN over GRE TAP tunnel
ip link add enp1s1 type gretap remote <other host> local <me>
ip link add link enp1s1 name enp1s1.1337 type vlan id 1337
ip link set dev enp1s1 up
ip link set dev enp1s1.1337 up
ip addr add 10.0.0.1/24 dev enp1s1.1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment