You are not logged in.
Pages: 1
AKA Not Another Static IP Problem
Hi guys,
I'm trying to setup my network and guess what... it doesn't work
Well, i mean my Arch laptop won't.
The problem : i can't browse websites with the browser
Here are the configs :
/etc/rc.conf :
HOSTNAME="ArchX"
eth0="eth0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
/etc/hosts
127.0.0.1 localhost.localdomain localhost ArchX
/etc/resolv.conf
nameserver 212.71.8.10
nameserver 212.71.0.33
* It works well when using dhcp instead of statip IP
* i can ping and access the router
* i can ping www.google.com
My guess :
In the wiki, there is this line in the /etc/resolv.conf file :
search example.com
And it says to replace it with my domain name
Could it be the problem and if so, how do i know my domain name ?
Is there something i'm missing ?
Thank in advance for your help
Last edited by Kronophage (2009-02-12 01:51:08)
Laptop Dell Vostro 1500 : 15''(1440x900), core2duo T7250@2.00Ghz, 2Gb RAM, 160Gb@5400rpm, NVidia 8400M
Offline
Well... you know what ?
Posting to these forums has some kind of magical effect
I mean almost every time, i get the thing like 10-20 minutes after i hit "post".
And don't think i don't take the time to search answers and try several things, in this case i've been trying & searching for like 2 hours.
Now, i might be dumb... who knows...
Anyway, to give this post even the tiniest interest, i'll put the solution :
in /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
search localdomain #added this line
At least that did the trick for me...
Alright guys have a good day/night, i for myself am going back to pr0n surfing
ps: i double-post so that this thread doesn't stay unanswered.
Laptop Dell Vostro 1500 : 15''(1440x900), core2duo T7250@2.00Ghz, 2Gb RAM, 160Gb@5400rpm, NVidia 8400M
Offline
That is one way - but as usual, there is more ways than one to skin a cat.
Seeing you operate with a static ip-address, you could have added the following in your /etc/hosts:
192.168.1.3 ArchX
- and remove ArchX from the 127.0.0.1-entry
This is the most common (as far as _I_ know) way for static addresses.
If you use dhcp, then obviously you need your computer as the 127.0.0.1
Glad you figured it out though - gives more satisfaction that way! :-)
Offline
Hi, thanks for your suggestions
All paths lead to Rome, i guess, huh ?
I even found a third one. Well... it's more an improvement to the one i found :
Instead of bothering typing the DNS servers' IPs in the /etc/resolv.conf file, if there is a router which automatically configures the DNS (which is my case), simply put this :
nameserver 192.168.1.1 #or whatever IP the gateway has
Special cheese for the one who finds a fourth way to do it.
Laptop Dell Vostro 1500 : 15''(1440x900), core2duo T7250@2.00Ghz, 2Gb RAM, 160Gb@5400rpm, NVidia 8400M
Offline
4th way:
if you are using Gnome+networkmanager
rightclick on NM icon>>edit connections>>wireless
pick your connection and hit edit, fill in the fields for manual connection...
only works for wireless though.
Offline
Pages: 1