Matus Fabian | 51e759f | 2017-12-07 23:22:51 -0800 | [diff] [blame] | 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 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 | |
| 20 | packet-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 | |
| 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 |