Skip to content

Instantly share code, notes, and snippets.

@danrue
Created November 6, 2017 22:14
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 danrue/7b76bbcbc23a6296030b7295650b69f3 to your computer and use it in GitHub Desktop.
Save danrue/7b76bbcbc23a6296030b7295650b69f3 to your computer and use it in GitHub Desktop.
set -x
ip netns del tst_net_ns0
ip netns del tst_net_ns1
ip netns add tst_net_ns0
ip netns add tst_net_ns1
ip netns exec tst_net_ns0 ip link add veth0 type veth peer name veth1
ip netns exec tst_net_ns0 ip link set veth1 netns tst_net_ns1
ip netns exec tst_net_ns0 ifconfig veth0 inet6 add fd00::2/64
ip netns exec tst_net_ns1 ifconfig veth1 inet6 add fd00::3/64
ip netns exec tst_net_ns0 ifconfig veth0 up
ip netns exec tst_net_ns1 ifconfig veth1 up
#sleep 2
ip netns exec tst_net_ns0 ping6 -q -c2 -I veth0 fd00::3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment