H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
3-33
Parameters
protocol: Redistributes routes from the routing protocol. At present, it can be direct, rip,
bgp, isis, static, ospf, ospf-ase and ospf-nssa.
process-id: OSPF process ID, in the range 1 to 65535. It is for route redistribution from
another OSPF process.
allow-ibgp: Allows the redistribution of IBGP routes when redistributing routes from
BGP.
cost value: Specifies the cost of imported external routes, in the range 0 to 16777214.
type value: Specifies the cost type of imported external routes. The value ranges from
1 to 2.
tag value: Specifies the tag of imported external routes.
route-policy route-policy-name: Imports only the routes matching the specified
route-policy. The route-policy-name argument is a string of 1 to 19 characters.
Description
Use the import-route command to import external routes.
Use the undo import-route command to cancel the importing of external routes.
Note:
You are recommended to configure the route type, cost and tag together in one
command. When you configure them individually, the new configuration will overwrite
the old one.
By default, the routing information of other protocols is not imported.
Note that:
z The import-route bgp command redistributes EBGP routes only.
z The import-route bgp allow-ibgp command redistributes both EBGP and IBGP
routes.
z Use the import-route bgp allow-ibgp command with care, because it
redistributes IBGP routes without keeping the AS_PATH attribute, which may lead
to routing loops between ASs.
z It is recommended to configure parameters such as type, cost and tag for
redistributed routes with one command line because reconfiguring the command
overwrites the previous configuration.