如果你玩過路由器的話,就知道路由器里面那些很好玩的命令縮寫。
例如,"sh int" 的意思是 "show interface"。
現(xiàn)在 Windows 2000 也有了類似界面的工具,叫做 netsh。
我們在 Windows 2000 的 cmd shell 下,輸入 netsh
就出來:netsh> 提示符,
輸入 int ip 就顯示:
interface ip>
然后輸入 dump ,我們就可以看到當(dāng)前系統(tǒng)的網(wǎng)絡(luò)配置:
# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip
# Interface IP Configuration for "Local Area Connection"
set address name = "Local Area Connection" source = static addr = 192.168.1.168
mask = 255.255.255.0
add address name = "Local Area Connection" addr = 192.1.1.111 mask = 255.255.255.0
set address name = "Local Area Connection" gateway = 192.168.1.100 gwmetric = 1
set dns name = "Local Area Connection" source = static addr = 202.96.209.5
set wins name = "Local Area Connection" source = static addr = none
popd
# End of interface IP configuration
上面介紹的是通過交互方式操作的一種辦法。
我們可以直接輸入命令:
"netsh interface ip add address "Local Area Connection" 10.0.0.2 255.0.0.0"
來添加 IP 地址。
如果不知道語法,不要緊的哦!
在提示符下,輸入 ? 就可以找到答案了。方便不方便啊?
原來微軟的東西里面,也有那么一些讓人喜歡的玩意兒。可惜,之至者甚少啊!
Windows網(wǎng)絡(luò)命令行程序
這部分包括:
使用 ipconfig /all 查看配置
使用 ipconfig /renew 刷新配置
使用 ipconfig 管理 DNS 和 DHCP 類別 ID
使用 Ping 測試連接
使用 Arp 解決硬件地址問題
使用 nbtstat 解決 NetBIOS 名稱問題
使用 netstat 顯示連接統(tǒng)計
使用 tracert 跟蹤網(wǎng)絡(luò)連接
使用 pathping 測試路由器
使用 ipconfig /all 查看配置
發(fā)現(xiàn)和解決 TCP/IP 網(wǎng)絡(luò)問題時,先檢查出現(xiàn)問題的計算機(jī)上的 TCP/IP 配置??梢允褂?ipconfig 命令獲得主機(jī)配置信息,包括 IP 地址、子網(wǎng)掩碼和默認(rèn)網(wǎng)關(guān)。
例如,"sh int" 的意思是 "show interface"。
現(xiàn)在 Windows 2000 也有了類似界面的工具,叫做 netsh。
我們在 Windows 2000 的 cmd shell 下,輸入 netsh
就出來:netsh> 提示符,
輸入 int ip 就顯示:
interface ip>
然后輸入 dump ,我們就可以看到當(dāng)前系統(tǒng)的網(wǎng)絡(luò)配置:
# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip
# Interface IP Configuration for "Local Area Connection"
set address name = "Local Area Connection" source = static addr = 192.168.1.168
mask = 255.255.255.0
add address name = "Local Area Connection" addr = 192.1.1.111 mask = 255.255.255.0
set address name = "Local Area Connection" gateway = 192.168.1.100 gwmetric = 1
set dns name = "Local Area Connection" source = static addr = 202.96.209.5
set wins name = "Local Area Connection" source = static addr = none
popd
# End of interface IP configuration
上面介紹的是通過交互方式操作的一種辦法。
我們可以直接輸入命令:
"netsh interface ip add address "Local Area Connection" 10.0.0.2 255.0.0.0"
來添加 IP 地址。
如果不知道語法,不要緊的哦!
在提示符下,輸入 ? 就可以找到答案了。方便不方便啊?
原來微軟的東西里面,也有那么一些讓人喜歡的玩意兒。可惜,之至者甚少啊!
Windows網(wǎng)絡(luò)命令行程序
這部分包括:
使用 ipconfig /all 查看配置
使用 ipconfig /renew 刷新配置
使用 ipconfig 管理 DNS 和 DHCP 類別 ID
使用 Ping 測試連接
使用 Arp 解決硬件地址問題
使用 nbtstat 解決 NetBIOS 名稱問題
使用 netstat 顯示連接統(tǒng)計
使用 tracert 跟蹤網(wǎng)絡(luò)連接
使用 pathping 測試路由器
使用 ipconfig /all 查看配置
發(fā)現(xiàn)和解決 TCP/IP 網(wǎng)絡(luò)問題時,先檢查出現(xiàn)問題的計算機(jī)上的 TCP/IP 配置??梢允褂?ipconfig 命令獲得主機(jī)配置信息,包括 IP 地址、子網(wǎng)掩碼和默認(rèn)網(wǎng)關(guān)。