I have a launch file that basically connects a Jetson TX1 and a Raspberry Pi 3 witha ubuntu host machine. And I need to configure all three machines such that, when roscore
runs in the host, it will make connections to the other two boards.
As far as hardware setup is concerned, there is an ethernet-based connection between my linux desktop (ubuntu 14.04) and the jetson tx1 (ubuntu 16.04). The raspberry pi 3 is connected to the jetson board via the USB-3.0-to-Ethernet adapter (AX11789).
Following the hardware setup, the software setup is done. At first, the /etc/network/interface
file in my desktop is edited as follows:
auto eth0
iface eth0 iface static
address 192.168.1.42
netmask 255.255.255.0
gateway 192.168.1.26
Then in my jetson,
auto eth0
iface eth0 inet static
address 192.168.1.26
netmask 255.255.255.0
Because it seems correct that the jetson be configured as a gateway (router), the ip address of the jetson should be used as a gateway address in both the desktop and the pi board. So in the pi board,
auto eth0
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
gateway 192.168.1.26
After this, the ping
requests between the desktop and the jetson as well as between the jetson and the pi work perfectly, but the ping
request between the desktop and the pi board does not work, stating Ping from 192.168.1.102: Destination host unreachable
.
Is there any critical information or step I am missing in this case? It may probably be due to the configuration with the Ethernet-to-usb adapter, but I'm not 100% certain about this.
Originally posted by chanhyeoni on ROS Answers with karma: 62 on 2017-10-23
Post score: 0
Original comments
Comment by gvdhoorn on 2017-10-23:
Although you intend to use this for a ROS applcation, this is really more of a networking/Linux setup question. You will most likely get better answers faster if you ask it on stackoverflow or some other forum that deals with Linux configuration issues directly.