Procedure
Step 1
Configure an IP address and the cost for each interface. This example assumes that you know
the configuration method and no details are provided here.
Step 2
Configure basic OSPF functions.
# Configure Router A.
[RouterA]
router id 1.1.1.1
[RouterA]
ospf
[RouterA-ospf-1]
area 1
[RouterA-ospf-1-area-0.0.0.1]
network 10.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.1]
network 10.2.1.0 0.0.0.255
# Configure Router B.
[RouterB]
router id 2.2.2.2
[RouterB]
ospf
[RouterB-ospf-1]
area 1
[RouterB-ospf-1-area-0.0.0.1]
network 10.3.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.1]
network 10.1.1.0 0.0.0.255
# Configure Router C.
[RouterC]
router id 3.3.3.3
[RouterC]
ospf
[RouterC-ospf-1]
area 1
[RouterC-ospf-1-area-0.0.0.1]
network 10.3.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.1]
network 10.2.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.1]
network 10.4.1.0 0.0.0.255
# Configure Router D.
[RouterD]
router id 4.4.4.4
[RouterD]
ip route-static 172.16.1.1 255.255.255.255 NULL0
[RouterD]
ospf
[RouterD-ospf-1]
import-route static
[RouterD-ospf-1]
area 1
[RouterD-ospf-1-area-0.0.0.1]
network 10.4.1.0 0.0.0.255
Step 3
Enable OSPF IP FRR on Router A.
# Enable OSPF IP FRR on Router A.
[RouterA]
ospf
[RouterA-ospf-1]
frr
[RouterA-ospf-1-frr]
loop-free-alternate
Step 4
Verify the configuration.
# View information about the route from Router A to Router D. You can find that OSPF generates
a backup route because OSPF IP FRR is enabled.
<RouterA>
display ospf routing router-id 4.4.4.4
OSPF Process 1 with Router ID 1.1.1.1
Destination : 172.16.1.1 Route Type : Intra-area
Area : 0.0.0.1 AdvRouter : 4.4.4.4
Type : ASBR Age : 00h31m27s
URT Cost : 59
NextHop : 10.2.1.2 Interface : GigabitEthernet1/0/2
Backup Nexthop
: 10.1.1.2
Backup Interface
: GigabitEthernet1/0/1
Backup Type
: LFA LINK
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
5 OSPF Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
384