Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-33
Parameter
protocol: Specify the source routing protocol that can be imported. At present, it
includes direct, rip, static, ospf, ospf-ase and ospf-nssa.
cost value: Specify the cost of imported route.
type value: Specify the cost type of imported external routes. The value ranges from 1
to 2. The default value is 2.
tag value: Specify the value of tag for imported external routes.
route-policy route-policy-name: Configure only to import the routes matching the
specified Route-policy. The length of route-policy-name parameter ranges from 1 to 16
character string.
Description
Using import-route command, you can import the information of another routing
protocol. Using undo import-route command, you can cancel the imported external
routing information.
By default, the routing information of other protocols is not imported.
 Note:
You are recommended to configure the route type, cost and tag together in one
command; otherwise, the new configuration overwrites the old one.
Example
# Specify an imported RIP route as the route of type 2, with the route tag as 33 and the
route cost as 50.
[Quidway-ospf-1] import-route rip type 2 tag 33 cost 50
3.1.30 network
Syntax
network ip-address ip-mask
undo network ip-address ip-mask
View
OSPF Area view
Parameter
ip-address: Address of the network segment where the interface locates.