dpdk: Add support for Mellanox ConnectX-4 devices
[vpp.git] / vnet / etc / scripts / snat
1 packet-generator new {
2   name f1
3   limit 1000000
4   node ip4-input
5   size 64-64
6   no-recycle
7   worker 0
8   data {
9     UDP: 10.0.0.3 -> 172.16.1.2
10     UDP: 3000 -> 3001
11     length 128 checksum 0 incrementing 1
12   }
13 }
14
15
16 packet-generator new {
17   name f2
18   limit 1000000
19   node ip4-input
20   size 64-64
21   no-recycle
22   worker 1
23   data {
24     UDP: 10.0.0.3 -> 172.16.1.2
25     UDP: 3005 -> 3006
26     length 128 checksum 0 incrementing 1
27   }
28 }
29
30 snat add address 172.16.1.3
31 ip route 172.16.1.2/32 via drop
32 set int ip address pg0 10.0.0.1/24
33 set int snat in pg0
34 trace add pg-input 10