Last active
August 29, 2015 13:56
-
-
Save upa/9031682 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
ovs-vsctl add-br ovsbr0 | |
ip netns list | |
ip netns add ns0 | |
ip netns add ns1 | |
ip link add name veth0a type veth peer name veth0b | |
ip link add name veth1a type veth peer name veth1b | |
ip link set dev veth0b netns ns0 | |
ip link set dev veth1b netns ns1 | |
ip netns exec ns0 ifconfig lo up | |
ip netns exec ns1 ifconfig lo up | |
ip netns exec ns0 ifconfig veth0b up | |
ip netns exec ns1 ifconfig veth1b up | |
ip netns exec ns0 ifconfig veth0b 10.0.0.1/24 | |
ip netns exec ns1 ifconfig veth1b 10.0.0.2/24 | |
ifconfig veth0a up | |
ifconfig veth1a up | |
ovs-vsctl add-port ovsbr0 veth0a | |
ovs-vsctl add-port ovsbr0 veth1a | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment