Created
August 28, 2017 10:19
-
-
Save rendoaw/635105f280620bac67af77a324cb9cf7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ip netns add ce-3-1 | |
ip link set eth2 netns ce-3-1 | |
ip netns exec ce-3-1 ip a | |
ip netns exec ce-3-1 vconfig add eth2 100 | |
ip netns exec ce-3-1 ifconfig eth2 up | |
ip netns exec ce-3-1 ifconfig eth2.100 inet 10.11.12.3 netmask 255.255.255.0 up | |
ip netns exec ce-3-1 ifconfig eth2.100 up | |
ip netns exec ce-3-1 ip route add default via 10.11.12.103 | |
ip netns exec ce-3-1 ip link set dev lo up | |
ip netns add ce-7-1 | |
ip link set eth4 netns ce-7-1 | |
ip netns exec ce-7-1 ip a | |
ip netns exec ce-7-1 vconfig add eth4 100 | |
ip netns exec ce-7-1 ifconfig eth4 up | |
ip netns exec ce-7-1 ifconfig eth4.100 inet 10.11.12.7 netmask 255.255.255.0 up | |
ip netns exec ce-7-1 ifconfig eth4.100 up | |
ip netns exec ce-7-1 ip route add default via 10.11.12.101 | |
ip netns exec ce-7-1 ip link set dev lo up | |
ip netns add ce-9-1 | |
ip link set eth5 netns ce-9-1 | |
ip netns exec ce-9-1 ip a | |
ip netns exec ce-9-1 vconfig add eth5 100 | |
ip netns exec ce-9-1 ifconfig eth5 up | |
ip netns exec ce-9-1 ifconfig eth5.100 inet 10.11.12.9 netmask 255.255.255.0 up | |
ip netns exec ce-9-1 ifconfig eth5.100 up | |
ip netns exec ce-9-1 ip route add default via 10.11.12.101 | |
ip netns exec ce-9-1 ip link set dev lo up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment