Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to determine the reason my router is not syncing up to my ISP, I do suspect snafu on their end so I'm trying to replicate my desktops setup which includes using dhcpcd.

Problem is I don't know how to tell OpenWRT to use that after I've installed it on OpenWRT. Can anyone tell me the steps to install and configure dhcpcd for WAN on OpenWRT?

I'm using backfire 10.03 on a WRT54GL.

share|improve this question

2 Answers 2

Basically speaking, it seems the use of udhcpc is hardcorded into the helper scripts of ifup on OpenWRT.

Basically, ifup is calling setup_interface, from /lib/network/config.sh which has hard coded references to udhcpc. If you were to backup this file, and make the sufficient edits to the helper function, I imagine you would be able to use dhcpcd, however I make no guarantees that it would work, as I have not tried this.

A bit of background, udhcpc does seem to be the preferred & supported DHCP method in OpenWRT, and dhcpcd was only included due to it's support of RFC#3442 (OpenWRT Ticket 1797).

share|improve this answer
    
although this is accurate, was hoping someone would have a more... definitive answer on what modifications needed to be made. Since in all my uses of dhcpcd it's been configured for me. –  xenoterracide Nov 13 '10 at 21:37

It's quite simple.

    # opkg update
    # opkg install dhcpcd
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.