blob: eb3359ea4996fef01d3bad80ba810b199d73d624 [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
Ed Warnickecb9cada2015-12-08 15:45:58 -070012 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
20tr add pg-input 100
21ip route 5.6.7.8/32 via local
22ip route 1.2.3.4/32 via local