Create a Named Path
To configure signaled LSPs, you must first create one or more named paths on the ingress router. For each path, you can specify some or all transit routers in the path, or you can leave it empty.
Each path name can contain up to 32 characters and can include letters, digits, periods, and hyphens. The name must be unique within the ingress router. Once a named path is created, you can configure LSPs using the named path on the
primaryorsecondarystatement at the[edit protocols mpls label-switched-pathlabel-path-name]hierarchy level. You can specify the same named path on any number of LSPs.To create an empty path, create a named path by including the following form of the
pathstatement at the[edit protocols mpls]hierarchy level. This form of thepathstatement is empty, which means that any path between the ingress and egress routers is accepted. In actuality, the path used tends to be the same path as is followed by destination-based, best-effort traffic.[edit protocols mpls]pathpath-name;To create a path in which you specify some or all transit routers in the path, include the following form of the
pathstatement at the[edit protocols mpls]hierarchy level, specifying one address for each transit router:[edit protocols mpls]pathpath-name{address|host name<strict | loose>;}In this form of the
pathstatement, you specify one or more transit router addresses. Specifying the ingress and/or egress routers is optional. You can specify the address or host name of each transit router, although you do not need to list each transit router if its type isloose. Specify the addresses in order, starting with the ingress router (optional) or the first transit router, and continuing sequentially along the path up to the egress router (optional) or the router immediately before the egress router. You need to specify only one address per router hop. If you specify more than one address for the same router, only the first address is used; the additional addresses are ignored and truncated.For each router address, you specify the type, which can be one of the following:
strict—(Default) The route taken from the previous router to this router is a direct path and cannot include any other routers. Ifaddressis an interface address, this router also ensures that the incoming interface is the one specified. Doing this is useful when there are parallel links between the previous router and this router. It also ensures that routing can be enforced on a per-link basis.For strict addresses, you must ensure that the router immediately preceding the router you are configuring has a direct connection to that router. The address can be a loopback interface address, in which case the incoming interface is not checked.
loose—The route taken from the previous router to this router need not be a direct path and can include other routers and can be received on any interface. The address can be any interface address or the address of the loopback interface.Examples: Create a Named Path
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 thepathstatement. To prevent intermediate routers before egress, configure the egress router as the last router, with astricttype.[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;}