3Com 4500 PWR 26-PORT Switch User Manual


 
154 CHAPTER 6: USING ROUTING PROTOCOL COMMANDS
Parameters
protocol Enter the routing protocol to be imported. This can be one of the
following:
direct 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
transmits it with the specified cost value. This command can greatly enhance the
RIP capability of obtaining routes, thus increases the RIP performance.
If the cost value is not specified, routes will be imported according to the
default cost ranging from 1 to 16. If the imported route cost value is 16, then
RIP continues to announce this cost to other routers running RIP, and marks this
route with HOLDDOWN. However, this router can still forward packets until the
Garbage Collection timer times out (defaults to 120 seconds).
Related commands: default cost.
Example
To import a static route with a cost of 4, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]rip
[4500-rip]import-route static cost 4
network Syntax
network network_address
undo network network_address
View
RIP view
Parameter
network_address Enter the IP network address of an interface.
Description
Use the network command to enable Routing Information Protocol (RIP) on the
interface of a specified network segment connected to the router.