User's Manual

Table Of Contents
473
Users Manual of CS-6306R
ip aspath-list test1 permit 70$
ip aspath-list test2 permit .*
In the following example, Set the MED and the local priority of the route from neighbor 171.69.232.55
according to the community attribute value. Set MED of all routes that match the community list com1 to
8000. These routes may contain routes with community value “100 200 300” and “900 901”. These routes
may have other attribute values.
Set the local priority of the routes which send the community list com2 to 500.
Set the local priority of other routes to 50. Therefore, all the local priority value of all remaining routes of
neighbor 171.69.232.55 is 50.
router bgp 200
neighbor 171.69.232.55 remote-as 100
neighbor 171.69.232.55 route-map filter-on-community in
!
route-map filter-on-community 10 permit
match community com1
set metric 8000
!
route-map filter-on-community 20 permit
match community com2
set local-preference 500
!
route-map filter-on-community 30 permit
set local-preference 50
!
ip community-list com1 permit 100 200 300
ip community-list com1 permit 900 901
!
ip community-list com2 permit 88
ip community-list com2 permit 90
!