F3215-HP Load Balancing Module Network Management Command Reference-6PW101
214
Parameters
ip-address: Specifies the IP address of a host
cost: Specifies a cost for the route, in the range of 1 to 65535.
Examples
# Advertise host route 1.1.1.1 with a cost of 100.
<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 AS-external routes from another routing protocol.
Use undo import-route to disable route redistribution from another routing 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
OSPF does not redistribute AS-external routes from any other routing protocol.
Views
OSPF view
Default command level
2: System level
Parameters
protocol: Redistributes routes from the specified protocol, which can be bgp, direct, ospf, rip, or static.
process-id: Specifies a process by its 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 available 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: Uses the specified routing policy to filter redistributed routes. The
route-policy-name argument is a case-sensitive string of 1 to 63 characters.
Usage guidelines
OSPF prioritize routes into the following levels:
• Intra-area route
• Inter-area route