Created
November 6, 2017 22:14
-
-
Save danrue/7b76bbcbc23a6296030b7295650b69f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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