Disconnect the pppoe connection?

  • Thread starter Thread starter aseembehl
  • Start date Start date
  • Replies Replies 3
  • Views Views 4,216

aseembehl

Newbie
Messages
27
Location
NA
ISP
MTNL
I have switched to pppoe finally to save myself from these disconnections at night. The problem now I have is that router reboot script reboots my connection at 7:30 in the morning, I need something to disconnect it...is there a way to automatically disconnect the pppoe connection?
 
use the rasdial command already in built with windows...

make a dilaer.bat file, open with notepad and save the following content:

rasdial connectionname username password

EXIT

I have scheduled this batch file to run at 0004 everyday.

make a disconnect.bat with

rasdial connectionname /disconnect

EXIT

I have scheduled this to run at 0003 & 0755

You can tweak even more using scheduled tasks:
Stuff like:
1. I have another scheduled task which runs dialer.bat every 5 mins from 0005 to 0750.
2. Another task which runs the disconnect.bat every 2mins from 0755 to 0830
3. Another task to run my shutdown.bat at 0757 (please note that shutting down ur PC with bridged mode DOES infact disconnect you from mtnl so it is totally safe... )
@echo
shutdown -s -f -t 30
EXIT
 
Thank you for your reply, but as I mentioned in my post above, I dont use Bridge Mode, I use pppoe so the methods you explained above don't work for me.Is there some way I could disconnect pppoe based connection?
 

Top