Configuration considerations, Configuration procedure – H3C Technologies H3C SR8800 User Manual
Page 46

35
Configuration considerations
•
Enable LDP on the LSRs. LDP dynamically distributes labels and establishes LSPs and thus there is no
need to manually configure labels for LSPs.
•
LDP uses routing information for label distribution. Therefore, you need to configure a routing
protocol to learn routing information. OSPF is used in this example.
Configuration procedure
1.
Configure the IP addresses of the interfaces.
Configure the IP addresses and masks of the interfaces including the loopback interfaces as
required in
. (Details not shown)
2.
Configure OSPF to ensure IP connectivity between the routers.
# Configure OSPF on Router A.
[RouterA] ospf
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 11.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
# Configure OSPF on Router B.
[RouterB] ospf
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure OSPF on Router C.
[RouterC] ospf
[RouterC-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[RouterC-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] network 21.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
# Execute the display ip routing-table command on each router. You will see that each router has
learned the routes to other routers. Take Router A as an example:
[RouterA] display ip routing-table
Routing Tables: Public
Destinations : 11 Routes : 11
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.9/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.9/32 OSPF 10 1 10.1.1.2 Pos2/1/1
3.3.3.9/32 OSPF 10 2 10.1.1.2 Pos2/1/1