Connecting to ethernet device with fixed IP via Linksys router

2

I have this board with IP address 192.168.5.124 (can't be changed). I must connect to it via an ethernet cable and then use Modbus for communication.

I am currently having problems seeing this device on my network. My Linksys router has the IP address 192.168.1.1 (pretty standard). The computers on the network have IP addresses 192.168.1.100 and up.

I'm not really an expert in home networking, so my questions are:

  • Why do I not receive a response from the unit when I ping 192.168.5.124?
  • Does it have anything to do with the fact that the device is on 192.168.5.* and the network "generated" by the router is 192.168.1.* and therefore can't see it?

My setup:

  • Connect device to router.
  • Ping the IP of the device - no answer.

Another test scenario:

  • Connect device directly to a laptop.
  • Change the computer's LAN settings to use the specific IP of the device.
  • Ping - no answer.

I also can't see the device when I go to the DHCP clients list in the router settings. Only devices on 192.168.1.* show up.

I have tried pinging the device from a laptop that's connected wirelessly to the network, and from a stationary computer that's connected with cable directly to the router. I've also tried to disable internet access from my external modem so the router didn't have internet access.

eightx2

Posted 2012-10-24T14:37:07.473

Reputation: 135

Answers

2

Does it have anything to do with the fact that the device is on 192.168.5.* and the network "generated" by the router is 192.168.1.* and therefore can't see it?

Yes.

IP address ranges for private subnets (NATs) are specified by a subnet mask, which determines the valid range of IPs that are assigned.

Typically, in almost all cases, the subnet mask is 255.255.255.0, which means that you're using one number for the first three octets (the 255s), and all numbers for the last octet (the 0). So when you specify a NAT as having a gateway at 192.168.1.1 and a subnet mask of 255.255.255.0, that means IP addresses 192.168.1.1 through 192.168.1.254 are valid on that NAT; due to the routing rules that are implied by the subnet mask, all traffic not occurring in this range is considered non-routable by the layer 3 switch within the router.

Your Linksys router should have a way, in its configuration page, to set the IP address range to 192.168.5.1 through 192.168.5.254. You can probably do this just by changing the router's IP address to 192.168.5.1 and leaving the subnet mask alone (set at 255.255.255.0).

allquixotic

Posted 2012-10-24T14:37:07.473

Reputation: 32 256

1Thanks, I had a feeling that I might need to change the IP address of the router. Changed it to 192.168.5.1 and now I can see the board. Thanks! – eightx2 – 2012-10-24T14:55:51.413

Great news; you are welcome. – allquixotic – 2012-10-24T14:57:46.433

0

The device is on a different netowork so it will not be seen on the 192.168.1.X network. Changing your etherent address to one like 192.168.5.120 and connecting may work but you may also need a cross over cable as the boardmay not support the direct connection. Connecting with a hub or switch in between may work if you don`t have a crossover cable. Also note that the device could be configured to NOT respond to ICMP. This is something I have seen and the device respond to an HTTP request on Port 80 but no reply to ping. Or it responds to a specific app used to control or manage the device.

You also might want to find the subnet the board uses. Could be set to something other than 255.255.255.0 which would make selecting the IP for your laptop a bit more difficult. Using a smaller subnet is not unusual in industrial or controls installs

An alternative woyuld be to reset your router as noted by allquixotic

More info on the boardmay help refine the answer.

Dave M

Posted 2012-10-24T14:37:07.473

Reputation: 12 811