Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a NIC with two IP address. Now how can I change the order of the IP address so that I can bring any one to the top and have precedence over the other IP addresses.

I know I can change that from going to the network properties but I was looking for a more faster way of doing the same.

share|improve this question
up vote 1 down vote accepted

I'm not exactly clear on what you're asking, but you can use the netsh command to change your ip address. Again, not sure this is what you're looking for, but you can make this into a batch file if it is. Syntax of the command from Microsoft

"netsh interface ip set address "Local Area Connection" static ipaddr subnetmask gateway metric"

share|improve this answer
Look the first IP address in the advanced IP address list takes precendence. I want to change the order when there are multiple IP address assigned to a single adapter. – Soham Dasgupta Jul 1 '13 at 6:27

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.