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