422
C
31: R
HAPTER
OUTING
Displaying and
Maintaining the
Routing Policy
Routing Policy
Configuration
Example
Applying Routing Policy
When Redistributing
IPv4 Routes
P
C
OLICY
ONFIGURATION
To do...
Set a next hop for IPv4 routes apply ip-address next-hop
Redistribute routes to a
specified ISIS level
Set a local preference for BGP
routes
Set an origin attribute for BGP
routes
Set a preference for the
matched routing protocol
Set a preferred value for BGP
routes
Set a tag value for RIP, OSPF
or IS-IS routes
n
The apply ip-address next-hop command do not apply to redistributed IPv4
routes.
To do...
Display BGP AS path ACL
information
Display BGP community list
information
Display BGP extended
community list information
Display IPv4 prefix list
statistics
Display routing policy
information
Clear IPv4 prefix list statistics
Network Requirements
Switch B exchanges routing information with Switch A via OSPF, with Switch C
■
via IS-IS.
On Switch B, configure route redistribution from IS-IS to OSPF and apply a
■
routing policy to set attributes of redistributed routes, setting the cost of route
172.17.1.0/24 to 100, tag of route 172.17.2.0/24 to 20.
Use the command...
ip-address
apply isis { level-1 | level-1-2 |
level-2 }
apply local-preference
preference
apply origin { igp | egp
as-number | incomplete }
apply preference preference
apply preferred-value
preferred-value
apply tag value
Use the command...
display ip as-path [ as-path-number ]
display ip community-list
[ basic-community-list-number |
adv-community-list-number ]
display ip extcommunity-list
[ ext-comm-list-number ]
display ip ip-prefix [ ip-prefix-name ]
display route-policy
[ route-policy-name ]
reset ip ip-prefix [ ip-prefix-name ]
Remarks
Optional
Not set by default
Optional
Not configured by default
Optional
Not set by default
Optional
Not set by default
Optional
Not set by default
Optional
Not set by default
Optional
Not set by default
Remarks
Available in any
view
Available in user
view