I was reading the JNCIA study guide http://www.juniper.net/training/certification/JNCIA_studyguide.pdf for instructions on how to set up static LSPs thru a network.
Seems like things have changed some since that code and I have some unanswered questions.
From the Guide - For an ingress router (Pg. 497)
[edit protocols mpls]
user@Cabernet# show
static-path inet {
172.16.0.0/16 {
next-hop 10.100.10.2;
push 912;
}
}
The latest configuration from the technical documentation - http://www.juniper.net/techpubs/en_US/junos12.1/topics/usage-guidelines/mpls-configuring-static-lsps.html#id-37203
nbhasin@Cabernet# show protocols mpls
static-label-switched-path 172.16 {
ingress {
next-hop 10.100.10.2;
to 1.1.1.1;
push 1000912;
}
}
[edit]
nbhasin@Cabernet# show routing-options
static {
route 172.16.0.0/16 {
static-lsp-next-hop 172.16;
}
}
It seems mostly straightforward except the following two things :-
1. to address—Address of the egress router.
This has been stated as a mandatory field and indeed the router would not let me commit the configuration without it. The recommendation was to configure the egress router's router-ID. That does not seem relevant to me for the setup of a static LSP.
Furthermore, I was able to configure a dummy address (1.1.1.1 does not exist on my lab network) and the configuration was accepted and in fact the LSP was functional. That actually makes sense to me because there is nothing in the static LSP that should require any more information than next-hop and push label.
So the question is why is this field even present and since it is present, why is it mandatory? Am I not understanding something?
2. On the transit routers -
The allowed label ranges are different for incoming vs outgoing labels
nbhasin@Muscat# ...th 172.16/16 transit ?
Possible completions:
<incoming-label> Incoming label value (1000000..1048575)
1000912 Incoming label value
[edit]
nbhasin@Muscat# set protocols mpls static-label-switched-path 172.16/16 transit 1000912 swap ?
Possible completions:
<swap> Swap top label with this label (0..1048575)
[edit]
nbhasin@Muscat# set protocols mpls static-label-switched-path 172.16/16 transit 1000912 swap
Why is there a restriction on the incoming label but not on outgoing label? Any valid reasoning for that?
Thanks as always in advance.
Nic
#MPLS#static-lsp