Another solution will be running two EEM Applets daily at specified times
using a cron event:
event manager applet CHANGE_ROUTES_8PM
event timer cron name RUN_DAILY_AT_8PM cron-entry "0 20 * * *"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "no ip route 0.0.0.0 0.0.0.0 ser 0/0"
action 4.0 cli command "ip route 0.0.0.0 0.0.0.0 10.1.1.1"
action 5.0 cli command "end"
action 6.0 cli command "write"
And there should be another similar applet to run in the morning.
Regards,
Rares
On Wed, Mar 9, 2011 at 11:01 PM, Amin <amin_at_axizo.com> wrote:
> Can you give me some example.
>
> I have a router with two default routes
>
> Ip route 0.0.0.0 0.0.0.0 ser0/0 ! I want to use this in the day
>
> Ip route 0.0.0.0 0.0.0.0 10.1.1.1 ! I want to use this in the night
>
>
>
> Regards,
>
>
>
>
>
> From: Manouchehr Omari [mailto:manouchehr1979_at_gmail.com]
> Sent: Wednesday, March 09, 2011 3:00 AM
> To: Amin
> Cc: ccielab_at_groupstudy.com
> Subject: Re: time based route
>
>
>
>
>
>
>
>
>
> You can use kron.
>
>
>
> Thanks,
>
> On Wed, Mar 9, 2011 at 3:43 PM, Amin <amin_at_axizo.com> wrote:
>
> Hi expert,
>
>
>
> How I can configure a time based route, I want a route base on the time of
> the day.
>
>
>
> Regards,
>
> Amin
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Wed Mar 09 2011 - 15:18:23 ART
This archive was generated by hypermail 2.2.0 : Fri Apr 01 2011 - 06:35:41 ART