User guide

Configuring BGP Routing Policies
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide March 2015 page 4-89
Assigning Inbound and Outbound Policies to an IPv6 Peer
The following sections describes assigning various policies to an IPv6 BGP peer.
Assigning In and Outbound AS Path Policy
AS path policies filter routes based on matches made to a set AS list in the route. An AS list is a list of all
the ASs the route crosses until its destination. To filter routes learned from a peer by the AS list, enter the
IPv6 address of the BGP peer with the ipv6 bgp neighbor in-aspathlist command as shown:
-> ipv6 bgp neighbor 2001::1 in-aspathlist InBoundAspath
The AS path policy InBoundAspath must be previously created using the ip bgp policy aspath-list
command. Any inbound routes from the BGP peer must match this AS path filter before being accepted or
passed to an inbound policy
To attach the same policy on route advertisements to the peer, enter the peer IP address with the ipv6 bgp
neighbor out-aspathlist command, as shown:
-> ipv6 bgp neighbor 2001::1 out-aspathlist outBoundAspath
Assigning In and Outbound Community List Policy
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 IPv6 address with the ipv6 bgp
neighbor out-communitylist command as shown:
-> ipv6 bgp neighbor 2001::1 in-communitylist InBoundCommlist
The community list policy InBoundCommlist must be previously created using the ip bgp policy
community-list command. Any outbound routes from the BGP peer must match this community filter
before being advertised or passed to inbound policy.
To assign the same policy to route advertisements to the peer, enter the peer IP address with the ipv6 bgp
neighbor out-communitylist command, as shown:
-> ipv6 bgp neighbor 2001::1 out-communitylist OutboundCommList
Assigning In and Outbound Prefix List Policy
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 IPv6 address with the ipv6 bgp
neighbor in-prefixlist command as shown:
-> ipv6 bgp neighbor 2001::1 in-prefixlist InBoundPrefix
The route map policy InBoundPrefix 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 IPv6 address with the ipv6
bgp neighbor out-prefixlist command, as shown:
-> ipv6 bgp neighbor 2001::1 out-prefixlist OutBoundPrefix