1136 CHAPTER 76: OSPF CONFIGURATION COMMANDS

View OSPF area view

Parameters ip-address: IP address of a host

cost: Cost of the route, in the range 1 to 65535.

Description Use the host-advertisecommand to advertise a host route.

Use the undo host-advertisecommand to remove a host route.

No host route is configured by default.

Examples # Configure host route 1.1.1.1 and specify cost 100 for it.

<Sysname> system-view

[Sysname] ospf 100

[Sysname] area 0

[Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.1 100

import-route (OSPF view)

Syntax import-routeprotocol [ process-id allow-ibgp] [ cost cost type type tag tag route-policyroute-policy-name ]*

undo import-routeprotocol [ process-id ]

View OSPF view

Parameters protocol: Redistributes routes from the specified protocol, which can be bgp, direct, isis, ospf, rip, or static.

process-id: Process ID, in the range 1 to 65535. The default is 1. It is available only when the protocol is rip, ospf, or isis.

allow-ibgp: Allows to redistribute IBGP routes; optional only when the protocol is bgp.

cost cost: Specifies route cost, in the range 0 to 16777214, which defaults to 1.

type type: Specifies cost type, 1 or 2, which defaults to 2.

tag tag : Specifies for external LSAs the tag, in the range 0 to 4294967295, which defaults to 1.

route-policyroute-policy-name: Specifies a route policy to redistribute qualified routes only. route-policy-nameis a string of up to 19 characters.

Description Use the import-routecommand to redistribute routes from another routing protocol.

Use the undo import-routecommand to disable route redistribution from a routing protocol.

Page 1136
Image 1136
3Com MSR 30, MSR 50 manual Import-route Ospf view