A good way to do route redistribution is to redistribute static routes using a route map. BGP will let you redistribute static, but in order to protect agains errors it is better to filter the static routes via the use of a route map. See example below:
router bgp 65049
bgp log-neighbor-changes
neighbor 10.248.45.161 remote-as 9942
neighbor 10.248.45.161 description ** Moonee Ponds Backup BGP Session via Telstra DDFE **
neighbor 10.248.45.161 password 7 050F56182F1F5C5A1702
neighbor 192.168.208.6 remote-as 65049
!
address-family ipv4
redistribute connected
redistribute static route-map STATIC-TO-BGP
neighbor 10.248.45.161 activate
neighbor 10.248.45.161 send-community
neighbor 192.168.208.6 activate
no auto-summary
no synchronization
exit-address-family
!
ip route 10.5.100.65 255.255.255.255 192.168.208.1
ip route 192.168.210.0 255.255.255.0 192.168.208.1
!
ip prefix-list static-to-bgp seq 10 permit 192.168.210.0/24
ip prefix-list static-to-bgp seq 20 permit 10.5.100.65/32
! route-map static-to-bgp permit 10
match ip address prefix-list static-to-bgp
No comments:
Post a Comment