blob: 076080a6978692f2e8f90fe623567bd57148b525 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001int create-ethernet
2int create-sub fake-eth0 1
3set int state fake-eth0 up
4set int state fake-eth0.1 up
5
6packet-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
21tr add pg-input 100
22ip route 5.6.7.8/32 via local
23ip route 1.2.3.4/32 via local