R
R
Rad1us2016-08-02 04:22:23
Computer networks
Rad1us, 2016-08-02 04:22:23

How to add additional IP address in bat file, Windows?

There is such a batch file:

chcp 1251
netsh interface ip set address "Подключение по локальной сети" static 192.168.1.2 255.255.255.0 192.168.1.2 1
netsh interface ip set dns "Подключение по локальной сети" static 8.8.8.8 primary
netsh interface ip add dns "Подключение по локальной сети" 8.8.4.4 index=2

What to add, so that it would be possible to assign additional ip addresses to the interface?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem @Jump, 2016-08-02
@rad1us

https://technet.microsoft.com/en-us/library/cc7385...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question