I have an interesting question for you. I search several stack forum to find an answer but I could not able to find anything completely related. I have a rpi and I am using this device as sensor data collector. Let's say its ip address is 192.168.1.10 (eth0). It constantly sends the sensor data to a server, so I can not change ip of it.
Also I have a camera, which connects with ip link. Let's say it connects with 192.168.1.20. I want this camera to connect my network; however, I have to establish just one connection with both rpi and camera. So I am aiming to connect the camera to RPi by ethernet to usb converter(eth1) and set a switch configuration on my RPi to continue sending both sensor and camera data on eth0.
Basically, I want to build an ip switch on rpi, which is going to send sensor data by 192.168.1.10 ip address and camera data from eth1 by 192.168.1.20 ip address.
Is it possible? or what are the suggestions, which can help me?
ps: I have no wlan connection, so wlan related ports are not possible. ex: wlan0.