1 comment { overlay interface }
2 create packet-generator interface pg0
3 set int ip address pg0 192.168.1.1/24
4 set int ip address pg0 192:168:1::1/64
5 set ip neighbor pg0 192.168.1.2 1:2:3:4:5:6 static
6 set ip neighbor pg0 192:168:1::2 1:2:3:4:5:6 static
9 comment { underlay interface }
10 create packet-generator interface pg1
11 set int ip address pg1 192.168.2.1/24
12 set int ip address pg1 192:168:2::1/64
13 set ip neighbor pg1 192.168.2.2 6:5:4:3:2:1 static
14 set ip neighbor pg1 192:168:2::2 6:5:4:3:2:1 static
17 comment { gre4 over ipv6 }
18 create gre tunnel dst 192:168:2::2 src 192:168:2::1
19 set int ip address gre0 127.1.0.1/32
20 ip route add 192.168.3.0/24 via gre0
23 comment { gre6 over ipv4 }
24 create gre tunnel dst 192.168.2.2 src 192.168.2.1
25 set int ip address gre1 ::2/128
26 ip route add 192:168:3::0/64 via gre1
29 packet-generator new {
36 UDP: 192.168.1.2 -> 192.168.3.1
38 length 128 checksum 0 incrementing 1
42 packet-generator new {
49 GRE: 192:168:2::2 -> 192:168:2::1
51 UDP: 192.168.3.1 -> 192.168.1.2
53 length 128 checksum 0 incrementing 1
57 packet-generator new {
64 UDP: 192:168:1::2 -> 192:168:3::1
66 length 128 checksum 0 incrementing 1
70 packet-generator new {
77 GRE: 192.168.2.2 -> 192.168.2.1
79 UDP: 192:168:3::1 -> 192:168:1::2
81 length 128 checksum 0 incrementing 1
85 packet-generator enable