how to change ip address in DOS

在vista, xp的dos下也可以使用這個指令來更改ip address

How to Use the NETSH Command to Change from Static IP Address to DHCP in Windows 2000

先用這個指令來看你的網卡名稱
C:\>Netsh interface ip show config
介面 “無線網路連線" 的設定
    已啟用 DHCP:                         是
    IP 位址:                           192.168.103.100
    子網路首碼:                        192.168.103.0/24 (遮罩 255.255.255.0)
    預設閘道:                             192.168.2.1
    閘道公制:                             0
    預設閘道:                             192.168.103.254
    閘道公制:                             0
    介面公制:                      25
    透過 DHCP 設定的 DNS 伺服器:  192.168.103.254
    以哪個尾碼登錄:                       僅主要尾碼
    透過 DHCP 設定的 WINS 伺服器: 無

再用下列指令來更改ip
C:\>netsh interface ip set address “無線網路連線" static 192.168.0.10 255.255.255.0 192.168.0.1 1

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 14 + 3 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)