1-10
To do…
Use the command…
Remarks
Enable RIP to advertise a
default route
default-route
{
only
|
originate
}
[
cost
cost
]
Optional
Not enabled by default
Return to system view
quit
––
Enter interface view
interface
interface-type
interface-number
––
Configure the RIP interface
to advertise a default route
rip default-route
{ {
only
|
originate
} [
cost
cost
] |
no-originate
}
Optional
By default, a RIP interface can
advertise a default route if the
RIP process is configured with
default route advertisement.
The router enabled to advertise a default route does not receive default routes from RIP neighbors.
Configuring Inbound/Outbound Route Filtering
The device supports route filtering. You can filter routes by configuring the inbound and outbound route
filtering policies by referencing an ACL or IP prefix list. You can also configure the router to receive only
routes from a specified neighbor.
Follow these steps to configure route filtering:
To do…
Use the command…
Remarks
Enter system view
system-view
––
Enter RIP view
rip
[
process-id
]
––
Configure the filtering
of incoming routes
filter-policy
{
acl-number
|
gateway
ip-prefix-name
|
ip-prefix
ip-prefix-name
[
gateway ip-prefix-name
] }
import
[
interface-type interface-number
]
Required
Not configured by default
Configure the filtering
of outgoing routes
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
export
[
protocol
[
process-id
] |
interface-type
interface-number
]
Required
Not configured by default
z
Using the
filter-policy import
command filters incoming routes. Routes not passing the filtering
will be neither installed into the routing table nor advertised to neighbors.
z
Using the
filter-policy export
command filters outgoing routes, including routes redistributed with
the
import-route
command.