6 ip link add veth_vpp1 type veth peer name vpp1
7 ip link set dev vpp1 up
8 ip link set dev veth_vpp1 up netns vppns1
10 ip netns exec vppns1 \
13 ip addr add 6.0.1.2/24 dev veth_vpp1
16 ethtool --offload vpp1 rx off tx off
17 ip netns exec vppns1 ethtool --offload veth_vpp1 rx off tx off
23 ip link del dev veth_vpp1 &> /dev/null
24 ip netns del vppns1 &> /dev/null
27 if [ "$1" == "clean" ] ; then
34 # to test connectivity do:
35 # sudo ip netns exec vppns1 telnet 6.0.1.1 1234
36 # to push traffic to the server
37 # dd if=/dev/zero bs=1024K count=512 | nc 6.0.1.1
38 # to listen for incoming connection from vpp