How to setup static ip using USB ethernet under Angstrom(always fail using /etc/init.d/networing restart)

2,350 views
Skip to first unread message

alex.yang

unread,
Aug 10, 2009, 12:26:31 PM8/10/09
to Beagle Board
hi,all
Now my beagleboard has a USB ethernet which has been supported by
kernel(version 2.6.29).
I got ip via dhcp.
just
#vim /etc/network/interfaces
iface eth0 inet dhcp.

it works and can access internet.

but i need to get static ip address. I don't want beagleboard get
different ip every time.

So I change /etc/network/interface as follows:

iface eth0 inet static
address 192.168.1.105
netmask 255.255.255.0
gateway 192.168.1.1
nameserver *.*.*.*

and vim /etc/resolv.conf
add a line
'nameserver *.*.*.*'

After do '/etc/init.d/networking restart', it does not work. ip
didn't change.

Any one could give some clue about this?

Thanks very much

Best Regards

Alex.

Amit Pundir

unread,
Aug 10, 2009, 1:20:22 PM8/10/09
to beagl...@googlegroups.com
On Mon, Aug 10, 2009 at 9:56 PM, alex.yang<idanc...@gmail.com> wrote:
>
> hi,all
>   Now my beagleboard has a USB ethernet which has been supported by
> kernel(version 2.6.29).
>   I got ip via dhcp.
>   just
>   #vim /etc/network/interfaces
>   iface eth0 inet dhcp.
>
>   it works and can access internet.
>
>   but i need to get static ip address. I don't want beagleboard get
> different ip every time.
>
>   So I change /etc/network/interface as follows:
>
>   iface eth0 inet static
>   address 192.168.1.105
>   netmask 255.255.255.0
>   gateway 192.168.1.1
>   nameserver *.*.*.*
>

you should be using tabs, try this:

iface eth0 inet static
<tab>address 192.168.1.105
<tab>netmask 255.255.255.0
<tab>gateway 192.168.1.1
<tab>nameserver *.*.*.*

Regards,
Amit Pundir

alex.yang

unread,
Aug 14, 2009, 8:36:42 AM8/14/09
to Beagle Board
many thanks
it works well now
tab is important:)

Best Regards
alex
On Aug 10, 1:20 pm, Amit Pundir <pundira...@gmail.com> wrote:

philburk

unread,
Aug 27, 2009, 9:47:08 PM8/27/09
to Beagle Board
I had a problem with reaching the Internet. I was using DHCP and could
access devices on the LAN. But I could not get through the gateway to
the Internet. If I tried to ping a WAN IP address I got "Network is
unreachable".

So I added just this gateway line to /etc/network/interface

iface eth0 inet dhcp
<tab>gateway 192.168.1.1

then entered:

/etc/init.d/networking restart

and it worked. I could reach the Internet.

Sid Boyce

unread,
Aug 28, 2009, 11:58:05 AM8/28/09
to beagl...@googlegroups.com
It completely ignores what I have set in /etc/network/interfaces.
Check /etc/resolv.conf for the correct DNS server. If not,
echo "nameserver <IPADDRESS> >> /etc/resolv.conf
or better still add the line to /etc/profile so it's permanently set.

Regards
Sid.

--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

Reply all
Reply to author
Forward
0 new messages