Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

To test a load balancer I need to switch my ip address several time a day, and keep other ips routing trough other Wans. I run these commands in a batch script:

netsh interface ip set address "Connexion au réseau local" static %ipd% 1
netsh in ip add address "Connexion au réseau local" %ips1%
netsh in ip add address "Connexion au réseau local" %ips2%

ipd: is the default ip I want to set (all traffic should go trough it).

ips1 and ips2 : are the secondary ips I want to keep

but what ever I do all traffic goes trough one IP !! (first one in the range)

Please help me with this issue.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.