歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> netsh切換IP地址

netsh切換IP地址

日期:2017/3/1 17:08:30   编辑:關於Linux

netsh切換IP地址 方法一: 示例bat程序: www.2cto.com echo #設靜態IP、默認網關 netsh interface ip set address name="Local Area Connection" static 192.168.0.123 255.255.255.0 192.168.0.1 0 echo #設首選dns netsh interface ip set dns name="Local Area Connection" source=static addr=168.95.1.1 register=PRIMARY echo #設備用dns netsh interface ip add dns name="Local Area Connection" addr=8.8.8.8 index=2 echo #wins設置為無 netsh interface ip set wins name="Local Area Connection" source=static addr=none echo # 接口 IP 配置結束 內容根據實際修改即可。 www.2cto.com 方法二: netsh -c interface dump >c:\netset.txt rem 當前網卡配置生成為文件 netsh -f c:\netset.txt rem 將配置文件中的內容應用到網卡設置.
Copyright © Linux教程網 All Rights Reserved