#
sysname RouterD
#
interface Pos1/0/0
link-protocol ppp
ip address 192.168.3.2 255.255.255.0
#
ospf 1
area 0.0.0.0
network 192.168.3.0 0.0.0.255
#
return
10.9.2 Example for Applying the Routing Policy When Importing
Routes
By applying routing policies, you can control the import of routes and set attributes for imported
routes.
Networking Requirements
As shown in
, Router B exchanges routing information with Router A through OSPF
and with Router C through IS-IS.
Router B is required to import IS-IS routes into OSPF and to use the routing policy to set the
route attributes. The cost of the route 172.17.1.0/24 is set to 100, and the tag of the route
172.17.2.0/24 is set to 20.
Figure 10-2
Networking diagram of applying a routing policy for imported routes
RouterC
POS1/0/0
192.168.1.1/24
POS1/0/0
192.168.1.2/24
POS4/0/0
192.168.2.1/24
POS2/0/0
192.168.2.2/24
GE1/0/0
172.17.1.1/24
RouterA
RouterB
OSPF
IS-IS
GE2/0/0
172.17.2.1/24
GE3/0/0
172.17.3.1/24
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure basic IS-IS functions on Router B and Router C.
2.
Configure OSPF on Router A and Router B and then import IS-IS routes.
3.
Configure the routing policy on Router B and apply the routing policy when OSPF imports
IS-IS routes, and verify the routes.
Data Preparation
To complete the configuration, you need the following data:
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
10 Routing Policy Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1257