You are not logged in.
Pages: 1
Hi
I did my first Arch linux installation a few days ago and everything is running well except network. It fails to start in every startup. In /var/log/errors there is an entry:
dhcpcd[179]: timed out waiting for a valid DHCP server response
this comes in every startup.
But when i login and run manually
/etc/rc.d/network start
it starts with no errors.
What should i do to get my network to start automatically?
This is my network part of rc.conf:
lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# (prefix a route in ROUTES with a ! to disable it)
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#
# Daemons to start at boot-up (in this order)
# (prefix a daemon with a ! to disable it)
#
DAEMONS=(syslogd klogd !pcmcia network !netfs crond)
JaH
Offline
Have your NIC card loaded into your modules section of your /etc/rc.conf and make sure its loaded in your /etc/modules.conf also. Here is mine.
#
MODULES=(snd-intel8x0 snd-pcm-oss snd-mixer-oss snd-seq-oss
driverloader 8139too !usbserial !ide-scsi) *8139too is the nic card.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# (prefix an interface in INTERFACES with a ! to disable it)
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0=dhcp
"eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
Here is the /etc/modules.conf
#
# /etc/modules.conf (for v2.4 kernels)
#
alias 8139too *NIC card
alias eth1 driverloader
alias /dev/nvidia* nvidia
This should get your internet working on boot.
FX
I'd be ripping my hair out if I had any.
Offline
Wow, thanks for the fast reply FX
Have your NIC card loaded into your modules section of your /etc/rc.conf and make sure its loaded in your /etc/modules.conf also.
Yes i have loaded my NICs modules (3c59x) and the card itself is working and the network also when i manually start it. But somehow it just can't get that ip-address in startup.
So i'm still looking for good suggestions for this.
JaH
Offline
add 3c59x to the MODULES variable in /etc/rc.conf. Then reboot.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
add 3c59x to the MODULES variable in /etc/rc.conf. Then reboot.
This is my /etc/modules.conf
#
# /etc/modules.conf (for v2.4 kernels)
#
alias eth0 3c59x
This is my /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
#
# Localization
#
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: fount in /usr/share/kbd/consolefonts (only needed for non-us)
# USECOLOR: use ANSI color sequences in startup messages
#
HARDWARECLOCK="localtime"
TIMEZONE=Europe/Helsinki
KEYMAP=fi-latin1
CONSOLEFONT=lat9-16
USECOLOR="yes"
#
# Networking
#
HOSTNAME="sopuli"
#
# Module to load at boot-up (in this order)
# (prefix a module with a ! to disable it)
#
MODULES=(!usbserial 3c59x ide-scsi)
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# (prefix an interface in INTERFACES with a ! to disable it)
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# (prefix a route in ROUTES with a ! to disable it)
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#
# Daemons to start at boot-up (in this order)
# (prefix a daemon with a ! to disable it)
#
DAEMONS=(syslogd klogd !pcmcia network !netfs crond)
# End of file
So i have 3c59x module in both files, but still network doesn't start at boot. In /var/log/errors there is this line that comes in every boot:
dhcpcd[195]: timed out waiting for a valid DHCP server response
I just can't figure it out.
JaH
Offline
Do you have to use DHCP? Suppose you give eth0 a fixed IP?
Offline
for some reason there is thislittle voice that is telling me that how things are commented in your rc.conf may be the culprit. you may want to do a quick forum search but i seem to remember something about uncommenting gateway helped someone. if the network script is working with manual commands perhaps it is an "order of daemons" issue in your rc.conf ... at startup does it even say that the network script is running?
just some mutterings.
AKA uknowme
I am not your friend
Offline
Considering I am like a complete noob at this distro, just ask Xentac and Sarah31 Im just happy I was somewhat on the right track. Good luck and hope you work it out soon.
FX
I'd be ripping my hair out if I had any.
Offline
Hi all
I did some further searching in the forums and i found couple similar situations. And like sarah31 suggested uncommenting gateway worked. So now my network starts in boot, but it gives me an error:
Network [busy]
SIOCADDRT: File exists
[fail]
Don't know what it means but it works.
JaH
Offline
I think i have solved my problem. In the /etc/rc.d/network script there is a line:
/usr/sbin/dhcpcd -t 10 -h $HOSTNAME $1
This line starts dhcpcd, but it says that if you don't get ip address in 10 seconds, then quit (-t 10).
In my case i don't get my ip address in 10 seconds, it takes about 20 s. I don't why it lasts so long, but anyway if i remove that option (-t 10) then dhcpcd waits max 60 seconds (default value) to get ip address. In this time i manage to get ip address and network starts up perfectly. So my new line in /etc/rc.d/network script is:
/usr/sbin/dhcpcd -d -h $HOSTNAME $1
(I added also that -d flag so dhcpcd gives me little bit more info of its doings)
JaH
Offline
Pages: 1