Damjan Marion | 3153f00 | 2022-05-14 00:14:02 +0200 | [diff] [blame] | 1 | packet-generator new { \ |
| 2 | name x \ |
| 3 | limit 1 \ |
| 4 | node ip4-input \ |
| 5 | size 64-64 \ |
| 6 | data { \ |
| 7 | ICMP: 1.0.0.2 -> 2.2.2.2 \ |
| 8 | ICMP echo_request \ |
| 9 | incrementing 100 \ |
| 10 | } \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | loop create |
| 14 | loop create |
| 15 | set int state loop0 up |
| 16 | set int state loop1 up |
| 17 | |
| 18 | set int ip address loop0 1.0.0.1/24 |
| 19 | set int ip address loop1 2.0.0.1/24 |
| 20 | |
ShivaShankarK | b0f956c | 2020-03-18 15:34:11 +0530 | [diff] [blame] | 21 | set ip neighbor static loop1 2.0.0.2 dead.beef.babe |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 22 | set int mpls loop1 enable |
| 23 | ip route add 2.2.2.2/32 via 2.0.0.2 loop1 out-label 33 |
| 24 | |
| 25 | trace add pg-input 100 |