网络安全

位置:IT落伍者 >> 网络安全 >> 浏览文章

windows如何动态修改ip


发布日期:2023年03月05日
 
windows如何动态修改ip

办公网络和家里的网络不一样 总是要换来换去弄了一个脚本双击运行就可以了win要用超级管理员去运行

echo 设置ip 默认子网 默认网关 开始(无线网络连接就是网络连接名称也可以是‘本地连接’ )

netsh interface ip set address "无线网络连接" static

echo 设置ip 默认子网 默认网关 结束

echo 设置主dns ip 开始

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

echo 设置主dns ip 结束

echo 设置副dns ip 开始

netsh interface ip add dns "本地连接"

echo 设置副dns ip 结束

echo 先禁用网卡

netsh interface set interface "本地连接" disable

echo 使用reg add命令修改物理地址(DBEDmac地址)

reg add HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlClass{DEECEBFCBE}/v NetworkAddress /d DBED/f

echo 再启用网卡

netsh interface set interface "本地连接" enable

pause


上一篇:TCP/IP基础:IP 封包表头格式及TCP/IP的构成

下一篇:没有了