netsh interface ip set address "Ethernet" static 192.168.1.100 255.255.255.0 192.168.1.1 To set DNS (example: Cloudflare’s 1.1.1.1):
netsh interface set interface "Ethernet" disable To enable it:
Open Settings . You can press Windows + I on your keyboard. how to change network adapter settings in windows 11
Set View by to Category (top right). Click Network and Internet > Network and Sharing Center .
In the left pane, click Change adapter settings . netsh interface ip set address "Ethernet" static 192
netsh interface set interface "Ethernet" enable To set a static IP (example: 192.168.1.100, subnet 255.255.255.0, gateway 192.168.1.1):
ipconfig /all To disable an adapter (replace "Ethernet" with your adapter’s exact name): how to change network adapter settings in windows 11
netsh interface ip set dns "Ethernet" static 1.1.1.1 To return to automatic (DHCP) IP and DNS: