[Windows] Windows series use ‘netsh’ manual change ip / netmask / dns / gateway

  1. 設定IP
    > netsh interface ip set address “connection name" static 192.168.1.100 255.255.255.0 192.168.1.254
  2. 設定DNS primary / secondary
    netsh interface ip add dns “connection name" 168.95.1.1 index=1
    netsh interface ip add dns “connection name" 168.95.192.1 index=2
  3. 設定DHCP client IP / DNS
    netsh interface ipv4 set address “connection name" dhcp
    netsh interface ipv4 set dnsservers “connection name" dhcp