You are not logged in.

#1 2010-12-31 13:02:52

fat_boy
Member
Registered: 2010-12-01
Posts: 6

[SOLVED] DHCP problem.

Hi,

I have a problem with obtaining IP by dhcpcd at system boot. Although I get IP address after executing 'dhcpcd eth0'.
I read several posts on forum and some people advised to use dhclient instead.

I have removed dhcpcd, netcfg and installed dhclient. Now I am wondering how dhclient is going to work ?
Do I have to edit /etc/rc.d/network file or after reboot everything will work smoothly ?

Last edited by fat_boy (2010-12-31 18:09:23)

Offline

#2 2010-12-31 14:21:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] DHCP problem.

fat_boy wrote:

I have a problem with obtaining IP by dhcpcd at system boot.

Can you give us more details? The network fails, any errors?

Offline

#3 2010-12-31 17:07:55

fat_boy
Member
Registered: 2010-12-01
Posts: 6

Re: [SOLVED] DHCP problem.

Hi,

Below are events I found in daemon log when dhcpcd was used.

Dec 27 18:38:44 localhost init: Switching to runlevel: 6
Dec 27 18:40:51 localhost dhcpcd[1406]: version 5.2.8 starting
Dec 27 18:40:51 localhost dhcpcd[1406]: eth0: waiting for carrier
Dec 27 18:40:49 localhost init: Entering runlevel: 5
Dec 27 18:40:52 localhost dhcpcd[1406]: eth0: carrier acquired
Dec 27 18:40:52 localhost dhcpcd[1406]: eth0: rebinding lease of 10.196.20.243
Dec 27 18:41:02 localhost dhcpcd[1406]: eth0: broadcasting for a lease
Dec 27 18:41:21 localhost dhcpcd[1406]: timed out

Then I had to run dhcpcd manually and that way it worked.

Nonetheless I managed to get dhcp working by removing dhcpcd and installing dhclient.
I created empty /etc/dhclient.conf file and modified /etc/rc.d/network file.
Thanks for your response.

Offline

#4 2011-01-04 00:38:33

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 104

Re: [SOLVED] DHCP problem.

I had a similar problem. My box is in a school network and somehow dhcpcd (or the daemon network) could not setup the network using dhcp. One of the errors encountered is SIOCADDRT: No such process when I tried adding the gateway using route.

Went through severals Archwiki, tried twitting rc.conf, dhcpcd.conf, config.d/dhcpcd for hours with no avail. Finally I got around the problem by installing networkmanger and followed the instruction in this Archwiki:

https://wiki.archlinux.org/index.php/NetworkManager

I hope this will help someone who is facing the very same problem.

P.S. I got Arch installed (from the netinstall CD) at the first place by getting an IP leased using Windows (installed on the hard-disk) and then configured the network using  the info like IP, netmask, DNS server IPs, etc provided by Windows manually. This got me enough time to install the base system (don't forget to install networkmanger) but then the connection dropped and cannot be renewed after the lease expired.

Offline

Board footer

Powered by FluxBB