222遇到一道lsp的新题,题库没有,但是记不起答案了,但拓扑在,故还原一下 配置的是静态lsp,问的是端口up还是down的问题,实验解答: R1配置:入接口 sysname r1 # mpls lsr-id 10.0.12.1 mpls interface Ethernet0/0/0 ipaddress 10.0.12.1 255.255.255.0 mpls # ip route-static 3.3.3.3 255.255.255.25510.0.12.2 # static-lsp ingress 1t2 destination 3.3.3.332 nexthop 10.0.12.2 out-label 102 结果:有静态路由,借口up,去掉静态路由,down了 r1]dis mpls static-lsp TOTAL : 1 STATIC LSP(S) UP : 1 STATIC LSP(S) DOWN : 0 STATIC LSP(S) Name FEC I/O Label I/O If Status 1t2 3.3.3.3/32 NULL/102 -/Eth0/0/0 Up [r1]undo ip route-static 3.3.3.3255.255.255.255 10.0.12.2 [r1]dis mpls static-lsp TOTAL : 1 STATIC LSP(S) UP : 0 STATIC LSP(S) DOWN : 1 STATIC LSP(S) Name FEC I/O Label I/O If Status 1t2 3.3.3.3/32 NULL/102 -/Eth0/0/0 Down R2配置 根本无路由,端口up sysname r2 # mpls lsr-id 10.0.12.2 mpls # interface Ethernet0/0/0 ipaddress 10.0.12.2 255.255.255.0 mpls # interface Ethernet0/0/1 ipaddress 10.0.23.2 255.255.255.0 mpls # static-lsp transit 2to3 incoming-interfaceEthernet0/0/0 in-label 102 nexthop 10 .0.23.3 out-label 203 [r2]dis mpls static-lsp TOTAL : 1 STATIC LSP(S) UP : 1 STATIC LSP(S) DOWN : 0 STATIC LSP(S) Name FEC I/O Label I/O If Status 2to3 -/- 102/203 Eth0/0/0/Eth0/0/1 Up R3配置 [r3]dis current-configuration # sysname r3 # mpls lsr-id 3.3.3.3 mpls # interface Ethernet0/0/1 ipaddress 10.0.23.3 255.255.255.0 mpls # interface LoopBack0 ipaddress 3.3.3.3 255.255.255.255 # static-lsp egress r1tor3 incoming-interfaceEthernet0/0/1 in-label 203 # R3是出街口,无须路由,静态lsp是up的 r3]dis mpls static-lsp TOTAL : 1 STATIC LSP(S) UP : 1 STATIC LSP(S) DOWN : 0 STATIC LSP(S) Name FEC I/O Label I/O If Status r1tor3 -/- 203/NULL Eth0/0/1/- Up 结论: 对于静态的lsp,ingress节点需要检查fec的有效性,transit和egress不需要,请大家注意
; N9 ?' k! G- P, D- N6 z1 ?/ { |