H3C SR8800 10G Mpls Configuration Manual page 110

Core routers
Table of Contents

Advertisement

# 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
[RouterC-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[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] quit
[RouterC-ospf-1] quit
# Configure OSPF on Router D.
<RouterD> system-view
[RouterD] ospf
[RouterD-ospf-1] area 0
[RouterD-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] network 4.4.4.9 0.0.0.0
[RouterD-ospf-1-area-0.0.0.0] quit
[RouterD-ospf-1] quit
After the configurations, execute the display ip routing-table command on each device. The output
shows that each device has learned the route to the LSR ID of the other device in the same AS. Take
Router A as an example:
[RouterA] display ip routing-table
Routing Tables: Public
Destinations : 6
Destination/Mask
1.1.1.9/32
2.2.2.9/32
10.1.1.0/24
10.1.1.1/32
127.0.0.0/8
127.0.0.1/32
Configure BGP on Router B and Router C and redistribute routes, ensuring that the ASs can
3.
communicate with each other.
# Configure Router B.
[RouterB] bgp 100
Routes : 6
Proto
Pre
Cost
Direct 0
0
OSPF
10
1
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
99
NextHop
Interface
127.0.0.1
InLoop0
10.1.1.2
GE3/1/1
10.1.1.1
GE3/1/1
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0

Advertisement

Table of Contents
loading

Table of Contents