119
Figure 35 Network diagram
Table 4 Interface and IP address assignment
Device
Interface
IP address
Device
Interface
IP address
Router A
Loop0
1.1.1.9/32
Router C
Loop0
3.3.3.9/32
GE1/1/1
10.1.1.1/24
GE1/1/1
30.1.1.1/24
GE1/1/2
100.1.1.0/24
POS1/1/0
20.1.1.2/24
Router B
Loop0
2.2.2.9/32
Router D
Loop0
4.4.4.9/32
GE1/1/1
10.1.1.2/24
GE1/1/1
30.1.1.2/24
POS1/1/0
20.1.1.1/24
GE1/1/2
100.1.2.0/24
Configuration procedure
1.
Configure IP addresses and masks for interfaces. (Details not shown.)
2.
Configure OSPF to advertise routes within the ASs, and redistribute the direct and BGP routes
into OSPF on Router B and Router C:
# Configure 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 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