Dave Barach | b97641c | 2019-09-09 16:38:17 -0400 | [diff] [blame] | 1 | set term pag off |
| 2 | loop create |
| 3 | loop create |
| 4 | set int ip address loop0 192.168.1.1/24 |
| 5 | set int state loop0 up |
| 6 | |
| 7 | set int ip address loop1 192.168.2.1/24 |
| 8 | set int state loop1 up |
| 9 | |
| 10 | packet-generator new { |
| 11 | name pg0 |
| 12 | limit 1 |
| 13 | size 300-300 |
| 14 | interface loop0 |
| 15 | node ethernet-input |
| 16 | data { IP4: 1.2.3 -> 4.5.6 |
| 17 | UDP: 192.168.1.10 -> 192.168.2.10 |
| 18 | UDP: 1234 -> 2345 |
| 19 | incrementing 286 |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | packet-generator new { |
| 24 | name pg1 |
| 25 | limit 1 |
| 26 | size 300-300 |
| 27 | interface loop1 |
| 28 | node ethernet-input |
| 29 | data { IP4: 1.2.3 -> 4.5.6 |
| 30 | UDP: 192.168.2.10 -> 192.168.1.10 |
| 31 | UDP: 1234 -> 2345 |
| 32 | incrementing 286 |
| 33 | } |
| 34 | } |