Windows in DOS configure static ipv4

1.cmd into the DOS interface

2. Check ipv4 configuration

net interface ipv4 show interface
Note: Here I need to set the corresponding ip appropriate name for Ethernet and some computers as "local connection"

Here Insert Picture Description

3. Configure a static ip

netsh interface ipv4 set address name = "Ethernet" static 192.168.53.105 255.255.255.0 192.168.53.1
Notes:
ip address: 192.168.53.105
Subnet Mask: 255.255.255.0
Gateway: 192.168.53.1
here to see the completion of ping 192.168.53.1 see if I can not ping, ping the post may still not need to change it on the network DNS.

Here Insert Picture Description

Configuring DNS

netsh interface ipv4 set dns name = "Ethernet" source = static addr = 8.8.8.8
Note:
I use the more generic 8.8.8.8 if it can be to try other, faster Internet search about the province in general.

Here Insert Picture Description

Published 54 original articles · won praise 17 · views 9164

Guess you like

Origin blog.csdn.net/qq_41979513/article/details/103475448