
3-6
process-id
: Process ID of the routing protocol whose routing information is to be filtered, in the range of
1 to 65535. This argument is valid only for
ospf
,
ospf-ase
, and
ospf-nssa
.
Description
Use the
filter-policy export
command to enable RIP to filter the outgoing routing information.
Use the
undo filter-policy export
command to disable RIP from filtering the outgoing routing
information.
Note that, if
protocol
is specified, RIP filters only the outgoing routes redistributed from the specified
routing protocol. Otherwise, RIP filters all routes to be advertised.
By default, RIP does not filter advertised routing information.
Related commands:
acl
,
filter-policy import
,
ip ip
-
prefix
.
For details about ACL, refer to
ACL Operation
.
Examples
# Apply ACL 2000 to filter the outgoing routing information.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] rip
[Sysname-rip] filter-policy 2000 export
filter-policy import
Syntax
filter-policy
{
acl-number
|
ip-prefix ip-prefix-name
[
gateway
ip-prefix-name
] |
route-policy
route-policy-name
}
import
undo filter-policy
{
acl-number
|
ip-prefix ip-prefix-name
[
gateway
ip-prefix-name
] |
route-policy
route-policy-name
}
import
filter-policy gateway
ip-prefix-name import
undo filter-policy gateway
ip-prefix-name import
View
RIP view
Parameters
acl-number:
Number of the ACL used to filter routing information by destination address, in the range of
2000 to 3999.
ip-prefix-name
: Name of the address prefix list used to filter routing information by destination address,
a string of 1 to 19 characters.
gateway
ip-prefix-name:
Name of the address prefix list used to filter routing information by the address
of the neighbor router advertising the information, a string of 1 to 19 characters.
route-policy-name
: Name of the route-policy used to filter routing information, a string of 1 to 19
characters.