Switch 7700 Command reference Guide, v2.0

Table Of Contents
120 CHAPTER 5: USING ROUTING PROTOCOL COMMANDS
Example
To configure RIP to reject a host route, enter the following:
[SW7700-rip]undo host-route
import-route Syntax
import-route protocol [ cost value ] [ route-policy
route_policy_name ]
undo import-route protocol
View
RIP view
Parameter
protocol Enter the routing protocol to be imported. This can be one of the
following:
direct, bgp, ospf, ospf-ase, ospf-nssa or static.
value Enter the cost value of the route to be imported.
route-policy route_policy_name Enter a route-policy name. Only routes that
match the conditions of the specified policy are imported.
Description
Using the import-route command, you can import the routes of other protocols
into RIP.
Using the undo import-route command, you can cancel the import of routes
from other protocols. By default, RIP does not import any other route.
The import-route command is used to import the route of another protocol. If
you do not specify a
cost value , routes are imported according to the current
value of the
default cost command, which must be in the range 1 to 16. If the
default cost is larger than or equal to 16, RIP regards this an unreachable and the
transmission is stopped within 120 seconds.
If you specify a cost value RIP regards the imported route as its own route and
transmits it with the specified
cost value.
This command can greatly enhance the capability of RIP to obtain routes, and
therefore increases the performance of RIP.
Related commands: default cost.
Example
To import a static route with a cost of 4, enter the following:
[SW7700-rip]import-route static cost 4
To set the default cost, and then import an OSPF route with this default cost, enter
the following two commands:
[SW7700-rip]default cost 3
[SW7700-rip]import-route ospf