R3303-HP HSR6800 Routers MPLS Configuration Guide

34
# Configure a static route to network 11.1.1.0/24 on Router C.
<RouterC> system-view
[RouterC] ip route-static 11.1.1.0 255.255.255.0 20.1.1.1
3. Enable MPLS:
# Configure MPLS on Router A.
[RouterA] mpls lsr-id 1.1.1.9
[RouterA] mpls
[RouterA-mpls] quit
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] mpls
[RouterA-Serial2/1/0] quit
# Configure MPLS on Router B.
[RouterB] mpls lsr-id 2.2.2.9
[RouterB] mpls
[RouterB-mpls] quit
[RouterB] interface serial 2/1/0
[RouterB-Serial2/1/0] mpls
[RouterB-Serial2/1/0] quit
[RouterB] interface serial 2/1/1
[RouterB-Serial2/1/1] mpls
[RouterB-Serial2/1/1] quit
# Configure MPLS on Router C.
[RouterC] mpls lsr-id 3.3.3.9
[RouterC] mpls
[RouterC-mpls] quit
[RouterC] interface serial 2/1/0
[RouterC-Serial2/1/0] mpls
[RouterC-Serial2/1/0] quit
4. Configure a static LSP from Router A to Router C:
# Configure the LSP ingress node, Router A.
[RouterA] static-lsp ingress AtoC destination 21.1.1.0 24 nexthop 10.1.1.2 out-label
30
# Configure the LSP transit node, Router B.
[RouterB] static-lsp transit AtoC incoming-interface serial 2/1/0 in-label 30 nexthop
20.1.1.2 out-label 50
# Configure the LSP egress node, Router C.
[RouterC] static-lsp egress AtoC incoming-interface serial 2/1/0 in-label 50
5. Create a static LSP from Router C to Router A:
# Configure the LSP ingress node, Router C.
[RouterC] static-lsp ingress CtoA destination 11.1.1.0 24 nexthop 20.1.1.1 out-label
40
# Configure the LSP transit node, Router B.
[RouterB] static-lsp transit CtoA incoming-interface serial 2/1/1 in-label 40 nexthop
10.1.1.1 out-label 70
# Configure the LSP egress node, Router A.
[RouterA] static-lsp egress CtoA incoming-interface serial 2/1/0 in-label 70