You are not logged in.
Pages: 1
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
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
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
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
will do thanks
Offline
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
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
*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
resolv.conf is overwritten only if you're using dhcp.
Also - rc.conf.header, rc.conf.trailer? Where are you seeing them, perbh?
Offline
Pages: 1