❶ 怎麼在電腦DOS裡面設置網路
在電腦DOS環境下設置網路的步驟如下:
1. 打開命令提示符。在DOS環境下,輸入命令"ipconfig"來查看當前的IP設置。
```
C:\>ipconfig
```
this will display the current IP configuration, including the IP address, subnet mask, and default gateway.
2. 使用"netsh"命令來配置網路介面。輸入以下命令進入"netsh"的介面子命令。
```
netsh>interface
```
3. 在介面子命令下,使用"ip"子命令來設置IP地址。對於本地連接,使用靜態IP地址設置。
```
interface>ip>set
```
Then, set the IP address, subnet mask, and default gateway for the local connection. For example:
```
interface ip>set address "本地連接" static 192.168.0.2 255.255.255.0 192.168.0.1
```
This command sets the IP address to 192.168.0.2, the subnet mask to 255.255.255.0, and the default gateway to 192.168.0.1.
4. 確認更改後的IP地址是否正確,再次輸入"ipconfig"命令。
```
C:\>ipconfig
```
This will verify that the IP address has been changed successfully.
5. Explore additional commands and functionalities available within the "netsh" context, such as changing the DNS server or WINS server settings.
```
netsh>?
```
This will display a list of available commands and subcontexts within the "netsh" interface.
By following these steps, you can configure the network settings in a DOS environment on your computer.
❷ dos網路命令
以下是有三種情況
第一種,查看本地計算機詳細網路配置信息
1.開始運行對話框內輸入CMD回車
2.DOS命令窗口中輸入ipconfig/all回車返回所有適配器的IP地址,子網掩碼,默認網關,主機相關配置信息等信息
第二種,本地詳細網路配置信息保存到文檔
1.同時按鍵盤WIN+R對話框內輸入CMD回車
2.DOS命令窗口中輸入ipconfig/all>c:ipconfig.txt
3.找到C盤中新生成的ipconfig.txt
4.雙擊文件,打開查看
第三種,刷新DHCP協議,重新自動獲取IP
1.網路中存在DHCP伺服器,客戶端電腦的IP地址,從DHCP伺服器上獲取,如何刷新DHCP協議,重新獲取IP地址,先用ipconfig/release命令來丟棄IP地址配置,命令執行後,本地IP地址被置為0.0.0.0
2.再用ipconfig/renew命令來從DHCP服務上獲取ip地址,執行完成後用ipconfig/all命令來查看一下