Windows中的一个类似路由器命令的命令

路由器中,"sh int" 的意思是 "show interface"。
现在 Windows 也有了类似界面的工具,叫做 netsh。
我们在 Windows 的 cmd shell 下,输入 netsh 就出来:netsh> 提示符,
输入 int ip 就显示: interface ip>
然后输入 dump ,我们就可以看到当前系统的网络配置:

C:\Documents and Settings\administrator>netsh
Netsh>int ip
Netsh interface ip>dump

# ----------------------------------
# 接口 IP 配置
# ----------------------------------
pushd interface ip

# "VMware Network Adapter VMnet8" 的接口 IP  配置

set address name="VMware Network Adapter VMnet8" source=static addr=192.168.121.
1 mask=255.255.255.0
set dns name="VMware Network Adapter VMnet8" source=static addr=none register=PR
IMARY
set wins name="VMware Network Adapter VMnet8" source=static addr=none

# "VMware Network Adapter VMnet1" 的接口 IP  配置

set address name="VMware Network Adapter VMnet1" source=static addr=192.168.153.
1 mask=255.255.255.0
set dns name="VMware Network Adapter VMnet1" source=static addr=none register=PR
IMARY
set wins name="VMware Network Adapter VMnet1" source=static addr=none

# "本地连接" 的接口 IP  配置

set address name="本地连接" source=static addr=192.168.1.160 mask=255.255.255.0
set address name="本地连接" gateway=192.168.1.1 gwmetric=0
set dns name="本地连接" source=static addr=192.168.1.1 register=PRIMARY
set wins name="本地连接" source=static addr=none


popd
# 接口 IP 配置结束
 
 

你可能感兴趣的:(职场,休闲,系统管理)