VPP 命令总结(持续更新)

  • 创建子接口,tag是1              create sub BondEthernet0 1                               
  • 将此接口设置在fib 1里           set interface ip table BondEthernet0.1 1           
  •  设置接口ip                             set interface ip address BondEthernet0.1 192.168.0.250/24  
  • up接口                                    set interface state  BondEthernet0.1 up   
  • 将此接口设置到bridge 1里      set interface l2 bridge BondEthernet0.1 1
  •  设置静态arp           set ip arp GigabitEthernet2/6/0 192.168.2.2 00:0c:29:dc:96:f8  
  •   添加路由                ip route add 1.2.3.0/24 via GigabitEthernet0/4/0 
  • 创建vhost接口         create vhost socket /tmp/sock2.sock server
  • 添加二层转发流表    l2fib add  fa:16:3e:b0:a9:71 834  BondEthernet0.834 
  • 设置此接口rx或是tx队列大小intel人说2000-4000差距不大 set dpdk interface descriptors  TenGigabitEthernet6/0/0 tx/rx 1024
  •  跟踪dpdk接口数据包 (dpdk-input是节点的名字) trace add dpdk-input 8  
  • 跟踪vhost接口数据包          trace add vhost-user-input 8  
  • 跟踪veth接口数据包            trace add af-packet-input 8 
  •  查看接口mac                     show hardware-interfaces 
  •  查看node逻辑图                show vlib graph 
  •   查看vpp线程                     show threads  
  • 查看二层转发流表               show l2fib    
  •  查看路由表                         show ip fib  
  • 查看arp                                show ip arp 
  • 查看主线程cpu亲和性          show affinity  
  • 查看vpp版本                         show version  
  • 查看接口统计                        show interface 
  • 查看接口ip                            show interface address 
  • 查看bridge 接口情况             show bridge-domain 

   
    
      


   
      
     
   
   
   

猜你喜欢

转载自blog.csdn.net/armlinuxww/article/details/90259806