3-13
Related commands:
acl
and
ip ip-prefix
.
Examples
# Reference ACL 2000 to filter incoming routes.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] rip 1
[Sysname-rip-1] filter-policy 2000 import
# Reference IP prefix list abc on Vlan-interface 1 to filter all received RIP routes.
[Sysname-rip-1] filter-policy ip-prefix abc import Vlan-interface 1
# Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to
filter incoming routes.
<Sysname> system-view
[Sysname] acl number 3000
[Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0
0
[Sysname-acl-adv-3000] rule 100 deny ip
[Sysname-acl-adv-3000] quit
[Sysname] rip 1
[Sysname-rip-1] filter-policy 3000 import
host-route
Syntax
host-route
undo host-route
View
RIP view
Default Level
2: System level
Parameters
None
Description
Use the
host-route
command to enable host route reception.
Use the
undo host-route
command 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. You can use
the
undo host-route
command to disable receiving of host routes.