You are not logged in.
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
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 packages • Zsh and other configs
Offline
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
Your wiki entry sorted it - thank you!
Rock on!
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
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