ESR service routers. ESR-Series. Functionality description. Version 1.12.0
162
•
•
Create rule:
esr(config-route-map)# rule
1
If community contains 2500:25, assign MED 240 and Origin EGP to it:
esr(config-route-map-rule)# match community
2500
:
25
esr(config-route-map-rule)# action set metric bgp
240
esr(config-route-map-rule)# action set origin egp
esr(config-route-map-rule)# exit
esr(config-route-map)# exit
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
5.6.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.