R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide

249
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 2/2/2 ms
BGP and IGP synchronization configuration
Network requirements
As shown in Figure 74, all devices of company A reside in AS 65008 while all devices of company B
reside in AS 65009. AS 65008 and AS 65009 are connected through Router A and Router B. It is
required that Router A can access network 9.1.2.0/24 in AS 65009, and Router C can access network
8.1.1.0/24 in AS 65008.
Figure 74 Network diagram
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure OSPF:
Enable OSPF in AS 65009, so that Router B can obtain the route to 9.1.2.0/24.
# Configure Router B.
<RouterB> system-view
[RouterB] ospf 1
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure Router C.
<RouterC> system-view
[RouterC] ospf 1
[RouterC-ospf-1] import-route direct
[RouterC-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
3. Configure the EBGP connection:
Configure the EBGP connection and inject network 8.1.1.0/24 to the BGP routing table of Router
A, so that Router B can obtain the route to 8.1.1.0/24.
# Configure Router A.
Router A
AS 65008
S2/2/1
3.1.1.1/24
Router CRouter B
AS 65009
GE2/1/1
8.1.1.1/24
S2/2/1
3.1.1.2/24
S2/2/0
9.1.1.1/24
S2/2/0
9.1.1.2/24
Loop0
1.1.1.1/32
Loop0
2.2.2.2/32
Loop0
3.3.3.3/32
EBGP OSPF
GE2/1/1
9.1.2.1/24