beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 44

background image

33

[RouterA] interface Pos 2/1/1

[RouterA-Pos2/1/1] mpls

[RouterA-Pos2/1/1] quit

# Configure MPLS on Router B.

[RouterB] mpls lsr-id 2.2.2.9

[RouterB] mpls

[RouterB-mpls] quit

[RouterB] interface Pos 2/1/1

[RouterB-Pos2/1/1] mpls

[RouterB-Pos2/1/1] quit

[RouterB] interface Pos 2/1/2

[RouterB-Pos2/1/2] mpls

[RouterB-Pos2/1/2] quit

# Configure MPLS on Router C.

[RouterC] mpls lsr-id 3.3.3.9

[RouterC] mpls

[RouterC-mpls] quit

[RouterC] interface Pos 2/1/1

[RouterC-Pos2/1/1] mpls

[RouterC-Pos2/1/1] quit

4.

Configure a static LSP from Router A to Router C.
# Configure the LSP ingress, 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 Pos 2/1/1 in-label 30 nexthop

20.1.1.2 out-label 50

# Configure the LSP egress, Router C.

[RouterC] static-lsp egress AtoC incoming-interface Pos 2/1/1 in-label 50

5.

Create a static LSP from Router C to Router A.
# Configure the LSP ingress, 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 Pos 2/1/2 in-label 40 nexthop

10.1.1.1 out-label 70

# Configure the LSP egress, Router A.

[RouterA] static-lsp egress CtoA incoming-interface Pos 2/1/1 in-label 70

6.

Verify the configuration.
# Execute the display mpls static-lsp command on each router to view the static LSP information.
The following takes Router A as an example:

[RouterA] display mpls static-lsp

total statics-lsp : 2

Name FEC I/O Label I/O If State

AtoC 21.1.1.0/24 NULL/30 -/Pos2/1/1 Up

CtoA -/- 70/NULL Pos2/1/1/- Up