VPP/命令行 (CLI)
具体内容详见下发连接
VPP/命令行 (CLI) 指南
VPP cli
命令行 | 注释 |
---|---|
create sub BondEthernet0 834 | 创建子接口,tag是834 |
set interface ip table BondEthernet0.834 1 | 将此接口设置在fib 1里 |
set interface ip address BondEthernet0.834 192.168.0.250/24 | 设置接口ip |
set interface state BondEthernet0.834 up | up接口 |
set interface l2 bridge BondEthernet0.834 834 | 将此接口设置到bridge 834里 |
set ip arp GigabitEthernet2/6/0 192.168.2.2 00:0c:29:dc:96:f8 | 设置静态arp |
ip route add 1.2.3.0/24 via GigabitEthernet2/6/0 | 添加路由 |
create vhost socket /tmp/sock2.sock server | 创建vhost接口 |
l2fib add fa:16:3e:b0:a9:71 834 BondEthernet0. |