Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | int create-ethernet |
| 2 | int create-sub fake-eth0 1 |
| 3 | set int state fake-eth0 up |
| 4 | set int state fake-eth0.1 up |
| 5 | |
| 6 | packet-generator new { |
| 7 | name x |
| 8 | limit 1 |
| 9 | node ethernet-input |
| 10 | interface fake-eth0 |
| 11 | size 64-64 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 12 | data { |
| 13 | IP4: 1.2.3 -> 4.5.6 vlan 1 |
| 14 | ICMP: 1.2.3.4 -> 5.6.7.8 |
| 15 | ICMP echo_request |
| 16 | incrementing 100 |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | tr add pg-input 100 |
| 21 | ip route 5.6.7.8/32 via local |
| 22 | ip route 1.2.3.4/32 via local |