Configure the Address of the Egress Router
When configuring an LSP, you must specify the address of the egress router by including the
tostatement:toaddress;You can configure this statement at the following hierarchy levels:
[edit logical-routerslogical-router-nameprotocols mpls label-switched-pathlsp-path-name][edit protocols mpls label-switched-pathlsp-path-name]When you are setting up an LSP, the
tostatement is the only required statement. All other statements are optional.After the LSP is established, the address of the egress router is installed as a host route in the routing table. This route can then be used by BGP to forward traffic.
To have the software send BGP traffic over an LSP, the address of the egress router is the same as the address of the BGP next hop. You can specify the egress router's address as any one of the router's interface addresses or as the BGP router ID. If you specify a different address, even if the address is on the same router, BGP traffic is not sent over the LSP.
To determine the address of the BGP next hop, use the
show route detailcommand. To determine the destination address of an LSP, use theshow mpls lspcommand. To determine whether a route has gone through an LSP, use theshow routeorshow route forwarding-tablecommand. In the output of these last two commands, thelabel-switched-pathorpushkeyword included with the route indicates it has passed through an LSP. Also, use thetraceroutecommand to trace the actual path to which the route leads. This is another indication as to whether a route has passed through an LSP.You also can manipulate the address of the BGP next hop by defining a BGP import policy filter that sets the route's next-hop address.