R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

297
Verifying the configuration
# Ve ri f y t h a t Ro u t e r C c a n p i n g 8 .1.1.1.
[RouterC] ping 8.1.1.1
Ping 8.1.1.1 (8.1.1.1): 56 data bytes, press CTRL_C to break
56 bytes from 8.1.1.1: icmp_seq=0 ttl=255 time=2.000 ms
56 bytes from 8.1.1.1: icmp_seq=1 ttl=255 time=0.000 ms
56 bytes from 8.1.1.1: icmp_seq=2 ttl=255 time=0.000 ms
56 bytes from 8.1.1.1: icmp_seq=3 ttl=255 time=0.000 ms
56 bytes from 8.1.1.1: icmp_seq=4 ttl=255 time=1.000 ms
--- Ping statistics for 8.1.1.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.000/0.600/2.000/0.800 ms
BGP and IGP route redistribution configuration example
Network requirements
As shown in Figure 66, all devices of company A belong to AS 65008 and all devices of company B
belong to AS 65009. AS 65008 and AS 65009 are connected through Router A and Router B.
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 66 Network diagram
Configuration considerations
Configure BGP to redistribute routes from OSPF on Router B, so Router A can obtain the route to
9.1.2.0/24. Configure OSPF to redistribute routes from BGP on Router B, so that Router C can obtain the
ro u t e t o 8 .1.1.0 / 24 .
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure OSPF:
Enable OSPF in AS 65009, so 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
Router A
AS 65008
GE2/1/1
3.1.1.1/24
Router CRouter B
AS 65009
GE2/1/1
8.1.1.1/24
GE2/1/2
3.1.1.2/24
GE2/1/2
9.1.1.1/24
GE2/1/1
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/2
9.1.2.1/24