You are not logged in.

#1 2011-03-05 10:28:09

caxap
Member
Registered: 2011-03-05
Posts: 17

[solved] automatic network setup doesn't work after reboot

Hi, everybody!

I have a strange problem.

After reboot network doesn't start at all (network card led doesn't blink!).

1) according to archwiki network profile in rc.conf is

eth0="dhcp"
INTERFACES=(eth0)
ROUTES=(!gateway)

2) "network" is also in the daemons list

3) the card module is loaded

4) it works fine after

/etc/rc.d/network stop
/etc/rc.d/network start
dhcpcd eth0

5) google didn't help

Last edited by caxap (2011-03-05 18:15:28)

Offline

#2 2011-03-05 15:04:51

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [solved] automatic network setup doesn't work after reboot

Are you using a router? If so try adding this to /etc/rc.conf in your Network section:

gateway="default gw 192.168.0.1"

replacing that IP address with whatever address the router has.


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2011-03-05 15:25:16

caxap
Member
Registered: 2011-03-05
Posts: 17

Re: [solved] automatic network setup doesn't work after reboot

No, I don't use a router and moreover have no idea how my intranet is arranged.
I just have a rj-45 plug, and dhcp server behind it which gives IPs to everyone who's connected.
As well as I understood the gateway is not meant to be specified in case of using dhcp configuration, but thnx for your answer, I'll try.

Offline

#4 2011-03-05 18:10:11

caxap
Member
Registered: 2011-03-05
Posts: 17

Re: [solved] automatic network setup doesn't work after reboot

the problem has been solved.

it turned out that network script was set to boot in the background
as well as dhcpcd flag in /etc/conf.d/dhcpcd was "-q", so no output was observed.

changing these parameters helped to understand origin of the problem.
for anyone who has problem with dhcpcd timeout, this solution may help.

change dhcpcd flags in /etc/conf.d/dhcpcd to "-t 60 -E"

Offline

Board footer

Powered by FluxBB