Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Chiefahol on January 26, 2016, 05:20:37 PM

Title: [Solved] A20-OLinuXino-LIME, Debian Jessie, How to set up ethernet?
Post by: Chiefahol on January 26, 2016, 05:20:37 PM
Hi everyone,

Got a A20-OLinuXino-LIME recently. I was trying to set up ethernet using the regular Jessie image available on the wiki but i am stuck.

Here are the instructions from the manual but they are for Debian Wheezy:

QuoteIt is good idea to check the default settings by exploring the Linux image settings. Those are usually stored in:

/etc/network/interfaces

For DHCP you need to enable auto detection and dhcp as shown below:

auto eth0
iface eth0 inet dhcp

For setting a static address please follow the pattern below:

auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

If anyone could give me the Debian Jessie steps, i would really appreciate it.
Title: Re: A20-OLinuXino-LIME, Debian Jessie, How to set up ethernet?
Post by: wirlo on January 26, 2016, 05:43:47 PM
Hi,

These instructions are perfectly valid for Jessie too.
In what way, exactly, are you stuck? What did you try, how did it fail?
Title: Re: A20-OLinuXino-LIME, Debian Jessie, How to set up ethernet?
Post by: MBR on January 26, 2016, 07:46:51 PM
Yes, they should work, but maybe you have not configured the DNS servers in /etc/resolv.conf, there should be something like

nameserver 8.8.8.8
nameserver 8.8.4.4

(BTW, these are Google public nameservers, see https://en.wikipedia.org/wiki/Google_Public_DNS (https://en.wikipedia.org/wiki/Google_Public_DNS) and you can use them if the provider ones misbehave or do not work at all).

If you can ping IP adresses (for example the 8.8.8.8 from above) but no named host, you DNS configuration is surely broken. Othervise, please include output from the commands like ifconfig and route for an easier diagnose.
Title: Re: A20-OLinuXino-LIME, Debian Jessie, How to set up ethernet?
Post by: Chiefahol on January 27, 2016, 05:01:30 AM
Okay i was entering those lines into the CLI like they were commands... woops that's totally wrong.

Turns out /etc/network/interfaces is a file, not a folder, to edit it go:

sudo leafpad /etc/network/interfaces

Then edit the information like i explained in the original post.

Also, like MBR said you will want to edit your DNS servers:

sudo leafpad /etc/resolv.conf

Also ifconfig is not available on Jessie, you must use 'ip addr' instead to get adapter information.

It now works fine, thank you both for the help. :D