Installing ISC DHCPd on the MT Provided MetaROUTER Image

It seems like not many people are using the MetaROUTER feature, given the lack of significant activity on the forum and wiki regarding this topic, so I thought I would share what I did to use isc dhcpd in OpenWRT running in MetaROUTER.

First I installed the MR-PPC image off of the wiki onto an RB1100 board. The image boots OK, but when I try to use opkg to install packages; I get an error about the URL being 404. Put it in a browser, and sure enough it is. There’s not a directory in trunk for mr-ppc.

I browsed around http://downloads.openwrt.org/kamikaze/ but couldn’t find any versions showing an mr-ppc directory.

I tried trunk/ppc44x and trunk/ppc40x but both resulted in a crash of the HOST router when I tried to do anything with opkg list/install

Decided to try http://downloads.openwrt.org/kamikaze/7.07/packages/powerpc/ but unfortunately they have Packages named as “Packages” not “Packages.gz” … a simple issue of downloading the Packages file, the packages I wanted, and making sure only those packages were in the Packages file; gzipping it, and putting them on my web server. Then editing /etc/opkg.conf on the OpenWRT image to point to the directory of the packages & Packages.gz file.

Then, by executing “opkg update” then “opkg install dhcp-server” the isc dhcpd package attempted to install - but it claimed there were no valid architectures.

I then modified the Packages file and changed the “Architecture” line to “mr-ppc”. After running another “opkg update” and “opkg install dhcp-server”, the package installed!

Worried about the compile architecture, I executed the program /usr/sbin/dhcpd and received the online help output of dhcpd!

To complete the configuration I created /etc/dhcpd.conf as desired, and created /etc/dhcpd.leases, then start dhcpd with “dhcpd -cf /etc/dhcpd.conf -lf /etc/dhcpd.leases”. To start on boot, add that line to /etc/rc.local

A SysV init script is left to an exercise to the reader :wink:

Hopefully this is stable… and I hope that these notes help anybody searching for this kind of information in the future.

I tried trunk/ppc44x and trunk/ppc40x but both resulted in a crash of the HOST router when I tried to do anything with opkg list/install

i am interested in this part - would you describe it in more detail as i am not so familiar with OpenWRT. Want to recreate the crash of the host.

I edited the /etc/opkg.conf file. The first line in the file references a URL that isn’t valid anymore (http://downloads.openwrt.org/snapshots/trunk/mr-ppc/).

Replacing that URL with
http://downloads.openwrt.org/snapshots/trunk/ppc40x/
or
http://downloads.openwrt.org/snapshots/trunk/ppc44x/

Then I ran opkg update (which worked ok)

Then I ran opkg list - HOST router stopped responding, required hard power cycle
I also tried opkg install dhcp-server - again the HOST router stopped responding, requiring a power cycle.

opkg search didn’t seem to crash it, but there were no search results.

I don’t think I said in the OP that this is on an RB1100 running ROS 5.7 with firmware 2.30.
/system/resources indicates the CPU is running at 800MHz.

I would be happy to send a supout to support if it would be helpful, but I’ve made significant configuration to the router so I do not want to post it to the forum.

While it seemed to work in testing; when I put this in production it failed. Many clients were not able to receive a response from the DHCP server. Due to it causing service interruption, rather than try to resolve the issue; I switched to a DHCP relay to a server on a remote network through an IP-IP tunnel.

Hi, lets try to use my private repo for PPC Mikrotik Metarouter http://openwrt.wk.cz/trunk/mr-ppc/.

Maybe these packages will help you:
dhcp-forwarder_0.8-1_mr-ppc.ipk 26-Jan-2012 20:51 14K
dhcp-relay_3.1.0-3_mr-ppc.ipk 26-Jan-2012 20:45 58K
dhcp-server_3.1.0-3_mr-ppc.ipk 26-Jan-2012 20:53 569K
dhcp6-client_1.0-1_mr-ppc.ipk 26-Jan-2012 20:54 13K
dhcp6-server_1.0-1_mr-ppc.ipk 26-Jan-2012 20:51 14K
dhcpcd_3.0.17-1_mr-ppc.ipk 26-Jan-2012 20:52 19K