Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Whats the equivalent of ifup under windows?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

From Microsoft's The DevCon command-line utility functions as an alternative to Device Manager:

The DevCon utility is a command-line utility that acts as an alternative to Device Manager. Using DevCon, you can enable, disable, restart, update, remove, and query individual devices or groups of devices. DevCon also provides information that is relevant to the driver developer and is not available in Device Manager.

See Using Devcon for more info.

You may therefore use :

devcon listclass Net

to figure out the name of the network adaptor in question, then just make a bat file with for example

devcon disable *ven_14E4*<br/> or
devcon enable *ven_14E4*

share|improve this answer
    
+1 That is a nice find. And it does way more than toggling an interface. wow. –  DaveParillo Nov 12 '09 at 16:01

You might try netsh - it's an interactive program. Type netsh. At the prompt try:

> netsh interface ip set address 
        name="Local Area Connection" 
        source=static addr=192.168.0.10 
        mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1
share|improve this answer

ipconfig /renew <adapter>

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.