I want to ssh into Beaglebone black from usb interface. I was successful in doing so at the first attempt. But as I rebooted the system, I am not able to do it as I don't see any ip address assigned to usb interface on host side.
Here are the system details:
Remote Side:
Beaglebone Black
OS: 4.1.15-ti-rt-r43
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr 40:bd:32:c6:17:fd
inet addr:169.254.101.115 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::42bd:32ff:fec6:17fd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
RX packets:1534 errors:0 dropped:0 overruns:0 frame:0
TX packets:667 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:134338 (131.1 KiB) TX bytes:376828 (367.9 KiB)
Interrupt:177
usb0 Link encap:Ethernet HWaddr 40:bd:32:c6:17:f0
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::42bd:32ff:fec6:17f0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:96 (96.0 B) TX bytes:13265 (12.9 KiB)
Host Side:
OS version: 5.2.6
ifconfig:
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.213.10 netmask 255.255.255.0 broadcast 169.254.213.255
inet6 fe80::4d3e:78d4:8d71:bb6c prefixlen 64 scopeid 0x20<link>
ether d4:be:d9:0b:2a:a9 txqueuelen 1000 (Ethernet)
RX packets 656 bytes 381570 (381.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2244 bytes 279730 (279.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xe2e00000-e2e20000
enx40bd32c617ff: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::8a77:29d3:68c0:87e prefixlen 64 scopeid 0x20<link>
ether 40:bd:32:c6:17:ff txqueuelen 1000 (Ethernet)
RX packets 45 bytes 10655 (10.6 KB)
RX errors 3 dropped 0 overruns 0 frame 3
TX packets 2 bytes 540 (540.0 B)
TX errors 2668 dropped 0 overruns 0 carrier 0 collisions 0
The interface enx40bd32c617ff corresponds to usb interface (checked but I am not sure why it is not usb0). As I can see, there is no ip address assigned to it.
I tried to assign a static ip(192.168.7.1) to the interface but when I try to ssh to beaglebone black, I get the error:
ssh root@192.168.7.2
ssh: connect to host 192.168.7.2 port 22: No route to host
It would be great if someone can help me in debugging this issue.
Regards
Vishav