Cisco Systems IOS XR Laptop User Manual


 
Implementing BGP on Cisco IOS XR Software
How to Implement BGP on Cisco IOS XR Software
RC-62
Cisco IOS XR Routing Configuration Guide
Configuring BGP Route Filtering by Route Policy
Perform this task to configure BGP routing filtering by route policy.
Prerequisites
See the Implementing Routing Policy on Cisco IOS XR Software module of the Cisco IOS XR Routing
Configuration Guide for a list of the supported attributes and operations that are valid for inbound and
outbound neighbor policy filtering.
SUMMARY STEPS
1. configure
2. route-policy name
3. end-policy
4. router bgp autonomous-system-number
5. neighbor ip-address
6. address-family {ipv4 unicast | ipv4 multicast | ipv6 unicast | ipv6 multicast}
7. route-policy route-policy-name {in | out}
8. end
or
commit
DETAILED STEPS
Command or Action Purpose
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Enters global configuration mode.
Step 2
route-policy
name
Example:
RP/0/RP0/CPU0:router(config)# route-policy
drop-as-1234
RP/0/RP0/CPU0:router(config-rpl)# if as-path
passes-through '1234' then
RP/0/RP0/CPU0:router(config-rpl)# apply
check-communities
RP/0/RP0/CPU0:router(config-rpl)# else
RP/0/RP0/CPU0:router(config-rpl)# pass
RP/0/RP0/CPU0:router(config-rpl)# endif
(Optional) Defines a route policy named drop-as-1234 and
enters route policy configuration mode.
Step 3
end-policy
Example:
RP/0/RP0/CPU0:router(config-rpl)# end-policy
(Optional) Ends the definition of a route policy and exits
route policy configuration mode.