Configuring RIP to Filter Received Routes
Context
The filtering policy can be configured on the inbound interface by configuring the ACL and IP prefix list to filter received routes. Only the routes not filtered out by the filtering policy are added to the local routing table.
Procedure
- Run system-view
The system view is displayed.
- Run rip [ process-id ]
The RIP view is displayed.
- Depending on type of desired filtering, run one of following commands to configure RIP to filter the received routes:
Run filter-policy { acl-number | acl-name acl-name } import [ interface-type interface-number ]
The learned routing information is filtered based on an ACL.
Run filter-policy gateway ip-prefix-name import
The routing information advertised by neighbors is filtered based on the IP prefix list.
Run filter-policy ip-prefix ip-prefix-name [ gateway ip-prefix-name ] import [ interface-type interface-number ]
The routes learned by the specified interface are filtered based on the IP prefix list and neighbors.
- Run commit
The configuration is committed.