blob: d04b29702e79e4d5bff098b3decd0b23cc666c43 [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
6 no-recycle
7 data {
8 ICMP: 1.0.0.2 -> 2.0.0.2
9 ICMP echo_request
10 incrementing 100
11 }
12}
13packet-generator new {
14 name x1
15 limit 1
16 node ip4-input
17 size 64-64
18 no-recycle
19 data {
20 ICMP: 1.0.0.2 -> 2.0.1.2
21 ICMP echo_request
22 incrementing 100
23 }
24}
25packet-generator new {
26 name x2
27 limit 1
28 node ip4-input
29 size 64-64
30 no-recycle
31 data {
32 ICMP: 1.0.0.2 -> 2.0.2.2
33 ICMP echo_request
34 incrementing 100
35 }
36}
37packet-generator new {
38 name x3
39 limit 1
40 node ip4-input
41 size 64-64
42 no-recycle
43 data {
44 ICMP: 1.0.0.2 -> 2.0.3.2
45 ICMP echo_request
46 incrementing 100
47 }
48}
49
50
51
52trace add pg-input 100
53
54loop create
55set int state loop0 up
56
57set int ip address loop0 10.0.0.1/24
58set ip arp loop0 10.0.0.2 00:00:11:aa:bb:cc
59
60mpls tunnel add via 10.0.0.2 loop0 out-label 33 out-label 34 out-label 35 out-label 36
61set int state mpls-tunnel0 up
62set int ip addr mpls-tunnel0 192.168.0.1/32
63ip route add 2.0.0.2/32 via 192.168.0.2 mpls-tunnel0
64
65
66mpls tunnel add via 10.0.0.2 out-label 33
67set int state mpls-tunnel1 up
68set int ip addr mpls-tunnel1 192.168.1.1/32
69ip route add 2.0.1.2/32 via 192.168.1.2 mpls-tunnel1 out-label 99
70
71mpls tunnel add via 10.0.0.2 loop0 out-label 3
72set int state mpls-tunnel2 up
73set int ip addr mpls-tunnel2 192.168.2.1/32
74ip route add 2.0.2.2/32 via 192.168.2.2 mpls-tunnel2
75
76
77mpls tunnel add l2-only via 10.0.0.2 loop0 out-label 234 out-label 0
78set int state mpls-tunnel3 up
79set int l2 bridge mpls-tunnel3 1
80
81loop create
82set int ip addr loop1 6.0.1.44/24
83set int l2 bridge loop1 1 bvi
84set int l2 learn loop1 disable
85set int state loop1 up
86
87ip route add 2.0.3.2/32 via 6.0.1.45 loop1