What's the equivalent of ifup under Windows?

2

1

What's the equivalent of ifup under Windows?

Jichao

Posted 2009-11-10T06:02:17.643

Reputation: 5 245

Answers

2

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*

harrymc

Posted 2009-11-10T06:02:17.643

Reputation: 306 093

+1 That is a nice find. And it does way more than toggling an interface. wow. – DaveParillo – 2009-11-12T16:01:05.037

1

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

DaveParillo

Posted 2009-11-10T06:02:17.643

Reputation: 13 402

1

ipconfig /renew <adapter>

Hugh Allen

Posted 2009-11-10T06:02:17.643

Reputation: 8 620