Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 1 | packet-generator new { |
| 2 | name x |
| 3 | limit 1 |
| 4 | node ip4-input |
Damjan Marion | c47ed03 | 2017-01-25 14:18:03 +0100 | [diff] [blame] | 5 | size 512-512 |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 6 | no-recycle |
| 7 | data { |
| 8 | ICMP: 1.0.0.2 -> 232.1.1.1 |
| 9 | ICMP echo_request |
| 10 | incrementing 100 |
| 11 | } |
| 12 | } |
| 13 | |
Damjan Marion | c47ed03 | 2017-01-25 14:18:03 +0100 | [diff] [blame] | 14 | create packet-generator interface pg1 |
| 15 | create packet-generator interface pg2 |
| 16 | create packet-generator interface pg3 |
| 17 | |
| 18 | set int state pg1 up |
| 19 | set int state pg2 up |
| 20 | set int state pg3 up |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 21 | |
| 22 | ip mroute add 232.1.1.1 via pg0 Accept |
Damjan Marion | c47ed03 | 2017-01-25 14:18:03 +0100 | [diff] [blame] | 23 | ip mroute add 232.1.1.1 via pg1 Forward |
| 24 | ip mroute add 232.1.1.1 via pg2 Forward |
| 25 | ip mroute add 232.1.1.1 via pg3 Forward |