无法从Arch Linux进入Beaglebone Black

时间:2016-05-27 07:15:53

标签: linux ssh beagleboneblack archlinux

我有一个Beaglebone Black(在Debian上运行),我通过usb连接到我的笔记本电脑(在Arch Linux上运行)。笔记本电脑能够读取Beaglebone作为存储设备。但是,我无法通过浏览器/ ssh连接到Beaglebone,访问以下ip-192.168.7.2。 ifconfig -a给出以下输出 -

enp0s20u2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
    ether 54:4a:16:c1:f1:53  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

enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 192.168.3.204  netmask 255.255.255.0  broadcast 192.168.3.255
    inet6 fe80::2ad2:44ff:fe8e:bd61  prefixlen 64  scopeid 0x20<link>
    ether 28:d2:44:8e:bd:61  txqueuelen 1000  (Ethernet)
    RX packets 40024  bytes 35440467 (33.7 MiB)
    RX errors 0  dropped 30  overruns 0  frame 0
    TX packets 17546  bytes 2112866 (2.0 MiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 10.10.5.86  netmask 255.255.252.0  broadcast 10.10.7.255
    ether b8:ee:65:ac:7c:65  txqueuelen 1000  (Ethernet)
    RX packets 19264  bytes 18721516 (17.8 MiB)
    RX errors 0  dropped 4  overruns 0  frame 0
    TX packets 17238  bytes 2273813 (2.1 MiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s20u2是Beaglebone的接口,没有ip分配给它(根据文档,它的ip应该是192.168.7.2),因此我无法ssh或浏览它。

1 个答案:

答案 0 :(得分:1)

最后在笔记本电脑上运行以下命令成功:

sudo dhclient <interface>

现在,我可以ssh /浏览Beaglebone Black。