Bypass Static IP Hardcoded in Embedded Device

Hi everyone,

I have an embedded device with a static hardcoded IP 192.168.1.100. I can connect this device directly to my laptop by configuring a static IP such as 192.168.1.200 and netmask, and the connection between the computer and the device is successful.

Taking things to the next level, I want to connect the device to a router, and with the help of the routing table, I can make this device reachable remotely. Now, the issue is how to use and make a specific ethernet port connect to that device on its subnet that differs from the router subnet (192.168.90.0/24).

What I tried:
I went to /etc/config/network and added a new interface called lan_device. I assigned eth0 to that interface with a static IP and the correct netmask. arp command shows that there is a device connected on 192.168.1.100, but I cannot ping from router to device or from device to router

Hi,

  1. please make a topology figure to clear to know what requirements
  2. have you tried adding the routing?
    ip route add <target> via <next hop>

Hi, Thank you for your reply. The problem has been solved; something was wrong with the eth0 port and the target device.