cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
695
Views
5
Helpful
3
Replies

Forcing 24h DSL disconnect on router

Ich Nafi
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

3 Replies 3

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"

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

Thank you to both of you.

Since both Answers are correct, I prefer the kron-task. I think it's more "elegant".

Cheers

Ichnafi

Review Cisco Networking for a $25 gift card