Time-Based Default-route

How can we make time-based default route advertisment? For example if we have two internet routers and third router connected to both of them. We need to make RA send default route during day time and RB send it during night time.

In order to achieve this goal, we have to configure RA and RB as displayed bellow:

RA configuration:

time-range DAY
periodic daily 8:00 to 18:00
!
access-list 101 permit ip host 0.0.0.0 host 0.0.0.0 time-range DAY
!
route-map Default-route permit 10
match ip address 101
!
router ospf 1
redistribute static subnets route-map Default-route metric 10
!

RB configuration:

time-range NIGHT
periodic daily 18:01 to 23:59
periodic daily 0:00 to 7:59
!
access-list 101 permit ip host 0.0.0.0 host 0.0.0.0 time-range NIGHT
!
route-map Default-route permit 10
match ip address 101
!
router ospf 1
redistribute static subnets route-map Default-route metric 10
!

Useful Links:


no comment


    Add Your Comment