cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1113
Views
5
Helpful
4
Replies

How to route traffic based on date and time?

andyaoyao
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

cadet alain
VIP Alumni
VIP Alumni

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.

View solution in original post

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

View solution in original post

4 Replies 4

cadet alain
VIP Alumni
VIP Alumni

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.

Alain,

Thanks for the reply.

I'll test it and let you know.

Thanks,

-Andrew

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

Thank you, marwanshawi !

Review Cisco Networking products for a $25 gift card