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.

Is it possible that one computer talks to several devices with the same IP address. I would like to realize this with the following setup:

  1. one GNU/Linux box with several virtual interfaces, each is assigned a different IP address and VLAN
  2. switch where every port is in different VLAN, except port that is connected to the computer (if I remember correctly that is called a trunk port?)
  3. somehow configure my application (e.g. ping) to use the interface I want

Is my way of thinking in the right direction? Did I miss something or write totally incorrect/impossible stuff?

I cannot change the IP addresses of the devices that my computer connects to (they come from the store with this IP address and I have to configure them)

share|improve this question
    
Why cant you configure each device with a different IP? –  VBwhatnow Jul 25 '12 at 10:35
    
Because they come preconfigured with the same IP address, and I have to configure them (IP address and some other things). So I want to make process faster for me. –  v_m Jul 26 '12 at 8:47
    
I think your only option is to configure each device one by one. –  VBwhatnow Jul 26 '12 at 8:51
    
It's 2012. What kind of backwards devices don't do IPv4 link-local (or IPv6 link-local) by now? –  Spiff Jul 26 '12 at 9:10
    
Good point, I will check if the devices support autoIP, hadn't thought of that one. –  v_m Jul 26 '12 at 10:33

1 Answer 1

Is it possible that one computer talks to several devices with the same IP address.

No.

One way I can think of is to have one NAT router for each device. Then your computer talks to different IP-addresses, the NAT routers allow the traffic to reach devices with a common IP-address.

share|improve this answer
    
But would not VLANs separate the network on layer 2, so I do not hved problem with routing? –  v_m Jul 26 '12 at 8:07
    
@v_m: The difficulty is that IP intend you to use IP-addresses (not interfaces) to address other devices. I don't know how to force a specific instance of an application to use only a specific "virtual interface". Choice of network interface for outbound data is a routing question - usually handled centrally by the O/S. –  RedGrittyBrick Jul 26 '12 at 9:00

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.