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 |
Florin Coras | 3cbc04b | 2017-10-02 00:18:51 -0700 | [diff] [blame] | 4 | set int state GigabitEthernet1b/0/0 up |
| 5 | set int ip address GigabitEthernet1b/0/0 192.168.1.1/24 |
| 6 | |
| 7 | create host-interface name vpp1 |
| 8 | set int state host-vpp1 up |
| 9 | set int ip address host-vpp1 6.0.1.1/24 |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 10 | |
| 11 | packet-generator new { |
| 12 | name udp |
| 13 | limit 512 |
| 14 | rate 1e4 |
| 15 | node ip4-input |
| 16 | size 100-100 |
| 17 | interface loop0 |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 18 | data { |
| 19 | UDP: 192.168.1.2 - 192.168.2.255 -> 192.168.1.1 |
| 20 | UDP: 4321 -> 1234 |
| 21 | length 72 |
| 22 | incrementing 100 |
| 23 | } |
| 24 | } |
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 25 | session enable |