1 To run vpp with the debug shell:
3 sudo vpp unix interactive
5 which will result in a prompt that looks like:
9 To give it a spin, we can create a tap interface and try a simple ping
14 DBGvpd# tap connect foobar
15 Created tap-0 for Linux tap 'foobar'
18 To assign it an ip address (and 'up' the interface):
20 DBGvpd# set int ip address tap-0 192.168.1.1/24
21 DBGvpd# set int state tap-0 up
23 To turn on packet tracing for the tap interface:
24 DBGvpd# trace add tapcli-rx 10
26 Now, to set up and try the other end from the unix prompt:
27 vagrant@vagrant-ubuntu-trusty-64:~$ sudo ip addr add 192.168.1.2/24 dev foobar
28 vagrant@vagrant-ubuntu-trusty-64:~$ ping -c 3 192.168.1.1
30 To look at the trace, back in the vpp CLI:
37 Other fun things to look at:
39 The vlib packet processing graph:
40 DBGvpd# show vlib graph
42 which will produce output like:
45 ip4-icmp-input error-punt [0] ip4-local
46 ip4-icmp-echo-request [1]
49 To read this, the first column (Name) is the name of the node.
50 The second column (Next) is the name of the children of that node.
51 The third column (Previous) is the name of the parents of this node.