The following path, to-hastings, specifies the complete strict path from the ingress to the egress routers through 14.1.1.1, 13.1.1.1, 12.1.1.1, and 11.1.1.1, in that order. There cannot be any intermediate routers except the ones specified. However, there can be intermediate routers between 11.1.1.1 and the egress router because the egress router is not specifically listed in the path statement. To prevent intermediate routers before egress, configure the egress router as the last router, with a strict type.
- [edit protocols mpls]
- path to-hastings {
- 14.1.1.1 strict;
- 13.1.1.1 strict;
- 12.1.1.1 strict;
- 11.1.1.1 strict;
- }
The following path, alt-hastings, allows any number of intermediate routers between routers 14.1.1.1 and 11.1.1.1. In addition, intermediate routers are permitted between 11.1.1.1 and the egress router.
- [edit protocols mpls]
- path alt-hastings {
- 14.1.1.1 strict;
- 11.1.1.1 loose;
- }