Question

  Asked: Jan 28 2008   9:12 PM GMT
  Asked by: CGarcia26C


Multiple IP addresses


Networking, IP addressing, Windows

Here is my dilemma, I need to assign multiple IP addresses to the same laptop, my goal is to have one IP for the computer when it is connected to the Domain here is the office, a static IP and another or get a IP via DHCP when it is connected anywhere else primarily at home.
I don't want the users to have to change the IP address or have to release their static IP address every time they leave the office.

Thanks in advance for all your help.

CG._

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



what OS are you using? windows XP pro allows this by going into network settings, then right click the network connection, go to properties. when in properties find your "Internet Protocol TCP/IP" protocol and click properties. in the properties section set the GENERAL tab section to obtain IP address automatically and it will get it's address from DHCP. then in the ALTERNATE CONFIGURATION tab you can enter a static IP address. this should work for two different networks, (or more as long as you only need one with static IP), and is exactly why it was developed.



####Added by Kb3cgj#########

Here is what I recommend:

Don't use static's at the office. If you already have a DHCP server running do DHCP Reservations by Mac-Address. That way the laptops always get the same address everytime they connect and they don't have to do any config to their laptop ever. And you could do a reservation for both their wireless card and ethernet card. If you need specific help with the config of the DHCP server...let me know.

Nick (kb3cgj)

---------------------------------------

I'd recommend adding another DHCP scope which has just enough IPs to account for all the machines which have reservations. When another machine is added increase the size of the range one IP larger.



You can learn a little code and make a couple small batch files, one you would click when home that changes your ip address to dhcp and runs a release renew.. One you would click on to change it back to static and set the ip address for you.

One way to do it: http://forums.devshed.com/networking-help-109/netsh-command-usage-in-a-batch-file-to-set-ip-130387.html
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Networking and Microsoft Windows.

Looking for relevant Networking Whitepapers? Visit the SearchNetworking.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

CGarcia26C  |   Jan 28 2008  9:25PM GMT

Thanks for your quick response but this will not work because I have a DHCP server on site, but the IP range is only used for visitor computers, that way the IP range is different than the one that I need to statically assign for the computers to be able to access the local resources.
This was the first thing that I thought about but unfortunately would not work for my situation.

Thanks
CG._

 

CGarcia26C  |   Jan 29 2008  12:10AM GMT

Thanks Nick, I will give that a try, I will post back if I need some more help.

Thanks

CG._

 

Wrobinson  |   Feb 1 2008  4:39PM GMT

Looking at the current configuration and the proposed solutions purely on the surface, I have to ask why DHCP is used for guests and static IP addresses are used for internal clients? It appears that you wish to segregate visitors from users but merely using differeng IP ranges on the same network does not meet this requirement.

You might consider re-designing the network such that the DHCP server provides leases for two separate networks — internal clients and guests using a DHCP relay agent. It isn’t as complicated as it looks or virtually ’sounds’.

 

CGarcia26C  |   Feb 1 2008  5:32PM GMT

Hey Buddyfarr thanks for that link I think that those batch files will come in handy, and for now might do the trick.

Thanks
CG._