netsh 查本机IP

netsh 查本机IP的方法如下:开始》运行>CMD>netsh interface ip show address

netsh即network shell,是一个windows系统本身提拱的功能强大的网络配置命令:

导出配置脚本:netsh -c interface ip dump > c:\ip.txt 

导入配置脚本:netsh -f c:\ip.txt.

查看netsh指令:netsh > help >? -显示指令列表

1)  netsh配置ip、网关:

net interface ip set address "本地连接" static 192.168.2.101 255.255.255.0 192.168.2.1

2) netsh配置静态IP,DNS 及wins:

netsh interface ip set address "本地连接" static 192.168.2.100

netsh interface ip set dns "本地连接" static 202.102.128.68

netsh interface ip set wins "本地连接" static 192.168.2.101

3)配置自动获取IP,dns, wins地址:

netsh interface ip set address "本地连接" dhcp

netsh interface ip set dns "本地连接" dhcp

netsh interface ip set wins "本地连接" dhcp

4)防火墙

查看状态:netsh firewall show state

禁用:netsh firewall set opmode disable

启用:netsh firewall set opmode enable

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值