发布网友
共1个回答
热心网友
自己用记事本写个bat文件.很简单.如下:
有固定IP(IP:192.168.1.100
掩码:255.255.255.0
网关:
192.168.1.254
DNS:218.2.135.1),可如下写:
netsh
interface
ip
set
address
"本地连接"
static
192.168.1.100
255.255.255.0
192.168.1.254
1
netsh
interface
ip
set
dns
"本地连接"
static
218.2.135.1
自动获取,可如下写:
netsh
interface
ip
set
address
"本地连接"
dhcp
netsh
interface
ip
set
dns
"本地连接"
dhcp
将以上代码分别保存为两个bat放在桌面,需要切换时双击就可以啦
热心网友
自己用记事本写个bat文件.很简单.如下:
有固定IP(IP:192.168.1.100
掩码:255.255.255.0
网关:
192.168.1.254
DNS:218.2.135.1),可如下写:
netsh
interface
ip
set
address
"本地连接"
static
192.168.1.100
255.255.255.0
192.168.1.254
1
netsh
interface
ip
set
dns
"本地连接"
static
218.2.135.1
自动获取,可如下写:
netsh
interface
ip
set
address
"本地连接"
dhcp
netsh
interface
ip
set
dns
"本地连接"
dhcp
将以上代码分别保存为两个bat放在桌面,需要切换时双击就可以啦
热心网友
自己用记事本写个bat文件.很简单.如下:
有固定IP(IP:192.168.1.100
掩码:255.255.255.0
网关:
192.168.1.254
DNS:218.2.135.1),可如下写:
netsh
interface
ip
set
address
"本地连接"
static
192.168.1.100
255.255.255.0
192.168.1.254
1
netsh
interface
ip
set
dns
"本地连接"
static
218.2.135.1
自动获取,可如下写:
netsh
interface
ip
set
address
"本地连接"
dhcp
netsh
interface
ip
set
dns
"本地连接"
dhcp
将以上代码分别保存为两个bat放在桌面,需要切换时双击就可以啦