设置 IP 地址。
add | |||||||||||||||||
delete | |||||||||||||||||
dump | |||||||||||||||||
help | |||||||||||||||||
ip
|
|||||||||||||||||
reset | |||||||||||||||||
set | |||||||||||||||||
show |
功能 | 语法 |
---|---|
设置IP | Netsh interface IP Set Address "本地连接" Static 192.168.1.2 255.255.255.0 192.168.1.1 1 |
添加IP | netsh interface ip add address "本地连接" 192.168.1.3 255.255.255.0 |
设置DNS | netsh interface IP set dns "本地连接" static 192.168.1.1 |
添加DNS | netsh interface IP add dns "本地连接" 192.168.1.3 |