I have a device that is using BGP to learn a default route and redistribute that route into two VRFs (VRF_24 and VRF_25)
I need to use OSPF on the same router to learn a route from an appliance and redistribute that route to both VRFs.
Below is an example of the current config and the proposed config to make this work.
Will the proposed config that I have posted below work?
Is there a better way to accomplish this?
Example of current BGP config on router
!
!
!
router bgp 63302
bgp log-neighbor-changes
!
address-family ipv4
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf VRF_25
neighbor 10.100.100.10 remote-as 35502
neighbor 10.100.100.10 description Router1
neighbor 10.100.100.10 ebgp-multihop 255
neighbor 10.100.100.10 timers 20 30 30
neighbor 10.100.100.10 activate
neighbor 10.100.100.10 weight 250
neighbor 10.100.100.10 prefix-list defaultonly in
no synchronization
exit-address-family
!
address-family ipv4 vrf VRF_24
neighbor 10.100.100.10 remote-as 35502
neighbor 10.100.100.10 description Router1
neighbor 10.100.100.10 ebgp-multihop 255
neighbor 10.100.100.10 timers 20 30 30
neighbor 10.100.100.10 activate
neighbor 10.100.100.10 weight 250
neighbor 10.100.100.10 prefix-list defaultonly in
no synchronization
exit-address-family
!
!
!
Proposed config to redistribute OSPF learned routes into VRF.
!!
!
access-list 10 remark OSPF redist filter
access-list 10 permit 10.254.54.100
access-list 10 deny any
!
!
router ospf 200 vrf_24
router-id 10.254.24.241
log-adjacency-changes
area 10 authentication message-digest
passive-interface default
no passive-interface Vlan24
network 10.254.24.0 0.0.0.255 area 10
distribute-list 10 in
distribute-list 10 out
neighbor 10.254.24.248 interface vlan24
!
router ospf 200 vrf_25
router-id 10.254.25.241
log-adjacency-changes
area 10 authentication message-digest
passive-interface default
no passive-interface Vlan25
network 10.254.25.0 0.0.0.255 area 10
distribute-list 10 in
distribute-list 10 out
neighbor 10.254.25.248 interface vlan25
!
int vlan 25
ip ospf network non-broadcast
ip ospf message-digest-key 1 md5
ip ospf authentication message-digest
!
!
Thanks for any suggestions.
Joe