97
cost: Cost of the route, in the range of 1 to 65535.
Description
Use host-advertise to advertise a host route.
Use undo host-advertise to remove a host route.
No host route is advertised by default.
Examples
# A d v e r t i s e ro u t e 1.1.1.1 w i t h a c o s t o f 10 0 .
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.1 100
import-route (OSPF view)
Syntax
import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | type type | tag tag |
route-policy route-policy-name ] *
undo import-route protocol [ process-id | all-processes ]
View
OSPF view
Default level
2: System level
Parameters
protocol: Redistributes routes from the specified protocol, which can be bgp, direct, ospf, rip, or static.
process-id: Process ID, in the range of 1 to 65535. The default is 1. It is available only when the protocol
is rip or ospf.
all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword
takes effect only when the protocol is rip or ospf.
allow-ibgp: Allows IBGP routes redistribution. It is optional only when the protocol is bgp.
cost cost: Specifies a route cost, in the range of 0 to 16777214. The default is 1.
type type: Specifies a cost type, 1 or 2. The default is 2.
tag tag : Specifies a tag for external LSAs. The default is 1.
route-policy route-policy-name: Specifies a routing policy to redistribute qualified routes only. A routing
policy name is a string of up to 63 case-sensitive characters.
Description
Use import-route to redistribute routes from another protocol.
Use undo import-route to disable route redistribution from a protocol.
Route redistribution from another protocol is not configured by default.
OSPF prioritize routes into the following levels: