blob: ff5e8dbb2c716c841e3c294d03006195685eab6d [file] [log] [blame]
Matus Fabian51e759f2017-12-07 23:22:51 -08001create packet-generator interface pg0
2create packet-generator interface pg1
3
4packet-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
20packet-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
35nat64 add pool address 172.16.1.3
36set int ip address pg0 2000::1/64
37set int ip address pg1 172.16.1.1/24
38set int state pg0 up
39set int state pg1 up
40set ip6 neighbor pg0 2000::3 abcd.abcd.abcd static
41set ip arp static pg1 172.16.1.2 cdef.abcd.abcd
42set interface nat64 in pg0 out pg1
43nat64 add static bib 2000::3 3001 172.16.1.3 37678 udp
44nat64 add static bib 2000::3 3006 172.16.1.3 38678 udp