Alcatel 060320-10, Rev. B Configuration Manual page 131

Advanced routing configuration guide
Table of Contents

Advertisement

Configuring BGP
Creating a Prefix List Policy
Prefix policies filter routes based on network addresses and their masks. You can also set prefix upper and
lower limits to filter a range of network addresses.
To create a prefix list policy:
1
Name the policy and specify the IP network address and mask using the
command, as shown:
-> ip bgp policy prefix-list prefixfilter 12.0.0.0 255.0.0.0
Prefix policy prefixfilter now filters routes that match the network address 12.0.0.0 with a mask of
255.0.0.0.
2
Set the policy action using the
permits or denies routes that match the filter. Permitted routes are advertised, while denied routes are not.
For example:
-> ip bgp policy prefix-list prefixfilter 12.0.0.0 255.0.0.0 action deny
Prefix policy prefixfilter now denies routes that match the network address 12.0.0.0 with a mask of
255.0.0.0.
3
Optionally, you can set a lower prefix limit on the addresses specified in the policy using the
policy prefix-list ge
-> ip bgp policy prefix-list prefixfilter 14.0.0.0 255.0.0.0 ge 16
Prefix policy prefixfilter now denies routes after 14.0.0.0/16.
4
Optionally, you can set an upper prefix limit on the addresses specified in the policy using the
policy prefix-list le
command. For example:
-> ip bgp policy prefix-list prefixfilter 14.0.0.0 255.0.0.0 le 24
Prefix policy prefixfilter now denies routes between 14.0.0.0/16 and 14.0.0.0/24
Creating a Route Map Policy
Route map policies let you amalgamate the other policy types together, as well as add various other filters.
For example, you could have a route map policy that includes both an AS path policy and a community
policy.
To create a route map policy:
1
Name the route map policy and assign it a sequence number using the
command. The sequence number allows for multiple instances of a policy, and orders the route map poli-
cies so that a lower sequence number is applied first. For example:
-> ip bgp policy route-map mapfilter 1
Route map policy mapfilter is now ready.
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide
ip bgp policy prefix-list action
command. For example:
ip bgp policy prefix-list
command. The policy action either
ip bgp policy route-map
March 2011
Routing Policies
ip bgp
ip bgp
page 3-47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch aos 7

Table of Contents