Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 1 | loop create |
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 2 | set int ip address loop0 6.0.0.1/32 |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 3 | set int state loop0 up |
4 | |||||
5 | packet-generator new { | ||||
6 | name udp | ||||
7 | limit 512 | ||||
8 | rate 1e4 | ||||
9 | node ip4-input | ||||
10 | size 100-100 | ||||
11 | interface loop0 | ||||
12 | no-recycle | ||||
13 | data { | ||||
14 | UDP: 192.168.1.2 - 192.168.2.255 -> 192.168.1.1 | ||||
15 | UDP: 4321 -> 1234 | ||||
16 | length 72 | ||||
17 | incrementing 100 | ||||
18 | } | ||||
19 | } | ||||
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 20 | session enable |