beautypg.com

3 configuring the route-map and applying to bgp – CANOGA PERKINS 9175 Configuration Guide User Manual

Page 122

background image

CanogaOS Configuration Guide

19-2

Command Description

route-map abc

redistribute command in OSPF.

DUT(config-router)# end

Exit the OSPF mode and return to the
privileged EXEC mode.


Validation Commands
To display the route-map configuration, use the show route-map [NAME] in the
privileged EXEC command.

DUT# show route-map
route-map abc, permit, sequence 10
Match clauses:
metric 20
Set clauses:
tag 2
route-map abc, permit, sequence 20
Match clauses:
Set clauses:

19.3 Configuring the route-map and applying to BGP

Beginning in privileged EXEC mode, follow these steps to configure the route-map:

Command Description

DUT1# configure terminal

Enter the Configure mode.

DUT1(config)# ip access-list acl1

Create an access-list named acl1.

DUT(config-ip-acl)# permit any any
3.3.3.0 0.0.0.255

Create a rule to permit the route with
3.3.3.0/24

DUT1(config-ip-acl)# exit

Exit the access-list configure mode and return
to configure mode.

DUT1(config)# route-map abc
permit

Create a route-map named abc and enter
route-map mode.

DUT1(config-route-map)# match ip
address acl1

Configure the match criteria.

DUT1(config-route-map)# set
local-preference 200

Configure the set action to be performed;

DUT1(config-route-map)# exit

Exit route-map mode and return to configure
mode.

DUT1(config)# route-map abc
permit 20

Configure to add a route-map with the same
tag to match everything when the match
conditions above are not met. This is used to
prevent routes to be denied when not match
the match criteria above.

DUT1(config-route-map)# exit

Exit route-map mode and return to configure
mode.

DUT1(config)# router bgp 1

Enter BGP router mode.

DUT1(config-router)# neighbor
1.1.1.2 remote-as 1

Configure the remote peer with neighbor
address 1.1.1.2 and remote-as 1.