nesh ネットワーク関連コマンドメモ

IPの自動取得
netsh interface ip set address “Wi-Fi” static dchp

IPの設定
netsh interface ip set address “Wi-Fi” static 192.168.102.5 255.255.255.0 192.168.102.1

DNSサーバの設定
netsh interface ip set dns “Wi-Fi” static 192.168.102.1 primary

DNSサーバの自動取得
netsh interface ip set dns “Wi-Fi” dhcp

6to4の無効化
netsh interface 6to4 set state disabled

ISTAPの無効化
netsh interface isatap set state disabled

TEREDOの無効化
netsh interface teredo set state disabled

設定の書き出し
netsh dump > xxx.txt