R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide

255
# Configure a default route with the next hop 192.168.212.1 on Router A.
<RouterA> system-view
[RouterA] ip route-static 0.0.0.0 0 192.168.212.1
# Configure static routes to 192.168.64.0/24, 192.168.74.0/24, and 192.168.99.0/24 with
the same next hop 192.168.212.161 on Router B.
<RouterB> system-view
[RouterB] ip route-static 192.168.64.0 18 192.168.212.161
[RouterB] ip route-static 192.168.74.0 24 192.168.212.161
[RouterB] ip route-static 192.168.99.0 24 192.168.212.161
3. Configure OSPF between Router B and Router C, and configure OSPF on Router B to redistribute
static routes:
# Configure OSPF to advertise the local network, and enable OSPF to redistribute static routes on
Router B.
[RouterB] ospf
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] import-route static
[RouterB-ospf-1] quit
# Configure OSPF to advertise local networks on Router C.
[RouterC] ospf
[RouterC-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] network 172.17.100.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] network 10.220.2.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
# Display the IP routing table on Router C.
[RouterC] display ip routing-table
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost NextHop Interface
3.3.3.3/32 Direct 0 0 127.0.0.1 InLoop0
10.220.2.0/24 Direct 0 0 10.220.2.16 S2/2/0
10.220.2.16/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
172.17.100.0/24 Direct 0 0 172.17.100.2 S2/2/1
172.17.100.2/32 Direct 0 0 127.0.0.1 InLoop0
192.168.64.0/24 O_ASE 150 1 172.17.100.1 S2/2/1
192.168.74.0/24 O_ASE 150 1 172.17.100.1 S2/2/1
192.168.99.0/24 O_ASE 150 1 172.17.100.1 S2/2/1
The output shows that Router C has learned routes to 192.168.64.0/24, 192.168.74.0/24, and
192.168.99.0/24 through OSPF.
4. Configure BGP between Router C and Router D, and configure BGP on Router C to redistribute
OSPF routes: