Jump to content

DOS command to connect or disconnect from PPPoE connection?


Arya
 Share

Recommended Posts

I think there is. But it may not be what you're looking for as I've never used it myself.

There's a tool called RASDIAL which can be used in Command Line in both XP and Vista and should already be usable on your machine but to test it quickly, just open the command line and type

RASDIAL
and if it does work then it should say something like...

C:\........> RASDIAL

No connections.

Command completed successfuly.

To connect:

rasdial ABC123 Horace Password7090

To disconnect:

rasdial ABC123 /disconnect

In this example, I've used ABC123 as your internet connection name, Horace as your username and Password7090 as your password.

Is this what you mean?

Link to comment
Share on other sites

Yes Hb_Kai and Pat, I meant ipconfig instead of ifconfig. Along with viewing interface configuration, ipconfig also lets you perform actions like releasing and renewing IP addresses.

P:\>ipconfig /?

USAGE:
ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] ]

where
adapter Connection name
(wildcard characters * and ? allowed, see examples)

Options:
/? Display this help message
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid, if no ClassId is specified, then the ClassId is removed.

Examples:
> ipconfig ... Show information.
> ipconfig /all ... Show detailed information
> ipconfig /renew ... renew all adapters
> ipconfig /renew EL* ... renew any connection that has its
name starting with EL
> ipconfig /release *Con* ... release all matching connections,
eg. "Local Area Connection 1" or
"Local Area Connection 2"

P:\>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy