@echo off set INTERFACE_NAME=Ethernet set IP_ADDRESS=185.181.61.68 set SUBNET_MASK=255.255.255.0 set GATEWAY=185.181.61.1 set DNS_SERVER=8.8.8.8 netsh interface ipv4 set address name="%INTERFACE_NAME%" static %IP_ADDRESS% %SUBNET_MASK% %GATEWAY% 1 netsh interface ipv4 set dns name="%INTERFACE_NAME%" static %DNS_SERVER% primary exit