Alcatel-Lucent 9000 Switch User Manual


 
Configuring BGP Routing Policies
OmniSwitch 6800/6850/9000 Advanced Routing Configuration Guide December 2007 page 4-51
Assigning In and Out Bound Community List Policies to a Peer
Community list policies filter routes based on matches made to a list of communities of which the route is
a member. Communities group routes by attaching labels to them specifying a behavior (such as no
export).
To filter routes learned from a peer by the community list, enter the peer’s IP address with the ip bgp
neighbor in-communitylist command as shown:
-> ip bgp neighbor 172.22.2.0 in-communitylist commlistfilter
The community list policy commlistfilter must be previously created using the ip bgp policy
community-list command.
To assign the same policy to route advertisements to the peer, enter the peer IP address with the ip bgp
neighbor out-communitylist command, as shown:
-> ip bgp neighbor 172.22.2.0 out-communitylist commlistfilter
Assigning In and Out Bound Route Map Policies to a Peer
Route map policies filter routes combining routing criteria such as AS path, community, etc.
To filter routes learned from a peer by the route map, enter the peer’s IP address with the ip bgp neighbor
route-map command as shown:
-> ip bgp neighbor 172.22.2.0 route-map mapfilter in
The route map policy mapfilter must be previously created using the ip bgp policy route-map command.
To assign the same policy to route advertisements to the peer, enter the peer IP address with the ip bgp
neighbor route-map command, as shown:
-> ip bgp neighbor 172.22.2.0 route-map mapfilter out
Assigning In and Out Bound Prefix List Policies to a Peer
Prefix list policies filter routes based on a specific routing network, using an IP address or a series of IP
addresses.
To filter routes learned from a peer by the prefix list, enter the peer’s IP address with the ip bgp neighbor
in-prefixlist command as shown:
-> ip bgp neighbor 172.22.2.0 in-prefixlist prefixfilter
The route map policy prefixfilter must be previously created using the ip bgp policy prefix-list
command.
To assign the same policy to route advertisements to the peer, enter the peer IP address with the
ip bgp neighbor out-prefixlist command, as shown:
-> ip bgp neighbor 172.22.2.0 in-prefixlist prefixfilter