суббота, 6 апреля 2013 г.

NAT, DHCP - WinXP


chcp 1251>nul
netsh routing ip nat install
netsh routing ip nat show global
echo если в ответ видим "NAT должен быть установлен первым" - ребутимся, если нет - идём дальше.
netsh routing ip nat add interface "Общее подключение к VPN" full
netsh routing ip nat add interface "Сеть 2" private
netsh routing ip autodhcp uninstall
netsh routing ip autodhcp install
netsh routing ip autodhcp set global 192.168.0.0 255.255.255.0
netsh routing ip autodhcp set interface name="Сеть 2" mode=enable
netsh routing ip autodhcp set interface name="Общее подключение к VPN" mode=disable
netsh routing ip autodhcp add exclusion 192.168.0.2
netsh routing ip autodhcp show interface name="Сеть 2"

Комментариев нет:

Отправить комментарий