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 |
| 18 | no-recycle |
| 19 | data { |
| 20 | UDP: 192.168.1.2 - 192.168.2.255 -> 192.168.1.1 |
| 21 | UDP: 4321 -> 1234 |
| 22 | length 72 |
| 23 | incrementing 100 |
| 24 | } |
| 25 | } |
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 26 | session enable |