In dial the VPS how to use batch processing to disconnect the broadband redial change IP?

 Dial VPS , VPS is the use of broadband dial-up connection way, each broadband connection to be redialed, ip will change, this is what we often say that the dynamic ip, of course, it was also known as dynamic dial vps vps.

  Replacement of the VPS IP, generally need to manually disconnect the broadband connection, and then re-dial. In fact, we can achieve automatic dialing through a process where we went down to introduce how to use batch processing to achieve broadband automatic redial off to replace ip.

  Rasdial is the windows system comes with a command, with this command we can disconnect dial-up and dial-up connections. In fact, in the windows system contains all the dial-up connection dial-up connection broadband connection, pptp, L2TP, SSTP, ikev2 and other windows system. So, we can also use this command Rasdial automatically disconnect all dialup connections redial change ip.

  Command dial connection:

  Rasdial entryname account password

  entryname refers to the name of the dial-up connection, if the connection name is "broadband connection," the account is adsl888. password is 123456. follows the command

  rasdial broadband connection adsl888 123456

  First, we create a new text file, enter the above command, save the batch file is .bat dial. Just run the .bat can automatically dial dialing.

  Disconnect the dial command:

  Rasdial entryname / disconnected

  entryname is the name of the dial-up connection, if the connection name is "broadband connection," then the following command

  rasdial broadband connection / disconnect

  Create a new text file, enter the above command, save as .bat off the batch file. After just run this .bat off can be realized disconnect dialing.

  There are basic commands can use these two friends made a disconnect dialing key, but it is preferable to add an intermediate time interval, this interval is generally 3-5s.

Guess you like

Origin www.cnblogs.com/smileyang/p/12164133.html