Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2015 06:43
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 anonymous/d9a035e42539c35bda98 to your computer and use it in GitHub Desktop.
Save anonymous/d9a035e42539c35bda98 to your computer and use it in GitHub Desktop.
ip netns add veth2n2n0
ip link add veth2n2n1 type veth peer name veth2n2n2
ip link set veth2n2n2 netns veth2n2n0
ip netns exec veth2n2n0 ip addr add 192.168.2.2/30 dev veth2n2n2
ip netns exec veth2n2n0 ip link set dev veth2n2n2 up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment