Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
Chapter 2 RIP Configuration Commands
2-10
2.1.8 filter-policy export
Syntax
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
export
[
protocol
[
process-id
] |
interface-type
interface-number
]
undo filter-policy
export
[
protocol
[
process-id
] |
interface-type interface-number
]
View
RIP view
Parameters
acl-number
: Number of an ACL used to filter outbound routes, in the range of 2000 to
3999.
ip-prefix ip-prefix-name
: Name of an IP prefix list used to filter outbound routes, a
string of 1 to 19 characters.
protocol
: Filters outbound routes redistributed from a specified routing protocol, which
can be
bgp
,
direct
,
isis
,
ospf
,
rip
, and
static
.
process-id
: Process ID of the specified routing protocol, in the range of 1 to 65535. You
need to specify a process ID when the routing protocol is
rip
,
ospf
, or
isis
.
interface-type interface-number
: Specifies an interface.
Description
Use the
filter-policy
export
command to configure the filtering of RIP outgoing routes.
Only routes not filtered out can be advertised.
Use the
undo filter-policy
export
command to remove the filtering.
By default, RIP does not filter outbound routes.
Note that:
z
If
protocol
is specified, RIP filters only the outgoing routes redistributed from the
specified routing protocol. Otherwise, RIP filters all routes to be advertised.
z
If
interface-type interface-number
is specified, RIP filters only the routes
advertised by the specified interface. Otherwise, RIP filters routes advertised by all
RIP interfaces.
Related commands:
acl
,
import-route
,
and
ip ip-prefix
.
Examples
# Reference ACL 2000 to filter outbound routes.
<Sysname> system-view
[Sysname] rip 1
[Sysname-rip-1] filter-policy 2000 export