R3303-HP HSR6800 Routers MPLS Configuration Guide

98
Figure 26 Network diagram
Device Interface IP address
Device
Interface
IP address
Router A Loop0 1.1.1.9/32 Router C Loop0 3.3.3.9/32
GE2/1
/
1 10.1.1.1/24
GE2/1
/
1 30.1.1.1
/
24
Router B Loop0 2.2.2.9/32
POS5/1/0 20.1.1.2/24
GE2/1/1 10.1.1.2/24 Router D Loop0 4.4.4.9/32
POS5/1/0 20.1.1.1/24
GE2/1
/
1 30.1.1.2/24
Configuration procedure
1. Configure IP addresses and masks for the interfaces according to Figure 26. (Details not shown.)
2. Configure OSPF to advertise routes within the ASs:
# Configure OSPF on Router A.
<RouterA> system-view
[RouterA] ospf
[RouterA-ospf-1] area 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 1.1.1.9 0.0.0.0
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
# Configure OSPF on Router B.
<RouterB> system-view
[RouterB] ospf
[RouterB-ospf-1] import-route direct
[RouterB-ospf-1] import-route bgp
[RouterB-ospf-1] area 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 2.2.2.9 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure OSPF on Router C.
<RouterC> system-view
[RouterC] ospf
[RouterC-ospf-1] import-route direct
[RouterC-ospf-1] import-route bgp