
2.4 route-map
The sg has the following. Is there a benefit to doing the following vs having a seperate route-map for each network statement. Having seperate route-maps would mean no prefix list is needed and no match inside the routemap.
router bgp 200
network 150.1.33.0 mask 255.255.255.0 route-map SET_COMMUNITY
network 150.1.133.0 mask 255.255.255.0 route-map SET_COMMUNITY
route-map SET_COMMUNITY permit 10
match ip address prefix-list LOOPBACK33
set community 100:542
!
route-map SET_COMMUNITY permit 20
match ip address prefix-list LOOPBACK133
set community 100:546
!
ip prefix-list LOOPBACK33 permit 150.1.33.0/24
ip prefix-list LOOPBACK133 permit 150.1.133.0/24
!
This was what i ended up with.
router bgp 200
network 150.1.33.0 mask 255.255.255.0 route-map 100:542
network 150.1.133.0 mask 255.255.255.0 route-map 100:546
route-map 100:542 permit 10
set community 100:542
route-map 100:546 permit 10
set community 100:546
Comments
No it doesn't really matter unless you have a restriction that says to only use one route-map.