-
-
Save isilence/e6a28ce41a545a261566672104afa461 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
#!/usr/bin/env bash | |
ip link add ptp-cl type veth peer name ptp-serv | |
ip netns add nscl | |
ip netns add nsserv | |
ip link set ptp-cl netns nscl | |
ip link set ptp-serv netns nsserv | |
ip netns exec nscl ip addr add '10.10.10.10/24' dev ptp-cl | |
ip netns exec nsserv ip addr add '10.10.10.20/24' dev ptp-serv | |
ip netns exec nscl ip link set dev ptp-cl up | |
ip netns exec nsserv ip link set dev ptp-serv up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment