RIP Configuration Commands 165
host-route Syntax
host-route
undo host-route
View
RIP view
Parameter
None
Description
Use the host-route command to configure RIP to accept host routes. This is the
default.
Use the undo host-route command to configure RIP to reject host routes.
Example
To configure RIP to reject a host route, enter the following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]rip
[SW5500-rip]undo host-route
import-route Syntax
import-route
protocol
[ cost
value
| route-policy
route-policy-name
]
undo import-route protocol
View
RIP view
Parameters
protocol
Enter the routing protocol to be imported. This can be one of the
following:
direct, 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
Use the import-route command to import the routes of other protocols into RIP.
Use the undo import-route command to cancel the import of routes from other
protocols. By default, RIP does not import any other protocol’s route.
The import-route command can be used to import the route of another protocol
with a certain cost value. RIP regards the imported route as its own route and