3Com MSR 50 Network Router User Manual


  Open as PDF
of 2742
 
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-advertise command to advertise a host route.
Use the undo host-advertise command 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-route protocol [ process-id | allow-ibgp ] [ cost cost | type type | tag tag |
route-policy route-policy-name ]*
undo import-route protocol [ 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-policy route-policy-name: Specifies a route policy to redistribute qualified
routes only. route-policy-name is a string of up to 19 characters.
Description Use the
import-route command to redistribute routes from another routing
protocol.
Use the
undo import-route command to disable route redistribution from a
routing protocol.