Two IP addresses on the same network interface

Discussion in 'Windows Desktop Systems' started by pguerra, Apr 20, 2006.

  1. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    I need two IP addresses on the same network interface: one of them is dynamic (assigned by a DHCP server), and the other one is static. Anybody knows how to do this on Windows XP SP 2??
     
  2. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    You can't have two seperate IP addresses on one Network Interface Card that are on the same network. If the two IP's are on two different networks/subnets, you could use the Alternate Configuration tab.

    If you need two IP addresses on one network, pick up another NIC for the machine.
     
  3. Admiral Michael

    Admiral Michael Michaelsoft Systems CEO Folding Team

    KC: The alternate IP tab is to use a specific IP if the system can't get one (instead of the 169.x.x.x address)

    pguerra: Under the TCP/IP properties there is an area to add more then one IP however when I went to look at it I wasn't able to add an IP since I have DHCP enabled.
     

    Attached Files:

  4. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    What does the command 'netsh interface ip add address' do then??
     
  5. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    You are right and you are wrong. The Alternate Configuration tab CAN be used in the scenario where one can't be obtained, but it can also be used for an alternate network-type configuration.

    This is NOT possible, again I say NOT possible, with one NIC. If you were using all static, you could. BUT, with DHCP enabled, you do not have the option of configuring additional IP addresses.
     
  6. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    As I said before, I need two IP addresses: one of them must be assigned by the DHCP server, and the other one static (i.e. assigned by me :) )
     
  7. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    You could use that command to set static IP's, but you can't have DHCP enabled and set a valid internal static IP on the same interface.
     
  8. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    :devious: Is this some sort of Microsoft's TCP/IP limitation, or what I'm trying to do doesn't make sense at all?
     
  9. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    What you are trying to do makes sense, but it's not logically possible.

    Save yourself the headache, go to the store and spend $10-20 on another NIC. Problem solved - you won't find a way to do it unless you switch to all static (ditching DHCP).
     
  10. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    What do you mean it's not logically possible?

    I need to do this on more than one computer, so this is most likely the last option I'll try.. :rolleyes:
    Besides I don't wanna mess with the hardware..

    One of the IP addresses MUST be DHCP-assigned. There's just no other way!
     
  11. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    What exactly are you trying to accomplish? What do you need this setup for?
     
  12. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    There are some computers connected to a switch, and their IP addresses are assigned by a DHCP server. The problem is that these IP addresses don't necessary belong to the same network, so some computers can't see the others using NetBIOS.
     
  13. Johnny

    Johnny .. Commodore .. Political User

    Messages:
    5,015
    Location:
    Happy Valley
    What about a daul wan router ??
     
  14. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    Well, assuming this is a domain, the easiest way to do that would be to create reservations on your DHCP server to the MAC addresses of the PC's in mention. Once that is done, create type "A" (Host) DNS entries for each machine on the DNS server. The next time the clients update, that problem should be resolved.
     
  15. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    Messing with the hardware should be the last option!

    It's not a domain. It's just a workgroup. And I don't have access to the DHCP and DNS servers.. :cry:
     
  16. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    Well....

    If you don't have access to the DHCP and DNS servers, and you don't have the option of adding additional NICs - you don't seem to have much control over the operations.

    If that is the case, why is this your problem? Could you suggest these feature changes to the system administrators?
     
  17. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    Right.

    No.

    The only thing I can think of is to set up some application in every computer to get the IP address / subnet mask / DNS server / etc. from the DHCP server and set this all as if they were static addresses.
     
  18. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    I have to ask - if you don't have access to these resources, can't install hardware and can't suggest any network settings, wouldn't setting these things up get you in trouble?

    I have to think that if what you are trying to do is mission critical, you would have the available resources to do it.
     
  19. pguerra

    pguerra W = ΔK

    Messages:
    17
    Location:
    Parana, Entre Rios, Argentina
    Not really.

    It's not mission critical. I think of it as a challenge, nothing more.. :)
     
  20. ejn74

    ejn74 Folding Master! Political User Folding Team

    Messages:
    1,141
    Location:
    Western Iowa
    He's in Argentina KC, things are a little different there than here in the States.