blob: 1b8bff1b4d07d2ed2c8b73e77e1972f306690f51 [file] [log] [blame]
Benoît Ganne4af1a7f2019-03-01 14:14:10 +01001create packet-generator interface pg0
2set int ip address pg0 192.168.1.1/24
3set int ip address pg0 192:168:1::1/64
ShivaShankarKb0f956c2020-03-18 15:34:11 +05304set ip neighbor pg0 192.168.1.2 1:2:3:4:5:6 static
5set ip neighbor pg0 192:168:1::2 1:2:3:4:5:6 static
Benoît Ganne4af1a7f2019-03-01 14:14:10 +01006set int state pg0 up
7
8create packet-generator interface pg1
9set int ip address pg1 192.168.2.1/24
10set int ip address pg1 192:168:2::1/64
ShivaShankarKb0f956c2020-03-18 15:34:11 +053011set ip neighbor pg1 192.168.2.2 6:5:4:3:2:1 static
12set ip neighbor pg1 192:168:2::2 6:5:4:3:2:1 static
Benoît Ganne4af1a7f2019-03-01 14:14:10 +010013set int state pg1 up
14
Damjan Marion3153f002022-05-14 00:14:02 +020015packet-generator new { \
16 name v4-1-to-2 \
17 limit -1 \
18 node ip4-input \
19 size 64-64 \
20 interface pg0 \
21 data { \
22 UDP: 192.168.1.2 -> 192.168.2.2 \
23 UDP: 4321 -> 1234 \
24 length 128 checksum 0 incrementing 1 \
25 } \
Benoît Ganne4af1a7f2019-03-01 14:14:10 +010026}
27
Damjan Marion3153f002022-05-14 00:14:02 +020028packet-generator new { \
29 name v4-2-to-1 \
30 limit -1 \
31 node ip4-input \
32 size 64-64 \
33 interface pg0 \
34 data { \
35 UDP: 192.168.2.2 -> 192.168.1.2 \
36 UDP: 1234 -> 4321 \
37 length 128 checksum 0 incrementing 1 \
38 } \
Benoît Ganne4af1a7f2019-03-01 14:14:10 +010039}
40
Damjan Marion3153f002022-05-14 00:14:02 +020041packet-generator new { \
42 name v6-1-to-2 \
43 limit -1 \
44 node ip6-input \
45 size 64-64 \
46 interface pg0 \
47 data { \
48 UDP: 192:168:1::2 -> 192:168:2::2 \
49 UDP: 4321 -> 1234 \
50 length 128 checksum 0 incrementing 1 \
51 } \
Benoît Ganne4af1a7f2019-03-01 14:14:10 +010052}
53
Damjan Marion3153f002022-05-14 00:14:02 +020054packet-generator new { \
55 name v6-2-to-1 \
56 limit -1 \
57 node ip6-input \
58 size 64-64 \
59 interface pg0 \
60 data { \
61 UDP: 192:168:2::2 -> 192:168:1::2 \
62 UDP: 1234 -> 4321 \
63 length 128 checksum 0 incrementing 1 \
64 } \
Benoît Ganne4af1a7f2019-03-01 14:14:10 +010065}
66
67packet-generator enable