- 测试环境
如何搭建ovs-dpdk环境,参考OvS-DPDK源码安装+实践的超完整教程- 两台ubuntu16.04.6-server虚拟机
- VM1: ovs2.9.0, DPDK17.11
- VM2: ovs2.11.0, DPDK18.11
- 虚拟机网络配置
- 三块网卡:NAT用于上外网,两张host-only用于测试
- Host-only网卡1:192.168.56.1/24
- Host-only网卡2:192.168.32.1/24
- 两台ubuntu16.04.6-server虚拟机
- 搭建测试网络拓扑
- 每个VM创建两个ovs网桥s1和s2,vm1和vm2的s1ip在同一网段,s2在同一网段
- vm1
s1: 192.168.56.10/24 s2: 192.168.32.10/24 - vm2
s1: 192.168.56.11/24 s2: 192.168.32.11/24
# VM1 ovs-vsctl add-br s1 -- set bridge s1 datapath_type=netdev ovs-vsctl add-port s1 dpdk1 -- set Interface dpdk1 type=dpdk options:dpdk-devargs=0000:00:08.0 ofport_request=1 ovs-vsctl add-br s2 ovs-vsctl add-port s2 enp0s9 ifconfig s1 192.168.56.10/24 up ifconfig s2 192.168.32.10