D
D
Dmitry Logvinenko2011-12-28 09:44:07
Computer networks
Dmitry Logvinenko, 2011-12-28 09:44:07

How to share a network connection in Windows 7 via command line?

The problem is that the modem from Beeline ZTE MFxxx creates a new network connection every time it connects to the computer, the Internet is distributed via Wi-Fi to other computers, so everyone has to do the same thing - Right click on the connection -> Properties -> Access -> Allow sharing through some kind of adapter. Is there an automation option?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Misyurev, 2011-12-28
@Sudo

"Вначале проверяем, что запущен сервис "Маршрутизация и удаленный доступ" ("Routing and Remote Access") и его режим запуска - "Авто". Исправляем в реестре ключ "IPEnableRouter" из ветки HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters на 1, после чего перезагружаемся. Пишем в консоли:
netsh routing ip nat install
netsh routing ip nat show global
netsh routing ip nat add interface "<<<Имя внешнего подключения>>>" full
netsh routing ip nat add interface "<<<Имя внутреннего подключения>>>" private
Настройка NAT завершена. В качестве DNS указываем адрес, прописанный (либо назначенный провайдером) для внешнего интерфейса."

Taken from here
Article about XP, but I think it will work in Seven too (there is nothing to check on)

S
Saiputdin Omarov, 2011-12-28
@generalx

so the ball should be on the connection itself, and the application does not seem to delete the created connection.

E
eiji, 2011-12-28
@eiji

The connection is re-created if the modem is connected to another port / via a usb hub. For everything else, the connection remains in memory. Do you change the usb port?
I installed Connectify (http://rutracker.org/forum/viewtopic.php?t=3747015) to automate the whole process, everything is done in two clicks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question