Neale Ranns | ad422ed | 2016-11-02 14:20:04 +0000 | [diff] [blame] | 1 | packet-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 | } |
| 13 | packet-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 | } |
| 25 | packet-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 | } |
| 37 | packet-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 | |
| 52 | trace add pg-input 100 |
| 53 | |
| 54 | loop create |
| 55 | set int state loop0 up |
| 56 | |
| 57 | set int ip address loop0 10.0.0.1/24 |
| 58 | set ip arp loop0 10.0.0.2 00:00:11:aa:bb:cc |
| 59 | |
| 60 | mpls tunnel add via 10.0.0.2 loop0 out-label 33 out-label 34 out-label 35 out-label 36 |
| 61 | set int state mpls-tunnel0 up |
| 62 | set int ip addr mpls-tunnel0 192.168.0.1/32 |
| 63 | ip route add 2.0.0.2/32 via 192.168.0.2 mpls-tunnel0 |
| 64 | |
| 65 | |
| 66 | mpls tunnel add via 10.0.0.2 out-label 33 |
| 67 | set int state mpls-tunnel1 up |
| 68 | set int ip addr mpls-tunnel1 192.168.1.1/32 |
| 69 | ip route add 2.0.1.2/32 via 192.168.1.2 mpls-tunnel1 out-label 99 |
| 70 | |
| 71 | mpls tunnel add via 10.0.0.2 loop0 out-label 3 |
| 72 | set int state mpls-tunnel2 up |
| 73 | set int ip addr mpls-tunnel2 192.168.2.1/32 |
| 74 | ip route add 2.0.2.2/32 via 192.168.2.2 mpls-tunnel2 |
| 75 | |
| 76 | |
| 77 | mpls tunnel add l2-only via 10.0.0.2 loop0 out-label 234 out-label 0 |
| 78 | set int state mpls-tunnel3 up |
| 79 | set int l2 bridge mpls-tunnel3 1 |
| 80 | |
| 81 | loop create |
| 82 | set int ip addr loop1 6.0.1.44/24 |
| 83 | set int l2 bridge loop1 1 bvi |
| 84 | set int l2 learn loop1 disable |
| 85 | set int state loop1 up |
| 86 | |
| 87 | ip route add 2.0.3.2/32 via 6.0.1.45 loop1 |