博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在DOS下配计算机的ip
阅读量:7075 次
发布时间:2019-06-28

本文共 675 字,大约阅读时间需要 2 分钟。

打开运行cmd

C:\>netsh

netsh>interface

netsh interface>ip
netsh interface ip>show address

接口 "VMware Network Adapter VMnet8" 的配置

DHCP 启用 否
IP 地址 192.168.18.1
子网掩码 255.255.255.0
InterfaceMetric 0

接口 "VMware Network Adapter VMnet1" 的配置

DHCP 启用 否
IP 地址 192.168.93.1
子网掩码 255.255.255.0
InterfaceMetric 0

接口 "本地连接 2" 的配置

DHCP 启用 是
InterfaceMetric 0

netsh interface ip>

注:这样就可以看到这个计算机是dhcp上网的。接口是 "本地连接 2" ,如果你想改动ip可以如下操作

set address name="本地连接 3" souce=static addr=10.48.10.120 mask=255.255.255.0

set address name="本地连接 3" gateway=10.48.10.1 gwmetric=1
set dns name="本地连接 3" source=static addr=202.96.209.5 register=PRIMARY

本文转自 sswqzx 51CTO博客,原文链接:http://blog.51cto.com/sswqzx/1082829

转载地址:http://yyuml.baihongyu.com/

你可能感兴趣的文章