You are not logged in.

#1 2009-05-26 17:00:43

kralyk
Member
Registered: 2009-04-27
Posts: 72

How do I tell the system to use dhclient?

Hello everyone,

I just installed arch on my new dell laptop.
My cable ethernet adapter (not the wirekless one) - eth1 - is set to use dhcp,
however, dhcpcd doesn't work for me for some reason:

dhcpcd eth1

doesnt get the address, it times out

dhclient, on the other hand, works pretty well out of the box. When I issue

dhclient eth1

it gets me IP address in like 2 seconds.

The problem is I have to type this command every time I want my LAN connection to work,
because running

/etc/rc.d/network restart

returns error: /sbin/dhcpcd: file was not found
which is obvious since I don't use dhcpcd,
so how do I tell my system to invoke dhclient instead of dhcpcd ???

Thanks for your answers and sorry for my bad english...

Offline

#2 2009-05-26 17:04:48

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: How do I tell the system to use dhclient?

Do you have in rc.conf eth1 or eth0=(dhcp) ?


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#3 2009-05-26 17:15:01

kralyk
Member
Registered: 2009-04-27
Posts: 72

Re: How do I tell the system to use dhclient?

in my rc.conf I have eth1="dhcp"

Offline

#4 2009-05-26 17:17:52

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How do I tell the system to use dhclient?

fork the network script and replace dhcpcd with dhclient (don't forget to create a conf.d/dhclient)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2009-05-26 17:19:14

kralyk
Member
Registered: 2009-04-27
Posts: 72

Re: How do I tell the system to use dhclient?

You mean edit the network script directly? ok

and what should conf.d/dhclient look like?

Offline

#6 2009-05-26 17:39:32

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How do I tell the system to use dhclient?

not edit it, fork it, so that you still have the original script in place, just in case.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB