电脑故障

位置:IT落伍者 >> 电脑故障 >> 浏览文章

Windows设置静态&动态ip的脚本


发布日期:2023/9/22
 

使用netsh设置静态ip地址

@echo off

netsh interface ip set address "本地连接" static

netsh interface ip set dns "本地连接"

netsh interface ip add dns "本地连接" index=

pause

使用netsh设置动态ip地址

@echo off

netsh interface ip set address name="本地连接" source=dhcp

netsh interface ip set dns name="本地连接" source=dhcp

pause

上一篇:win7系统任务栏的设置方法

下一篇:如何拒绝接收垃圾邮件的设置小技巧