Switch 7700 Configuration Guide

IP Routing Policy 105
Perform the following configuration in routing protocol view.
By far, the route policy supports importing the routes discovered by the following
protocols into the routing table:
Direct: The hop (or host) to which the local interface is directly connected.
Static: Static Route Configuration
RIP: Route discovered by RIP
OSPF: Route discovered by OSPF
OSPF-ASE: External route discovered by OSPF
OSPF-NSSA: NSSA route discovered by OSPF
BGP: Route acquired by BGP
If routing-process is BGP, you should also specify the process number or AS
number.
By default, the filtering of the received and distributed routes will not be
performed.
Display and Debug the
Routing Policy
After the above configuration, execute display command in all views to display the
running of the routing policy configuration, and to verify the effect of the
configuration.
Example: Configuring to
Filter the Received
Routing Information
Switch A communicates with Switch B, running OSPF protocol.
Redistribute three static routes through configuring the OSPF routing process
on the Switch A.
The route filtering rules can be configured on Switch B to make the received
three static routes partially visible and partially shielded. It means that routes in
the network segments 20.0.0.0 and 40.0.0.0 are visible while those in the
network segment 30.0.0.0 are shielded.
Tabl e 56 Configure Filtering of Distributed Routes
Operation Command
Configure to filter the routes
distributed by the protocol
filter-policy { acl-number | ip-prefix ip-prefix-name }
export [ routing-process ]
Cancel the filtering of the routes
distributed by the protocol
undo filter-policy { acl-number | ip-prefix
ip-prefix-name } export [ routing-process ]
Tabl e 57 Display and Debug the Route Policy
Operation Command
Display the routing policy display route-policy [ route-policy-name ]
Display the path information
of the AS filter in BGP
display ip as-path-acl [ acl-number ]
Display the address prefix list
information
display ip ip-prefix [ ip-prefix-name ]