Debian Jessie image BBB-eMMC-flasher-debian-8.3-iot-armhf-2016-03-13-4gb no ethernet.

Hello,

I’m a newbie with beaglebones black running debian…

The problem arises with a beaglebone black rev c and the image BBB-eMMC-flasher-debian-8.3-iot-armhf-2016-03-13-4gb.img, but also happened with BBB-eMMC-flasher-debian-8.3-lxqt-4gb-armhf-2016-03-13-4gb.img.

I cannot access the network through eth0.

The same beaglebone worked with a debian wheezy image installed…

Here is the problem:

I’ve found the instructions on the thread https://groups.google.com/forum/#!topic/beagleboard/7pex-V9vYWw and removed connman, but the problem remains.

I have the following configuration on the beaglebone:

**** /etc/network/interfaces file:

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
address 192.168.20.79
netmask 255.255.255.0
network 192.168.20.0
broadcast 192.168.20.255
gateway 192.168.20.1
dns-name-servers 192.168.20.200

iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.252
network 192.168.7.0
gateway 192.168.7.1

**** /etc/resolv.conf:

nameserver 192.168.20.200
nameserver 8.8.8.8
nameserver 4.4.4.4

**** ifconfig command returns:

eth0 Link encap:Ethernet HWaddr 54:4a:16:f0:f1:f0
inet addr:192.168.20.79 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::564a:16ff:fef0:f1f0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2652 errors:0 dropped:1 overruns:0 frame:0
TX packets:2218 errors:16 dropped:63 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:272369 (265.9 KiB) TX bytes:15461 (15.0 KiB)
Interrupt:175

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:388 errors:0 dropped:0 overruns:0 frame:0
TX packets:388 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36764 (35.9 KiB) TX bytes:36764 (35.9 KiB)

usb0 Link encap:Ethernet HWaddr 54:4a:16:f0:f1:f1
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::564a:16ff:fef0:f1f1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:886 errors:0 dropped:5 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:129397 (126.3 KiB) TX bytes:9712 (9.4 KiB)

***** iptables -L command returns:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

**** route -n command returns:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.20.1 0.0.0.0 UG 0 0 0 eth0
192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

REMARK: The first route I added manually - when the beaglebone boots, it was not configured, just the last two.

I cannot ping the beaglebone from another computer.
I cannot ping another computer from the beaglebone.

What am I missing?

Thanks in advance…

Regards,

Daniel.

^^^ So remove your network cable and plug it back in.. Otherwise do
it this way:

auto eth0
allow-hotplug eth0

iface eth0 inet static
         address 192.168.20.79
         netmask 255.255.255.0
         network 192.168.20.0
         broadcast 192.168.20.255
         gateway 192.168.20.1
         dns-name-servers 192.168.20.200

Regards,

Hello Robert…

Thank you for answering so quickly.

Unfortunately, the problem remains.

Via eth0 I cannot access the BBB from the network nor from it I can reach any IP destination on my network.

What I did:

1) I flashed the BBB again, with the BBB-eMMC-flasher-debian-8.3-iot-armhf-2016-03-13-4gb image.

2) I removed connman (apt-get remove connman).

3) I updated the interfaces file:

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

auto eth0
allow-hotplug eth0

iface eth0 inet static
address 192.168.20.79
netmask 255.255.255.0
network 192.168.20.0
broadcast 192.168.20.255
gateway 192.168.20.1
dns-name-servers 192.168.20.200

Ethernet/RNDIS gadget (g_ether)

Used by: /opt/scripts/boot/autoconfigure_usb0.sh

iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.252nor
network 192.168.7.0
gateway 192.168.7.1

4) Turned off the BBB and turned it on.

5) Tried to connect to the BBB using PuTTY on the IP 192.168.20.79, but with no luck.

6) Also plugged and unplugged the network cable – with no luck also.

7) Over serial connection, the BBB shows me this welcome message (using PuTTY):

Debian GNU/Linux 8 beaglebone ttyGS0

BeagleBoard.org Debian Image 2016-03-13

Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

default username:password is [debian:temppwd]

The IP Address for eth0 is: 192.168.20.79
The IP Address for usb0 is: 192.168.7.2

beaglebone login:

– The /etc/resolv.conf file is empty.

– The ifconfig command returns this:

eth0 Link encap:Ethernet HWaddr 54:4a:16:f0:f1:f0
inet addr:192.168.20.79 Bcast:192.168.20.255 Mask:255.255.255.0
inet6 addr: fe80::564a:16ff:fef0:f1f0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1432 errors:0 dropped:3 overruns:0 frame:0
TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:163999 (160.1 KiB) TX bytes:7927 (7.7 KiB)
Interrupt:175

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:6087 errors:0 dropped:0 overruns:0 frame:0
TX packets:6087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:492956 (481.4 KiB) TX bytes:492956 (481.4 KiB)

usb0 Link encap:Ethernet HWaddr 54:4a:16:f0:f1:f1
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::564a:16ff:fef0:f1f1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:799 errors:0 dropped:5 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:119293 (116.4 KiB) TX bytes:9570 (9.3 KiB)

– The route -n command returns this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.20.1 0.0.0.0 UG 0 0 0 eth0
192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

– The iptables -L command returns this:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Do you have any other ideas on how to solve this?

Thank you again!

Regards,

Daniel.

Not really, as i never use static routes. But what you have now
'should' work...

I guess, are you sure your cable is correct, (aka a cross over)...

Otherwise, I'd just stick the beagle's mac into your dhcp server. :wink:

Regards,

Robert,

It appears to be ignoring dhcp. And only gets an IPV6 address.

Note that this same BBB but with the BBB-eMMC-flasher-debian-7.9-lxde-4gb-armhf-2015-11-03-4gb image and the same network cable works, getting the 192.168.20.79 address via DHCP.

But it keeps not working with this Debian Jessie image: BBB-eMMC-flasher-debian-8.3-iot-armhf-2016-03-13-4gb.

That’s what I’ve done this time:

- I modified the /etc/interfaces file and tested eth0 with “dhcp” and “auto” parameters:

auto eth0

allow-hotplug eth0

iface eth0 inet dhcp (auto)

- The ifconfig eth0 command returns this:

eth0 Link encap:Ethernet HWaddr 54:4a:16:f0:f1:f0
inet6 addr: fe80::564a:16ff:fef0:f1f0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:170 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20587 (20.1 KiB) TX bytes:7360 (7.1 KiB)
Interrupt:175

- The route -n command returns this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0

Any suggestions?

Thanks…

Regards,

Daniel.