l
Configuration file of Router F
#
sysname RouterF
#
router id 6.6.6.6
#
interface GigabitEthernet2/0/0
undo shutdown
ip address 172.17.1.2 255.255.255.0
#
ospf 1
area 0.0.0.2
network 172.17.1.0 0.0.0.255
#
return
5.16.2 Example for Configuring OSPF Virtual Links
This section provides an example for configuring virtual links to connect a non-backbone area
to the backbone area.
Networking Requirements
, Area 2 is not directly connected to the backbone area Area 0. Area 1
serves as a transit area to connect Area 2 and Area 0. A virtual link is configured between
Router A and Router B.
Figure 5-7
Networking diagram of configuring OSPF virtual links
RouterA
RouterB
POS1/0/0
192.168.1.1/24
POS1/0/0
192.168.1.2/24
GE2/0/0
172.16.1.1/16
GE2/0/0
10.1.1.1/8
Area0
Area2
Area1
Virtual Link
GE2/0/0
10.1.1.2/8
RouterC
GE2/0/0
172.16.1.2/16
RouterD
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure basic OSPF functions on each router.
2.
Configure a virtual link between Router A and Router B to connect a non-backbone area
to the backbone area.
Data Preparation
To complete the configuration, you need the following data:
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.
347