blob: 93d3a7015955c61c8a0846d031c54dbb2ca3c5b6 [file] [log] [blame]
Neale Ranns533bf082020-10-08 08:10:34 +00001
2create packet-generator interface pg0
3create packet-generator interface pg1
4
5set int ip address pg0 192.168.0.1/24
6
7set int state pg0 up
8set int state pg1 up
9set int mac address pg1 00:00:00:00:00:11
10create sub-interface pg1 12 dot1ad 32 inner-dot1q 33
11set int state pg1.12 up
12set int l2 tag-rewrite pg1.12 pop 2
13
14set ip neighbor pg0 192.168.0.2 1:2:3:4:5:6 static
15
16create gre tunnel dst 192.168.0.2 src 192.168.0.1
17set int state gre0 up
18set int ip addr gre0 1.1.1.1/30
19
20mpls table 0
21mpls tunnel add l2-only via 1.1.1.2 gre0 out-labels 33
22set int state mpls-tunnel0 up
23set int mpls gre0 enable
24
25set int l2 xconnect pg1.12 mpls-tunnel0
26set int l2 xconnect mpls-tunnel0 pg1.12
27
28mpls local-label add eos 33 via l2-input-on mpls-tunnel0
29
30trace add pg-input 100
31
32packet-generator new {
33 name g2v
34 limit 1
35 node ip4-input
36 interface pg0
37 data {
38 hex 0x4500002000000000fe2f3b5bc0a80002c0a800010000884700021140000000000011005056b77c83010203040506
39 }
40}
41
42packet-generator new {
43 name v2g
44 limit 1
45 node ethernet-input
46 interface pg1.12
47 data {
48 hex 0x000000000011005056b77c8388a80020810000210102030405060708
49 }
50}
51
52pack en g2v
53sh trace