R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

105
host-advertise
Use host-advertise to advertise a host route.
Use undo host-advertise to remove a host route.
Syntax
host-advertise ip-address cost
undo host-advertise ip-address
Default
No host route is advertised.
Views
OSPF area view
Default command level
2: System level
Parameters
ip-address: IP address of a host
cost: Specifies a cost for the route, in the range of 1 to 65535.
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)
Use import-route to redistribute routes from another protocol.
Use undo import-route to disable route redistribution from a protocol.
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 ]
Default
Route redistribution from another protocol is not configured.
Views
OSPF view
Default command level
2: System level