VPP testing using TAPs
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
#!/bin/bash | |
./build-root/build-vpp-native/vpp/bin/vppctl tap connect vpp1 | |
./build-root/build-vpp-native/vpp/bin/vppctl tap connect vpp2 | |
./build-root/build-vpp-native/vpp/bin/vppctl set interface state tapcli-0 up | |
./build-root/build-vpp-native/vpp/bin/vppctl set interface state tapcli-1 up | |
ip netns delete vpp1 | |
ip netns delete vpp2 | |
ip netns add vpp1 | |
ip netns add vpp2 | |
ip link set dev vpp1 netns vpp1 | |
ip link set dev vpp2 netns vpp2 | |
ip netns exec vpp1 ip link set vpp1 up | |
ip netns exec vpp2 ip link set vpp2 up | |
ip netns exec vpp1 ip addr add 192.168.0.1/24 dev vpp1 | |
ip netns exec vpp2 ip addr add 192.168.0.2/24 dev vpp2 | |
./build-root/build-vpp-native/vpp/bin/vppctl set interface l2 bridge tapcli-0 23 | |
./build-root/build-vpp-native/vpp/bin/vppctl set interface l2 bridge tapcli-1 23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment