blob: f0d98ea8c6974ea0bbde0211608536f0d6ee6a91 [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 ip6-input
8 size 64-64
9 no-recycle
10 worker 0
11 interface pg0
12 data {
13 UDP: 2000::3 -> 64:ff9b::ac10:102
14 UDP: 3000 -> 3001
15 length 128 checksum 0 incrementing 1
16 }
17}
18
19
20packet-generator new {
21 name f2
22 limit 10
23 node ip6-input
24 size 64-64
25 no-recycle
26 interface pg0
27 worker 1
28 data {
29 UDP: 2000::3 -> 64:ff9b::ac10:102
30 UDP: 3005 -> 3006
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