Home
Operating System
Windows
Linux
Tutorial
Windows Server
About
☰
Static ip on windows with command line
# Show Interface
netsh interface show interface
📋 Copy
Copied!
# Rename Interface
netsh interface set interface name="Local Area Connection" newname="server"
✏️ Edit
📋 Copy
Copied!
# Static IP
netsh interface ipv4 set address "server" static 172.31.255.14 255.255.255.240 172.31.255.1
✏️ Edit
📋 Copy
Copied!
# Static DNS
netsh interface ipv4 set dnsservers "server" static 172.31.255.14
✏️ Edit
📋 Copy
Copied!
# Add DNS
netsh interface ipv4 add dnsservers "server" 8.8.8.8
✏️ Edit
📋 Copy
Copied!
## Remove DNS
netsh interface ipv4 set dnsservers "server" dhcp
✏️ Edit
📋 Copy
Copied!
Labels
all
(20 )
autocad
(3 )
css
(2 )
linux
(4 )
op_system
(16 )
website
(4 )
windows
(17 )
windowsServer
(16 )