Network Configuration of a Raspberry Pi in LAN and WAN
Hi All!
I would like to configure my Raspberry Pi in such a way that:
However, we are unable to test if this configuration works because we cannot connect to the RPI via Ethernet due to the fact that the RPI's IP address on the local network (Machine B-RPI) is unknown to us. We attempted to fix it by modifying the dhcpcd.conf file, but without success; we are unable to ping the RPI via Ethernet.
I would like to know if there is another solution to access the RPI via Ethernet (locally) while having it connected to 4G. Or do we necessarily need a router/switch to achieve this?
I would like to configure my Raspberry Pi in such a way that:
- It is accessible (ping, etc.) by a machine B directly connected via Ethernet (local network but without going through a switch/router and without having to modify the configuration of machine B).
- It always has access to the Internet via USB tethering (from a 4G-enabled phone).
However, we are unable to test if this configuration works because we cannot connect to the RPI via Ethernet due to the fact that the RPI's IP address on the local network (Machine B-RPI) is unknown to us. We attempted to fix it by modifying the dhcpcd.conf file, but without success; we are unable to ping the RPI via Ethernet.
I would like to know if there is another solution to access the RPI via Ethernet (locally) while having it connected to 4G. Or do we necessarily need a router/switch to achieve this?

