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 | |
Damjan Marion | 3153f00 | 2022-05-14 00:14:02 +0200 | [diff] [blame] | 4 | packet-generator new { \ |
| 5 | name f1 \ |
| 6 | limit 10 \ |
| 7 | node ip4-input \ |
| 8 | size 64-64 \ |
| 9 | worker 0 \ |
| 10 | interface pg1 \ |
| 11 | data { \ |
| 12 | UDP: 172.16.1.2 -> 172.16.1.3 \ |
| 13 | UDP: 3000 -> 37678 \ |
| 14 | length 128 checksum 0 incrementing 1 \ |
| 15 | } \ |
Matus Fabian | 51e759f | 2017-12-07 23:22:51 -0800 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | |
Damjan Marion | 3153f00 | 2022-05-14 00:14:02 +0200 | [diff] [blame] | 19 | packet-generator new { \ |
| 20 | name f2 \ |
| 21 | limit 10 \ |
| 22 | node ip4-input \ |
| 23 | size 64-64 \ |
| 24 | interface pg1 \ |
| 25 | worker 1 \ |
| 26 | data { \ |
| 27 | UDP: 172.16.1.2 -> 172.16.1.3 \ |
| 28 | UDP: 3005 -> 38678 \ |
| 29 | length 128 checksum 0 incrementing 1 \ |
| 30 | } \ |
Matus Fabian | 51e759f | 2017-12-07 23:22:51 -0800 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | nat64 add pool address 172.16.1.3 |
| 34 | set int ip address pg0 2000::1/64 |
| 35 | set int ip address pg1 172.16.1.1/24 |
| 36 | set int state pg0 up |
| 37 | set int state pg1 up |
ShivaShankarK | b0f956c | 2020-03-18 15:34:11 +0530 | [diff] [blame] | 38 | set ip neighbor pg0 2000::3 abcd.abcd.abcd static |
| 39 | set ip neighbor static pg1 172.16.1.2 cdef.abcd.abcd |
Matus Fabian | 51e759f | 2017-12-07 23:22:51 -0800 | [diff] [blame] | 40 | set interface nat64 in pg0 out pg1 |
| 41 | nat64 add static bib 2000::3 3001 172.16.1.3 37678 udp |
| 42 | nat64 add static bib 2000::3 3006 172.16.1.3 38678 udp |