
[RouterB]
interface gigabitethernet1/0/0
[RouterB-GigabitEthernet1/0/0]
ip address 4.1.1.2 255.255.255.0
[RouterB-GigabitEthernet1/0/0]
quit
# Assign an IP address to the interface of RouterC.
<Huawei>
system-view
[Huawei]
sysname RouterC
[RouterC]
interface gigabitethernet1/0/0
[RouterC-GigabitEthernet1/0/0]
ip address 2.1.1.2 255.255.255.0
[RouterC-GigabitEthernet1/0/0]
quit
# Assign an IP address to the interface of RouterD.
<Huawei>
system-view
[Huawei]
sysname RouterD
[RouterD]
interface gigabitethernet1/0/0
[RouterD-GigabitEthernet1/0/0]
ip address 4.1.1.1 255.255.255.0
[RouterD-GigabitEthernet1/0/0]
quit
2.
Configure OSPF.
# Configure RouterA.
[RouterA]
ospf
[RouterA-ospf-1]
area 0
[RouterA-ospf-1-area-0.0.0.0]
network 2.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0]
quit
# Configure RouterB.
[RouterB]
ospf
[RouterB-ospf-1]
area 0
[RouterB-ospf-1-area-0.0.0.0]
network 4.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0]
quit
# Configure RouterC.
[RouterC]
ospf
[RouterC-ospf-1]
area 0
[RouterC-ospf-1-area-0.0.0.0]
network 2.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0]
quit
# Configure RouterD.
[RouterD]
ospf
[RouterD-ospf-1]
area 0
[RouterD-ospf-1-area-0.0.0.0]
network 4.1.1.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0]
quit
After the configuration is complete, run the
display ospf routing
command on RouterA to
view OSPF routes.
<RouterA>
display ospf routing
OSPF Process 1 with Router ID
192.168.200.208
Routing
Tables
Routing for
Network
Destination Cost Type NextHop AdvRouter
Area
2.1.1.0/24 1 Transit 2.1.1.1 192.168.200.208
0.0.0.0
2.2.2.2/32 0 Stub 2.2.2.2 192.168.200.208
0.0.0.0
3.3.3.3/32 1 Stub 2.1.1.2 10.1.1.2
0.0.0.0
4.1.1.0/24 3 Transit 2.1.1.2 10.137.217.165
0.0.0.0
4.4.4.4/32 3 Stub 2.1.1.2 10.10.10.2
0.0.0.0
5.1.1.0/24 2 Transit 2.1.1.2 10.1.1.2
0.0.0.0
Huawei AR2200-S Series Enterprise Routers
Configuration Guide - Reliability
1 Interface Backup Configuration
Issue 01 (2012-01-06)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
60