Examples
Example D Matching on a next-hop prefix-list
1.Create a
awplus#ship
2.Create a route map with a permit entry that matches on this
awplus#shmatch ip
3.Apply this route map as the in route map on the neighbor:
awplus(config)#router bgp 34567
4.Shut down the neighbor, and then bring it up again:
5.All the routes are learnt OK from the neighbor:
awplus#show ip route
Codes: C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2
* - candidate default
B45.0.0.0/8 [20/0] via 45.45.45.46, vlan1, 00:00:03
C45.45.45.0/24 is directly connected, vlan1
B52.0.0.0/8 [20/0] via 45.45.45.46, vlan1, 00:00:03
C64.0.0.0/4 is directly connected, vlan64
Example E Prepending AS numbers
1.Create a route map that prepends a list of AS numbers to the attribute field of outgoing updates:
awplus(config-route-map)#match ip address 1
2.Set this as the out route map for the neighbor 45.45.45.46
awplus(config-route-map)#router bgp 34567
3.Shut down the neighbor, and then bring it up again:
4.Now, check the routes learnt on the neighbor - note the long
Manager BGP peer> show bgp route
Page 38 Use Route Maps and Other Filters to Filter and Alter BGP and OSPF Routes