View previous topic :: View next topic |
Author |
Message |
bourez n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Jan 2005 Posts: 2
|
Posted: Fri Jan 28, 2005 5:50 pm Post subject: Static IP address |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Fri Jan 28, 2005 6:02 pm Post subject: |
|
|
can you ping your nameservers by IP address |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinwood n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry.gif)
Joined: 05 Oct 2002 Posts: 36 Location: Newcastle upon Tyne, UK
|
Posted: Fri Jan 28, 2005 6:08 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Fri Jan 28, 2005 6:17 pm Post subject: |
|
|
the /etc/conf.d/net above is the new style which comes with the latest (unstable) baselayouts. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tinwood n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_fry.gif)
Joined: 05 Oct 2002 Posts: 36 Location: Newcastle upon Tyne, UK
|
Posted: Fri Jan 28, 2005 7:59 pm Post subject: |
|
|
ah, that would be it then! Thanks for the info.
Cheers
Alex. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bourez n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Jan 2005 Posts: 2
|
Posted: Fri Jan 28, 2005 9:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|