Re: 请问:运行什么命令能直接打开配置IP的那个对话框?# Windows - 看得见风景的窗口
d*m
1 楼
Here is an example of configuring a static ip:
Create a .bat file, add the following lines (REM comments the lines):
rem DNS 1 -> 192.168.0.1 (Just example here)
rem DNS 2 -> 192.168.0.10 (Just example here)
rem Gateway -> 192.168.0.1
rem IP Address -> 192.168.0.2
rem Subnet Mask -> 255.255.255.0
rem set IP address and subnet mask
netsh interface ip set address name = "Local Area Connection" source = static addr = 192.168.0.2 mask = 255.255.255.0
rem set gateway
netsh interface ip set address n