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

Advanced routing configuration guide
Table of Contents

Advertisement

Routing Policies
2
Next, use the
ip bgp policy aspath-list action
is whether the route filtered by the policy is permitted or denied. Denied routes are not propagated by the
BGP speaker, while permitted routes are. For example:
-> ip bgp policy aspath-list aspathfilter "^100 200$" action permit
The AS path policy aspathfilter now permits routes that match the regular expression ^100 200$. Regular
expressions must be enclosed by quotes.
3
Optionally, you can set the priority for routes filtered by the policy using the
priority
command. Priority for policies indicates which policy should be applied first to routes. Routes
with a high priority number are applied first. To set the policy priority, enter the policy name with the
priority number, as shown:
-> ip bgp policy aspath-list aspathfilter "^100 200$" priority 10
The AS path policy aspathfilter now has a priority of 10. Regular expressions must be enclosed by
quotes.
Creating a Community List Policy
Community list policies must be assigned a name and a community number. Predetermined communities
are specified in RFC 1997.
To create a community policy:
1
Assign a name and community number to the policy using the
command, as shown:
-> ip bgp policy community-list commfilter 600:1
The policy name is commfilter and it looks for routes in the community 600:1.
2
Set the policy action using the
either permits or denies routes that match the filter. Permitted routes are advertised, while denied routes
are not. For example:
-> ip bgp policy community-list commfilter 600:1 action permit
The commfilter policy now permits routes in community 600:1 to be advertised.
3
Set the policy match type using the
type can be set to either exact or occur. An exact match only affects routes that are solely in the specified
community, while an occur match indicates that the community can be anywhere in the community list.
For example:
-> ip bgp policy community-list commfilter 600:1 match-type exact
Policy commfilter now looks for routes that only belong to the community 600:1.
4
Optionally, you can set the priority for routes filtered by the policy using the
community-list priority
routes. Routes with a high priority number are applied first. To set the policy priority, enter the policy
name with the priority number, as shown:
-> ip bgp policy community-list commfilter 500:1 priority 3
Policy commfilter now has a priority of 3.
page 3-46
command to set the policy action. The action of a policy
ip bgp policy community-list action
ip bgp policy community-list match-type
command. Priority for policies indicates which policy should be applied first to
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide
ip bgp policy aspath-list
ip bgp policy community-list
command. The policy action
command. The match
ip bgp policy
Configuring BGP
March 2011

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch aos 7

Table of Contents