在ms-dos里改ip,掩码,网关
作者:vip_260 来源:未知 日期:2011/6/29 13:15:24 人气:
标签:
1,先用ipconfig命令查看当前IP和DNS,网关地址2,用netsh命令进行修改在dos环境下, C:\>netsh (然后执行netsh这个命令) netsh>interface (netsh命令的子命令)
1,先用ipconfig命令查看当前IP和DNS,网关地址
2,用netsh命令进行修改
在dos环境下,
C:\>netsh (然后执行netsh这个命令)
netsh>interface (netsh命令的子命令)
interface>ip (interface命令的子命令)
interface ip>set (interface ip命令的子命令)
具体修改命令如下:
set address - 设置指定的接口的 IP 地址或默认网关
set dns - 设置 DNS 服务器模式和地址。
set wins - 设置 WINS 服务器模式和地址。
interface ip>set address "本地连接" static 192.168.0.2 255.255.255.0 192.168.0.1 (设置IP地址)
改好以后,用 interface ip>exit 退出。
3,再用ipconfig检查修改后的IP。
在这里,我们主要是用了netsh命令,具体可以 打 ? 获得帮助。
清除DNS缓存命令:ipconfig /flushdns