blob: 992005cfa834e9600f3b839918275fd6a9c04d4d [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
13packet-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 }
23}
24
25packet-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 }
37}
38
39packet-generator enable