Disabling the router from receiving host routes, Configuring rip to filter incoming/outgoing routes – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 656

Advertising
background image

66-6

To do...

Use the command...

Remarks

Enable RIP-2 automatic route
summarization

summary

Required
Enabled by default

Disabling the router from receiving host routes

In some special cases, the router can receive a lot of host routes from the same segment, and these
routes are of little help in route addressing but consume a lot of network resources. After a router is
disabled from receiving host routes, it can refuse any incoming host route.

Follow these steps to disable the router from receiving host routes:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter RIP view

rip

Disable the router from receiving
host routes

undo host-route

Required
By default, the router receives host
routes.

Configuring RIP to filter incoming/outgoing routes

The route filtering function provided by a router enables you to configure inbound/outbound filter policy
by specifying an ACL, address prefix list, or route policy to make RIP filter incoming/outgoing routes.
Besides, you can configure RIP to receive only the RIP packets from a specific neighbor.

Follow these steps to configure RIP to filter incoming/outgoing routes:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter RIP view

rip

filter-policy

{ acl-number | route-policy

route-policy-name

} import

Configure RIP to filter incoming
routes

filter-policy gateway

ip-prefix-name

import

Required
By default, RIP does not filter
any incoming route.

filter-policy

acl-number export [ protocol

[ process-id ] ]

Configure RIP to filter outgoing
routes

filter-policy

route-policy

route-policy-name

export

Required
By default, RIP does not filter
any outgoing route.

z

The filter-policy import command filters the RIP routes received from neighbors, and the routes
being filtered out will neither be added to the routing table nor be advertised to any neighbors.

z

The filter-policy export command filters all the routes to be advertised, including the routes
redistributed with the import-route command and routes learned from neighbors.

z

You can also use the filter-policy export command to filter outgoing routes redistributed from a
specified routing protocol.

Advertising