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 | ||||
12 | no-recycle | ||||
13 | data { | ||||
14 | IP4: 1.2.3 -> 4.5.6 vlan 1 | ||||
15 | ICMP: 1.2.3.4 -> 5.6.7.8 | ||||
16 | ICMP echo_request | ||||
17 | incrementing 100 | ||||
18 | } | ||||
19 | } | ||||
20 | |||||
21 | tr add pg-input 100 | ||||
22 | ip route 5.6.7.8/32 via local | ||||
23 | ip route 1.2.3.4/32 via local |