12-15-2016 07:29 AM - edited 03-05-2019 07:41 AM
Hello everyone,
we use a 2951 router with a EHWIC-VA-DSL-B card as our VDSL router.
Is there any way to reconnect the DSL connection on a certain time of our choice (i.e. at night) other than just reconnect once at nightime and hope that the 24h rhythm won't brake?
Many consumer routers have a function to disconnect and reconnect on a certain time, so the provider forced interrupt won't happen at primetime.
Thanks for any advice.
Cheers
Ichnafi
Solved! Go to Solution.
12-15-2016 10:15 AM
In addition to EEM, it could also be done with a little kron-task:
kron occurrence clear-dialer at 02:00 recurring
policy-list clear-dialer
!
kron policy-list clear-dialer
cli clear int dialer 0
12-15-2016 08:08 AM
Hello,
you could use an EEM script to accomplish this. In the example below, interface Dialer0 will be shut every day at midnight, and reactivated at 1 AM:
event manager applet shut_port
event timer cron cron-entry "0 0 * * *"
action 010 cli command "enable"
action 020 cli command "config t"
action 030 cli command "interface Dialer0"
action 040 cli command "shut"
action 050 cli command "end"
action 060 syslog msg "Interface Dialer0 has been shutdown"
event manager applet unshut_port
event timer cron cron-entry "0 1 * * *"
action 010 cli command "enable"
action 020 cli command "config t"
action 030 cli command "interface Dialer0"
action 040 cli command "no shut"
action 050 cli command "end"
action 060 syslog msg "Interface Dialer0 has been activated"
12-15-2016 10:15 AM
In addition to EEM, it could also be done with a little kron-task:
kron occurrence clear-dialer at 02:00 recurring
policy-list clear-dialer
!
kron policy-list clear-dialer
cli clear int dialer 0
12-15-2016 10:52 PM
Thank you to both of you.
Since both Answers are correct, I prefer the kron-task. I think it's more "elegant".
Cheers
Ichnafi
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide