UNIX には ifconfg がある.Windows には netsh がある.
netsh.exe でコマンドラインから IP アドレスを変更出来る.
ちょっと違うのは、他の Windows マシンのコントロールもできること.
netsh
netsh は、実行中のコンピュータのネットワーク構成を表示または修正するコマンド ライン スクリプトユーティリティです。ローカルでもリモートでも使用できます。パラメータを付けずに netsh を実行すると、Netsh.exe コマンドプロンプト (netsh>) が表示されます。
構文
netsh[-aAliasFile] [-cContext] [-rRemoteComputer] [{NetshCommand | -fScriptFile}]
- http://technet2.microsoft.com/WindowsServer/ja/library/b2c92af5-425a-4c0b-8604-7a8c4ac497e01041.mspx?mfr=true
- http://pluralsight.com/blogs/keith/archive/2004/06/09/416.aspx
Here's a little secret - you may already know that a quick and easy way to set your IP address without having to type it into that silly GUI is to use NETSH.EXE:
netsh int ip set addr lo static 192.168.0.23 255.255.255.0 192.168.0.1 1netsh int ip set dns lo static 4.2.2.4 primarynetsh int ip set addr lo dhcpnetsh int ip set dns lo dhcp
Windows 用の ifconfig もあるらしい.
ifconfig for Windows: saves me from having to remember if I'm if'ing or ip'ing...
- http://www.leastprivilege.com/CommentView.aspx?guid=904e000b-ee39-4f7d-a292-32100ef02dce
- http://www.leastprivilege.com/netshVsIfconfig.aspx
if you want to play around with ifconfig - you can get it here.
if you want to play with netsh - hey - it's included in windows ;)