Allied Telesis X908 Network Router User Manual


 
Use Route Maps and Other Filters to Filter and Alter BGP and OSPF Routes | Page 43
Examples
Example I Using an ACL-match in a route map to update just a single route out of an update
1. Configure static routes on the AW+ switch.
BGP(config)#ip route 192.34.23.0/26 64.93.23.1
BGP(config)#ip route 192.34.23.32/29 64.193.54.1
BGP(config)#ip route 192.34.23.192/27 64.12.89.1
2. Configure BGP to redistribute static routes.
router bgp 34567
redistribute connected
redistribute static
neighbor 45.45.45.46 remote-as 34568
3. Create an ACL that matches just one of these routes.
access-list standard marker permit 192.34.23.32/29
4. Create a route map with one clause that matches on this ACL and prepends an AS-path
(and then has another clause the permits everything else).
route-map marker permit 1
match ip address marker
set as-path prepend 7822
route-map marker permit 2
5. Apply this route map as the out route map for the peer.
router bgp 34567
redistribute connected
redistribute static
neighbor 45.45.45.46 remote-as 34568
neighbor 45.45.45.46 route-map marker out
6. Shut down the neighbor, and then bring it up again:
awplus(config-router)# neighbor 45.45.45.46 shutdown
awplus(config-router)# neighbor 45.45.45.46 no shutdown
7. Check the BGP table on the peer. Only one route should arrive at the other end with that
extra entry in the as-path.