Команды windows для настройки сети

  • proxycfg -? — инструмент настройки прокси по умолчанию в Windows XP/2003, WinHTTP.
  • netsh winhttp — инструмент настройки прокси по умолчанию в Windows Vista/7/2008
  • netsh interface ip show config — посмотреть конфигурацию интерфейсов
  • Настраиваем интерфейс «Local Area Connection» — IP, маска сети, шлюз:

netsh interface ip set address name=»Local Area Connection» static 192.168.0.100 255.255.255.0 192.168.0.1 1

  • netsh -c interface dump > c:\conf.txt — экспорт настроек интерфейсов
  • netsh -f c:\conf.txt — импорт настроек интерфейсов
  • netsh exec c:\conf.txt — импорт настроек интерфейсов
  • netsh interface ip set address «Ethernet» dhcp — включить dhcp
  • netsh interface ip set dns «Ethernet» static 8.8.8.8 — переключаем DNS на статику и указываем основной DNS-сервер
  • netsh interface ip set wins «Ethernet» static 8.8.8.8 — указываем Wins сервер
  • netsh interface ip add dns «Ethernet» 8.8.8.8 index=1 — задаем первичный dns
  • netsh interface ip add dns «Ethernet» 8.8.4.4 index=2 — задаем вторичный dns
  • netsh interface ip set dns «Ethernet» dhcp — получаем DNS по DHCP
  • netsh wlan show all — Отображение полной информации о беспроводных устройствах и сетях.