•
•
In AS 2500 BGP process, enter neighbour parameter configuration:
esr(config)# router bgp 2500
esr(config-bgp)# address-family ipv4
esr(config-bgp-af)# neighbor 185.0.0.2
Map the policy to routing information being advertised:
esr(config-bgp-neighbor)# route-map to-as20 out
esr(config-bgp-neighbor)# exit
esr(config-bgp)# exit
esr(config)# exit
11.7.4 Route-map based on access control lists (Policy-based routing) configuration algorithm
Step Description Command Keys
1 Create a route map for IP routes
filtration and modification.
esr(config)# route-map <NAME> <NAME> – router map name,
set by the string of up to 31
characters.
2 Create a route map rule esr(c onfig-route-map)# rule
<ORDER>
<ORDER> – rule number, takes
values of [1..10000].
3 Specify the action that should be
applied for routing information.
esr(config-route-map-rule)# action
<ACT>
<ACT> – allocated action:
permit – routing
information reception or
advertising is permitted;
deny – denied.
4 Set ACL for which the rule should work
(optionally).
esr(config-route-map-rule)# match
ip access-group <NAME>
<NAME> – access control list
name, set by the string of up to
31 characters.
5 Set Next-Hop for the packets that meet
the requirements of the specified ACL
(optionally).
esr(config-route-map-rule)# action
set ip next-hop verify-availability
<NEXTHOP><METRIC>
<NEXTHOP> – gateway IP
address, defined as
AAA.BBB.CCC.DDD where each
part takes values of [0..255];
<METRIC> – route metric, takes
values of [0..255].
6 Specify ACL-based routing policy. esr(config-if-gi)# ip policy route-
map <NAME>
<NAME> – configured routing
policy name, set by the string of
up to 31 characters.