You are not logged in.

#1 2009-02-12 01:17:06

Kronophage
Member
From: Liege, Belgium
Registered: 2008-07-23
Posts: 9

[Solved] Network : static IP config

AKA Not Another Static IP Problem big_smile

Hi guys,

I'm trying to setup my network and guess what... it doesn't work smile
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 ? big_smile
Is there something i'm missing ?

Thank in advance for your help wink

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

#2 2009-02-12 01:50:52

Kronophage
Member
From: Liege, Belgium
Registered: 2008-07-23
Posts: 9

Re: [Solved] Network : static IP config

Well... you know what ?
Posting to these forums has some kind of magical effect big_smile
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... wink

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 lol

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

#3 2009-02-12 02:34:30

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

Re: [Solved] Network : static IP config

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

#4 2009-02-12 03:00:17

Kronophage
Member
From: Liege, Belgium
Registered: 2008-07-23
Posts: 9

Re: [Solved] Network : static IP config

Hi, thanks for your suggestions smile
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. lol


Laptop Dell Vostro 1500 : 15''(1440x900), core2duo T7250@2.00Ghz, 2Gb RAM, 160Gb@5400rpm, NVidia 8400M

Offline

#5 2009-02-12 20:18:09

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: [Solved] Network : static IP config

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

Board footer

Powered by FluxBB