3Com Switch 7750 Configuration Guide

Displaying IP Routing Policy 383
routing costs of the source routing protocol, you should specify a routing cost for
the imported routes.
n
The import-route command (used to import routes) is somewhat different in
form in different routing protocol views. Refer to the import-route command
description under the required routing protocol in the command manual.
Applying Routing Policy
to Route
Receipt/Advertisement
n
The filter-policy command (used to apply routing policy to route
receipt/advertisement) is somewhat different in form in different routing protocol
views. Refer to the filter-policy command description under the required routing
protocol in the command manual.
Displaying IP Routing
Policy
After the above configuration, execute the display command in any view to
display and verify the routing policy configuration.
IP Routing Policy
Configuration
Example
Configuring IP Routing
Policy
Network requirements
As shown in Figure 87, Switch A communicates with Switch B using OSPF
protocol. Switch As router ID is 1.1.1.1 and Switch B’s is 2.2.2.2.
Configure OSPF routing process on Switch A, and configure three static routes.
Configure a routing policy for Switch A to filter imported static routes. In this
example, the routes in 20.0.0.0 and 40.0.0.0 network segments can be
imported, but those in 30.0.0.0 network segment will be filtered out.
Table 314 Display a route policy
Operation Command Description
Display route-policy
information
display route-policy
[ route-policy-name ]
You can execute the display
command in any view.
Display BGP routes that
match an AS path ACL
display ip as-path-acl
[ acl-number ]
Display address prefix
list information
display ip ip-prefix
[ ip-prefix-name ]
Display community list
information
display ip community-list
[ basic-comm-list-number |
adv-comm-list-number ]