Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

How to route traffic based on date and time?

Hi,

We have a dedicate private line connecting to a remote office.
( DS3(BGP) -> 3rd party private network -> E1 (BGP) -> Ethernet (RIP) -> Satellite (RIP) )
There are Cisco routers at both ends.
This office has poor internet bandwidth so we want to route its internet traffic back to main office everyday at night from 8 pm to 8 am Eastern Time.
I know how to use static or RIP default route at remote router to direct its internet traffic back to main office.
But how do I cut it off when the morning comes?
And how do I add restrications at main office to block this traffic if someone at remote office removes the timing rule manually?

Can anyone give me an idea how to implement this?


Thank you!
-Andrew

Everyone's tags (2)
2 ACCEPTED SOLUTIONS

Accepted Solutions
Purple

How to route traffic based on date and time?

Hi,

you could use PBR with a time-based ACL to route traffic through this link during off-hours.

Eg:

time-range OFF_HOURS

periodic weekdays 20:00 to 7:59

access-list 101 permit ip any any  time-range OFF_HOURS

route-map OFF_HOURS

match ip address OFF_HOURS

set ip next-hop x.x.x.x or set interface x/x

interface fx/x

ip policy route-map OFF_HOURS

ip route-cache policy

Regards.

Alain.

Don't forget to rate helpful posts.

How to route traffic based on date and time?

also to add to the nice Post from Alain  5+

see the below link with some config example

http://www.iphelp.ru/faq/18/1587051346_ch04lev1sec24.html

hope this help

4 REPLIES
Purple

How to route traffic based on date and time?

Hi,

you could use PBR with a time-based ACL to route traffic through this link during off-hours.

Eg:

time-range OFF_HOURS

periodic weekdays 20:00 to 7:59

access-list 101 permit ip any any  time-range OFF_HOURS

route-map OFF_HOURS

match ip address OFF_HOURS

set ip next-hop x.x.x.x or set interface x/x

interface fx/x

ip policy route-map OFF_HOURS

ip route-cache policy

Regards.

Alain.

Don't forget to rate helpful posts.
Community Member

How to route traffic based on date and time?

Alain,

Thanks for the reply.

I'll test it and let you know.

Thanks,

-Andrew

How to route traffic based on date and time?

also to add to the nice Post from Alain  5+

see the below link with some config example

http://www.iphelp.ru/faq/18/1587051346_ch04lev1sec24.html

hope this help

Community Member

How to route traffic based on date and time?

Thank you, marwanshawi !

663
Views
5
Helpful
4
Replies
CreatePlease to create content