Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Static IP address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bourez
n00b
n00b


Joined: 28 Jan 2005
Posts: 2

PostPosted: Fri Jan 28, 2005 5:50 pm    Post subject: Static IP address Reply with quote

Hello,

My dhcp works well but I would like to fix my ip address and the DNS don't work

My /etc/conf.d/net looks like :
Code:
ifconfig_eth0=(
        "192.168.0.25 broadcast 192.168.0.255 netmask 255.255.255.0"
)
routes_eth0=(
        "default gw 192.168.0.254"
)

I put in my /etc/resolv.conf the same as given by my dhcpd.
Code:
nameserver 212.27.39.1
nameserver 212.27.39.134

and when I go on a new site with a new domain, mozilla doesn't find the site.

Can someone help me ? thanks
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Fri Jan 28, 2005 6:02 pm    Post subject: Reply with quote

can you ping your nameservers by IP address
Back to top
View user's profile Send private message
tinwood
n00b
n00b


Joined: 05 Oct 2002
Posts: 36
Location: Newcastle upon Tyne, UK

PostPosted: Fri Jan 28, 2005 6:08 pm    Post subject: Reply with quote

Hi

Your /etc/conf.d/net looks a little odd. I guess they may have changed something recently, but mine looks like this for static addresses

Code:

iface_eth0="192.168.2.1 broadcast 192.168.x.255 netmask 255.255.255.0"

gateway="eth0/192.168.1.1"


Are you mixing /etc/dhcp/dhcpd.conf in with the /etc/conf.d/net or is this just something I don't understand?

Cheers
Alex.
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Fri Jan 28, 2005 6:17 pm    Post subject: Reply with quote

the /etc/conf.d/net above is the new style which comes with the latest (unstable) baselayouts.
Back to top
View user's profile Send private message
tinwood
n00b
n00b


Joined: 05 Oct 2002
Posts: 36
Location: Newcastle upon Tyne, UK

PostPosted: Fri Jan 28, 2005 7:59 pm    Post subject: Reply with quote

ah, that would be it then! Thanks for the info.

Cheers
Alex.
Back to top
View user's profile Send private message
bourez
n00b
n00b


Joined: 28 Jan 2005
Posts: 2

PostPosted: Fri Jan 28, 2005 9:54 pm    Post subject: Reply with quote

I am sorry, I tried again this evening, and I realized I made a mistake in the nameservers. Today I spent 4 hours on this problem and I was certainly tired.

I thank you a lot for your help !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum