1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
create sub G0 834 //创建子接口,tag是834 set interface ip table G0.834 1 //将此接口设置在fib 1里 set interface ip address G0.834 192.168.0.250/24 //设置接口ip set interface state G0.834 up //up接口 set interface l2 bridgeG0.834 834 //将此接口设置到bridge 834里… set ip arp G1 192.168.2.2 00:0c:29:dc:96:f8 //设置静态arp ip route add 1.2.3.0/24 via G1 //添加路由 create vhost socket /tmp/sock2.sock server //创建vhost接口 l2fib add fa:16:3e:b0:a9:71 834 BondEthernet0.834 //添加二层转发流表 create host-interface name vpp5a //创建veth口,name后参数名字必须和linux里创建的veth口名字对应 set dpdk interface descriptors TenGigabitEthernet6/0/0 tx/rx 1024 //设置此接口rx或是tx队列大小,intel人说2000-4000差距不大 set interface handoff <interface-name> workers <workers-list> [symmetrical|asymmetrical] trace add dpdk-input 8 //跟踪dpdk接口数据包 (dpdk-input是节点的名字,想跟踪任何节点都可以) trace add vhost-user-input 8 //跟踪vhost接口数据包 trace add af-packet-input 8 //跟踪veth接口数据包 trace add tuntap-rx 5 //抓tap口入流量 trace add virtio-input 5 //抓virtio入流量 show trace //显示追踪数据包 clear trace //清空跟踪数据包 create loopback interface //创建环回口 del loopback interface intfc loop0 //删除环回口 show hardware-interfaces //查看接口mac show vlib graph //查看node逻辑图 show vlib graphviz //罗列所有处理节点依赖关系 show threads //查看vpp线程 show l2fib //查看二层转发流表 show ip fib //查看路由表 show ip arp //查看arp show affinity //查看主线程cpu亲和性 show version //查看vpp版本 show int //查看接口统计 show interfaces address //查看接口ip show bridge-domain //查看bridge 接口情况 |
原文链接:https://blog.csdn.net/shaoyunzhe/article/details/53322088
赞赏微信赞赏
支付宝赞赏