User guide
Routing Policies Configuring BGP
page 4-88 OmniSwitch AOS Release 7 Advanced Routing Configuration Guide March 2015
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 out-prefixlist prefixfilter
Assigning In and Outbound Prefix6 List Policies
Prefix6 list policies filter IPv6 routes based on a specific IPv6 network address, or a range of IPv6 network
addresses.
To filter routes learned from a peer by the prefix6 list, enter the peer’s IP address with the ip bgp
neighbor in-prefix6list command as shown:
-> ip bgp neighbor 172.22.2.0 in-prefix6list InboundPrefix6
The route map policy InboundPrefix6 must be previously created using the ip bgp policy prefix6-list
command.
To assign the same policy to route advertisements to the peer, enter the peer IP address with the
ip bgp neighbor out-prefix6list command, as shown:
-> ip bgp neighbor 172.22.2.0 out-prefix6list OutboundPrefix6
Assigning In and Outbound Route Map Policies
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
Reconfiguring Peer Policies
You can configure policies and assign these policies to a BGP peer, either to control in-bound routes or
out-bound routes advertisement. Additionally, it is possible to change or modify these peer policies, after
they are assigned to a peer.
Once the policies have been modified, they have to be re-applied to the peer. To re-apply the policies to
only the peer under consideration, you can use the in-reconfigure and the out-reconfigure commands.
To reconfigure a peer’s in policies, enter the peer’s IP address with the ip bgp neighbor clear soft
command as shown:
-> ip bgp neighbor 172.22.2.0 clear soft in
To reconfigure a peer’s out policies, enter the peer IP address with the ip bgp neighbor clear soft
command, as shown:
-> ip bgp neighbor 172.22.2.0 clear soft out