Dave Barach | 08eb2bb | 2020-04-15 09:34:43 -0400 | [diff] [blame] | 1 | set term pag off |
| 2 | loop cre |
| 3 | set int ip address loop0 11.22.33.1/24 |
| 4 | set int state loop0 up |
| 5 | loop cre |
| 6 | set int ip address loop1 11.22.34.1/24 |
| 7 | set int state loop1 up |
| 8 | |
| 9 | set ip neighbor loop1 11.22.34.44 03:00:11:22:34:44 |
| 10 | |
| 11 | packet-generator new { |
| 12 | name s0 |
| 13 | limit 10000 |
| 14 | size 128-128 |
| 15 | interface loop0 |
| 16 | tx-interface loop1 |
| 17 | node loop1-output |
| 18 | buffer-flags ip4 offload-ip-cksum offload-udp-cksum |
| 19 | data { IP4: 1.2.3 -> 4.5.6 |
| 20 | UDP: 11.22.33.44 -> 11.22.34.44 |
| 21 | ttl 2 checksum 13 |
| 22 | UDP: 1234 -> 2345 |
| 23 | checksum 11 |
| 24 | incrementing 114 |
| 25 | } |
| 26 | } |