undo host-route
View
RIP view
Default level
2: System level
Parameters
None
Description
Use
host-route
to enable host route reception.
Use
undo host-route
to disable host route reception.
By default, receiving host routes is enabled.
In some cases, a router may receive many host routes from the same network segment. These
routes are not helpful for routing and occupy a large amount of network resources. Use
undo
host-route
to disable receiving of host routes.
RIPv2 can be disabled from receiving host routes, but RIPv1 cannot.
Examples
# Disable RIP from receiving host routes.
<Sysname> system-view
[Sysname] rip 1
[Sysname-rip-1] undo host-route
import-route (RIP view)
Syntax
import-route protocol
[
process-id
|
all-processes
|
allow-ibgp
] [
cost
cost
|
route-policy
route-policy-name
|
tag tag
] *
undo import-route protocol
[
process-id
|
all-processes
]
View
RIP view
Default level
2: System level
Parameters
protocol
: Specifies a routing protocol from which to redistribute routes. It can be
bgp
,
direct
,
isis
,
ospf
,
rip
, or
static
.
process-id
: Process ID, in the range of 1 to 65535. The default is 1. It is available only when the
protocol is
isis
,
rip
, or
ospf
.
all-processes
: Enables route redistribution from all the processes of a protocol. This keyword takes
effect only when the protocol is
rip
,
ospf
, or
isis
.
allow-ibgp
: When the
protocol
argument is set to
bgp
,
allow-ibgp
is an optional keyword.
cost
: Cost for redistributed routes, in the range of 0 to 16. If
cost
is not specified, the default cost
specified by the
default cost
command applies.
tag
: Tag marking redistributed routes, in the range of 0 to 65,535. The default is 0.
41