You are not logged in.

#1 2009-09-29 10:57:05

xapaxa
Member
Registered: 2009-09-29
Posts: 4

network help

hi.
it installed archlinux without a problem, but i cannot get an internet connection to update the box or install whatsoever.
i've been trying to get a static ip on a box running archlinux, not with no luck


my /etc/rc.conf looks like this

hostname="Calibretto"
#static ip example
eth0="eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255"
#eth0 ="dhcp"
interfaces=(eth0)
....

gateway="default gw 192.168.1.1"
ROUTES=(gateway)

the route -n command issues this

kernel ip routing table
destination     gateway             genmask                 flags     metric         ref  use    iface
192.168.1.0    *                       255.255.255.0          U         0                 0   0        eth0
default           192.168.1.1        0.0.0.0                     UG      0                 0   0         eth0

i can ping the router or another pc on my network, but if i issue the command ping -c 3 www.google.com it says unknown host.

i've searched and searched and couldn't find an answer for my problem

any ideas on how to fix this

thanks in advance

Last edited by xapaxa (2009-09-30 09:41:51)

Offline

#2 2009-09-29 11:02:37

clmates
Member
From: A Coruña - España
Registered: 2009-04-25
Posts: 79

Re: network help

Hi.

If you use static address you must set up a proper dns in /etc/resolv.conf

usually the router does dns itself, so test with this

nameserver 192.168.1.1

if this don't work, then you can use any public nameserver (surely your ISP provider gave you a pair of DNS ip)


-

Arch64 - Acer AX3950 - i5-650 3.2 GHz - 8 GB RAM - Nvidia GeForce 320 1 GB Ram
Arch32 - Samsung NC10 - 2 GB Ram

Offline

#3 2009-09-29 11:10:35

xapaxa
Member
Registered: 2009-09-29
Posts: 4

Re: network help

thanks for the help.
that was the problem.

i added the proper dns in /etc/resolv.conf and it worked

thanks again for the help.

Offline

#4 2009-09-29 11:22:18

clmates
Member
From: A Coruña - España
Registered: 2009-04-25
Posts: 79

Re: network help

Hi.

Then Edit the Post subject and Add SOLVED ;-)


-

Arch64 - Acer AX3950 - i5-650 3.2 GHz - 8 GB RAM - Nvidia GeForce 320 1 GB Ram
Arch32 - Samsung NC10 - 2 GB Ram

Offline

#5 2009-09-29 20:36:42

xapaxa
Member
Registered: 2009-09-29
Posts: 4

Re: network help

will do thanks

Offline

#6 2009-09-30 09:45:08

xapaxa
Member
Registered: 2009-09-29
Posts: 4

Re: network help

rebooted the box and now i cannot get connection again, and another symptom is shown, the light in the router regarding connection to the box is flashing, it doesn't stay on as the others.

again help would be appreciated
thanks in advance

Offline

#7 2009-09-30 13:01:40

clmates
Member
From: A Coruña - España
Registered: 2009-04-25
Posts: 79

Re: network help

Hi.

The /etc/resolb.conf change has nothing to do with this.

Try this

check the cable is right plugged to both sides (router and PC), to be sure, better unplug from both and plug again

if this don't work, perhaps the router had any problem, try to restart it (power off, power on)

The link should be detected regardless of the IP negotiation.

Have you any other box to make a test?

have your router any other ethernet ports available?


-

Arch64 - Acer AX3950 - i5-650 3.2 GHz - 8 GB RAM - Nvidia GeForce 320 1 GB Ram
Arch32 - Samsung NC10 - 2 GB Ram

Offline

#8 2009-10-01 01:28:46

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: network help

*chuckles*
/etc/resolv.conf gets overwritten on each boot - you have to put the nameserver in /etc/rc.conf.header or /etc/rc.conf.trailer

(see the comments in /etc/resolv.conf)

Last edited by perbh (2009-10-01 01:29:23)

Offline

#9 2009-10-02 12:25:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: network help

resolv.conf is overwritten only if you're using dhcp.

Also - rc.conf.header, rc.conf.trailer? Where are you seeing them, perbh?

Offline

Board footer

Powered by FluxBB