blob: 130027b4b32a36f62cb0868ce67e1b011b829bec [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
Damjan Marion3153f002022-05-14 00:14:02 +02006packet-generator new { \
7 name x \
8 limit 1 \
9 node ethernet-input \
10 interface fake-eth0 \
11 size 64-64 \
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 } \
Ed Warnickecb9cada2015-12-08 15:45:58 -070018}
19
20tr add pg-input 100
21ip route 5.6.7.8/32 via local
22ip route 1.2.3.4/32 via local