No connection with another ip-interface on local connection

Hi everyone!

I have a strange problem in my opinion. I want to connect my Jetson Nano with NanoPi using usb-usb bridge. I was setting the local wired connection (ip4:10.10.11.1 and mask:255.255.255.0). But I can`t connect via ssh to NanoPi with ip 10.10.11.2. This settings work fine at another desktop linux machine and wsl. I thought that the connection was blocking the firewall as it happens in Windows, but iptables showed that access is not restricted.

SSH-connecting

jetson@jetson-desktop:~$ ssh -vvv root@10.10.11.2
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving “10.10.11.2” port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.10.11.2 [10.10.11.2] port 22.
debug1: connect to address 10.10.11.2 port 22: No route to host
ssh: connect to host 10.10.11.2 port 22: No route to host

ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.108 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a258:9ff7:55b0:eaee prefixlen 64 scopeid 0x20
ether 00:04:4b:e6:9d:97 txqueuelen 1000 (Ethernet)
RX packets 35800 bytes 30240007 (30.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24737 bytes 5989062 (5.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 151 base 0x3000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 1626 bytes 151928 (151.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1626 bytes 151928 (151.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

rndis0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 5a:71:6b:3a:26:b9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.11.1 netmask 255.255.255.0 broadcast 10.10.11.255
inet6 fe80::59a8:56db:97fb:1599 prefixlen 64 scopeid 0x20
ether 52:8e:df:bc:5d:63 txqueuelen 1000 (Ethernet)
RX packets 6 bytes 452 (452.0 B)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 419 bytes 68748 (68.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

usb1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 5a:71:6b:3a:26:bb txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 101 0 0 eth0
10.10.11.0 0.0.0.0 255.255.255.0 U 102 0 0 usb0
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 usb0
192.168.0.0 0.0.0.0 255.255.255.0 U 101 0 0 eth0

iptables

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp – anywhere anywhere udp dpt:bootps
ACCEPT tcp – anywhere anywhere tcp dpt:bootps
ACCEPT udp – anywhere anywhere udp dpt:domain
ACCEPT tcp – anywhere anywhere tcp dpt:domain
ACCEPT all – anywhere anywhere ctstate RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all – anywhere 10.10.11.0/24 state RELATED,ESTABLISHED
ACCEPT all – 10.10.11.0/24 anywhere
ACCEPT all – anywhere anywhere
REJECT all – anywhere anywhere reject-with icmp-port-unreachable
REJECT all – anywhere anywhere reject-with icmp-port-unreachable
REJECT all – anywhere anywhere reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Have anyone got any ideas on how to solve this issue?

Thanks.

Does Nano able to ping the other device?

Which port do you connect on jetson nano devkit?

There are only two devices in this local connection: Jetson and NanoPi. But it can to ping the other device in different connection.
I`m using the USB-A port.

But it can to ping the other device in different connection.

What does that mean? Could you describe the connection and what kind of port you are using on each device?

There are only two devices in this local connection:

So nano is not able to ping PI, right?

I mean I can ping other machines if, for example, I connect the nano to my home router via Ethernet connection. But PI connects to Jetson via usb0.

Yes, nano is not able to ping PI.

Hi,

I need to clarify that use usb as a ethernet interface is different from common etherent connection through RJ45 port.

Thus, please just limit the scope only to usb interface.

I`m using the USB-A port.

And did you mean you connect the USB-A port on Nano to USB-A port on PI?

Yes

RNDIS driver require one usb port as device mode.

Type A usb port only gives host mode. Thus, please use the micro usb port on Nano. You can firstly find a ubuntu x86 host to verify that and move to PI.

I suggest to verify on host first because it is a feature that is verified by us too.

But I need a host mode on Jetson, therefore I chose the type A usb port.

We don’t enable rndis host by default. Maybe you can investigate the driver and try to enable it.

Many thanks for your reply. I will try this.