blob: 629772e69f4feeeb30225c009a02ef2c932a3ddd [file] [log] [blame]
Matus Fabian066f0342017-02-10 03:48:01 -08001create packet-generator interface pg0
2create packet-generator interface pg1
3
4packet-generator new {
5 name f1
6 limit 1000000
7 node ip4-input
8 size 64-64
9 no-recycle
10 worker 0
11 interface pg0
12 data {
13 UDP: 10.0.0.3 -> 172.16.1.2
14 UDP: 3000 -> 3001
15 length 128 checksum 0 incrementing 1
16 }
17}
18
19
20packet-generator new {
21 name f2
22 limit 1000000
23 node ip4-input
24 size 64-64
25 no-recycle
26 worker 1
27 interface pg0
28 data {
29 UDP: 10.0.0.3 -> 172.16.1.2
30 UDP: 3005 -> 3006
31 length 128 checksum 0 incrementing 1
32 }
33}
34
35
36packet-generator new {
37 name f3
38 limit 1000000
39 node ip4-input
40 size 64-64
41 no-recycle
42 worker 0
43 interface pg1
44 data {
45 UDP: 172.16.1.2 -> 1.1.1.2
46 UDP: 3001 -> 1141
47 length 128 checksum 0 incrementing 1
48 }
49}
50
51
52packet-generator new {
53 name f4
54 limit 1000000
55 node ip4-input
56 size 64-64
57 no-recycle
58 worker 1
59 interface pg1
60 data {
61 UDP: 172.16.1.2 -> 1.1.1.2
62 UDP: 3006 -> 1146
63 length 128 checksum 0 incrementing 1
64 }
65}
66
67
68packet-generator new {
69 name f5
70 limit 1000000
71 node ip4-input
72 size 64-64
73 no-recycle
74 worker 2
75 interface pg0
76 data {
77 UDP: 10.0.0.4 -> 172.16.1.2
78 UDP: 3005 -> 3006
79 length 128 checksum 0 incrementing 1
80 }
81}
82
83
84packet-generator new {
85 name f6
86 limit 1000000
87 node ip4-input
88 size 64-64
89 no-recycle
90 worker 1
91 interface pg1
92 data {
93 UDP: 172.16.1.2 -> 1.1.1.2
94 UDP: 3006 -> 1177
95 length 128 checksum 0 incrementing 1
96 }
97}
98
Matus Fabian2ba92e32017-08-21 07:05:03 -070099nat44 deterministic add in 10.0.0.0/21 out 1.1.1.2/32
Matus Fabian066f0342017-02-10 03:48:01 -0800100set int ip address pg0 10.0.0.1/24
101set int ip address pg1 172.16.1.1/24
102set int state pg0 up
103set int state pg1 up
104set ip arp static pg0 10.0.0.3 abcd.abcd.abcd
105set ip arp static pg0 10.0.0.4 abcd.abcd.abcd
106set ip arp static pg1 172.16.1.2 cdef.abcd.abcd
Matus Fabian2ba92e32017-08-21 07:05:03 -0700107set int nat44 in pg0 out pg1
Matus Fabian066f0342017-02-10 03:48:01 -0800108trace add pg-input 10