blob: 015ce73b891fa3828f32a0091b3a66fbbc1a168a [file] [log] [blame]
Benoît Ganne8e220542019-03-01 14:19:55 +01001create packet-generator interface pg0
2create packet-generator interface pg1
3set int ip address pg1 192.168.2.1/24
ShivaShankarKb0f956c2020-03-18 15:34:11 +05304set ip neighbor pg1 192.168.2.2 6:5:4:3:2:1 static
Benoît Ganne8e220542019-03-01 14:19:55 +01005create gre tunnel dst 192.168.2.2 src 192.168.2.1 teb
6
7set int state pg0 up
8set int state pg1 up
9set int state gre0 up
10set int l2 xconnect pg0 gre0
11set int l2 xconnect gre0 pg0
12
Damjan Marion3153f002022-05-14 00:14:02 +020013packet-generator new { \
14 name tx \
15 limit -1 \
16 node ethernet-input \
17 size 64-64 \
18 interface pg0 \
19 data { \
20 0x8881: 4:4:4:4:4:4 -> 5:5:5:5:5:5 \
21 incrementing 100 \
22 } \
Benoît Ganne8e220542019-03-01 14:19:55 +010023}
24
Damjan Marion3153f002022-05-14 00:14:02 +020025packet-generator new { \
26 name rx \
27 limit -1 \
28 node ip4-input \
29 size 72-72 \
30 interface pg1 \
31 data { \
32 GRE: 192.168.2.2 -> 192.168.2.1 \
33 teb \
34 0x8881: 4:4:4:4:4:4 -> 5:5:5:5:5:5 \
35 incrementing 100 \
36 } \
Benoît Ganne8e220542019-03-01 14:19:55 +010037}
38
39packet-generator enable