NAT64: multi-thread support (VPP-891)
[vpp.git] / src / scripts / vnet / nat64_static
1 create packet-generator interface pg0
2 create packet-generator interface pg1
3
4 packet-generator new {
5   name f1
6   limit 10
7   node ip4-input
8   size 64-64
9   no-recycle
10   worker 0
11   interface pg1
12   data {
13     UDP: 172.16.1.2 -> 172.16.1.3
14     UDP: 3000 -> 37678
15     length 128 checksum 0 incrementing 1
16   }
17 }
18
19
20 packet-generator new {
21   name f2
22   limit 10
23   node ip4-input
24   size 64-64
25   no-recycle
26   interface pg1
27   worker 1
28   data {
29     UDP: 172.16.1.2 -> 172.16.1.3
30     UDP: 3005 -> 38678
31     length 128 checksum 0 incrementing 1
32   }
33 }
34
35 nat64 add pool address 172.16.1.3
36 set int ip address pg0 2000::1/64
37 set int ip address pg1 172.16.1.1/24
38 set int state pg0 up
39 set int state pg1 up
40 set ip6 neighbor pg0 2000::3 abcd.abcd.abcd static
41 set ip arp static pg1 172.16.1.2 cdef.abcd.abcd
42 set interface nat64 in pg0 out pg1
43 nat64 add static bib 2000::3 3001 172.16.1.3 37678 udp
44 nat64 add static bib 2000::3 3006 172.16.1.3 38678 udp