blob: 1c395f4c324ea6716da5ebd8b6fc43b2d012f368 [file] [log] [blame]
Neale Rannsad422ed2016-11-02 14:20:04 +00001packet-generator new {
2 name x0
3 limit 1
4 node ip4-input
5 size 64-64
Neale Rannsad422ed2016-11-02 14:20:04 +00006 data {
7 ICMP: 1.0.0.2 -> 2.0.0.2
8 ICMP echo_request
9 incrementing 100
10 }
11}
12packet-generator new {
13 name x1
14 limit 1
15 node ip4-input
16 size 64-64
Neale Rannsad422ed2016-11-02 14:20:04 +000017 data {
18 ICMP: 1.0.0.2 -> 2.0.1.2
19 ICMP echo_request
20 incrementing 100
21 }
22}
23packet-generator new {
24 name x2
25 limit 1
26 node ip4-input
27 size 64-64
Neale Rannsad422ed2016-11-02 14:20:04 +000028 data {
29 ICMP: 1.0.0.2 -> 2.0.2.2
30 ICMP echo_request
31 incrementing 100
32 }
33}
34packet-generator new {
35 name x3
36 limit 1
37 node ip4-input
38 size 64-64
Neale Rannsad422ed2016-11-02 14:20:04 +000039 data {
40 ICMP: 1.0.0.2 -> 2.0.3.2
41 ICMP echo_request
42 incrementing 100
43 }
44}
45
46
47
48trace add pg-input 100
49
50loop create
51set int state loop0 up
52
53set int ip address loop0 10.0.0.1/24
ShivaShankarKb0f956c2020-03-18 15:34:11 +053054set ip neighbor loop0 10.0.0.2 00:00:11:aa:bb:cc
Neale Rannsad422ed2016-11-02 14:20:04 +000055
56mpls tunnel add via 10.0.0.2 loop0 out-label 33 out-label 34 out-label 35 out-label 36
57set int state mpls-tunnel0 up
58set int ip addr mpls-tunnel0 192.168.0.1/32
59ip route add 2.0.0.2/32 via 192.168.0.2 mpls-tunnel0
60
61
62mpls tunnel add via 10.0.0.2 out-label 33
63set int state mpls-tunnel1 up
64set int ip addr mpls-tunnel1 192.168.1.1/32
65ip route add 2.0.1.2/32 via 192.168.1.2 mpls-tunnel1 out-label 99
66
67mpls tunnel add via 10.0.0.2 loop0 out-label 3
68set int state mpls-tunnel2 up
69set int ip addr mpls-tunnel2 192.168.2.1/32
70ip route add 2.0.2.2/32 via 192.168.2.2 mpls-tunnel2
71
72
73mpls tunnel add l2-only via 10.0.0.2 loop0 out-label 234 out-label 0
74set int state mpls-tunnel3 up
75set int l2 bridge mpls-tunnel3 1
76
77loop create
78set int ip addr loop1 6.0.1.44/24
79set int l2 bridge loop1 1 bvi
80set int l2 learn loop1 disable
81set int state loop1 up
82
83ip route add 2.0.3.2/32 via 6.0.1.45 loop1