I would like someone smarter than me to look at this config and let me know if it will work. In the example, Memphis is the home office, and when up and working, the Memphis WAN router originates the default route to the MPLS network:
int s2/0.100 point-to-point
ip addr 152.177.98.78 255.255.255.252
router bgp 845
neighbor 152.177.93.77 remote-as 65000
neighbor 152.177.93.77 default-originate
The secondary site, New York, must be able to accept the default origination when Memphis is up, but then NY must originate the default route if/when Memphis goes down. I have that configured as follows:
int s2/0.100 point-to-point
ip addr 152.177.156.90
router bgp 845
neighbor 152.177.156.89 remote-as 65000
neighbor 152.177.156.89 default-originate route-map DEFROUTE
route-map DEFROUTE deny 10
match ip address 1
access-list 1 permit 152.177.93.78
I have also considered that the route-map and access-list could be reversed and still work, but I'm not sure:
route-map DEFROUTE permit 10
match ip address 1
access-list 1 deny 152.177.93.78
Any help would be greatly appreciated. Thanks.