You are not logged in.

#1 2009-05-09 12:11:09

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

[SOLVED] - static ip woes

I can't get onto my network when I try a static ip address. Here my rc.conf

                                                                      
#eth0="dhcp"                                                                 
eth0="eth0 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255"    
INTERFACES=(eth0)                                                           

#gateway="default gw 192.168.0.1"                     
gateway="default gw 192.168.1.1"                      
ROUTES=(gateway)
#ROUTES=(!gateway)

DAEMONS=(@syslog-ng hal @network @netfs @crond @alsa !oss @openntpd @sshd @cups @sensors @atalkd @portmap @nfslock @nfsd @avahi-daemon)

The dhcp router in question is set to offer addresses between 26-29 and in the documentation it states that a static ip address must not be within the dhcp range. The ip address of the router is set to 192.168.1.1

And here my resolv.conf

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.1
# /etc/resolv.conf.tail can replace this line

My /etc/conf.d/dhcpcd is as yet untouched.

Where could the problem lie? I've been through the network configuration wiki and these two threads: http://bbs.archlinux.org/viewtopic.php?id=71580 + http://bbs.archlinux.org/viewtopic.php?id=68111 but no joy.

Last edited by toad (2009-05-09 14:22:46)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#2 2009-05-09 13:58:14

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] - static ip woes

Have a look at this wiki page which should help.  You may omit the step about adding the ifconfig line to your /etc/rc.local unless you want to use jumbo frames.  I wrote that wiki page based on my experiences also documented in this forum post.

Last edited by graysky (2009-05-09 13:58:54)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2009-05-09 14:22:21

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [SOLVED] - static ip woes

Cheers!

With the setup that I had I was able to ping ip addresses but not names - found that out later... Ergo it was clear that the name server had something to do with it. I changed my resolv.conf only to see that it was wiped out again after a reboot. Your wiki entry:

Finally, /etc/conf.d/dhcpcd needs to be tweaked to keep the dhcpcd from overwriting your /etc/reslov.conf which will happen without this modification:

# Arguments to be passed to the DHCP client daemon
#

# DHCPCD_ARGS="-q"
DHCPCD_ARGS="-C resolv.conf -q"

sorted it - thank you!

Last edited by toad (2009-05-09 14:29:14)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#4 2009-05-09 16:32:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] - static ip woes

toad wrote:

Your wiki entry sorted it - thank you!

Rock on!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2009-05-09 18:39:18

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [SOLVED] - static ip woes

But this is not mentioned in any other networking wiki - so the question that begs asking is: does this only apply to setups once you have gone with dhcp?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

Board footer

Powered by FluxBB