Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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"

http://support.microsoft.com/kb/257748

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

 
discard

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.