Community discussions

 
User avatar
nickb
Member
Member
Topic Author
Posts: 407
Joined: Thu Jan 26, 2006 6:24 pm
Location: Southeast Kansas
Contact:

Installing ISC DHCPd on the MT Provided MetaROUTER Image

Mon Oct 03, 2011 7:10 am

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 ... s/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 ;)

Hopefully this is stable... and I hope that these notes help anybody searching for this kind of information in the future.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Installing ISC DHCPd on the MT Provided MetaROUTER Image

Mon Oct 03, 2011 8:37 am

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.
 
User avatar
nickb
Member
Member
Topic Author
Posts: 407
Joined: Thu Jan 26, 2006 6:24 pm
Location: Southeast Kansas
Contact:

Re: Installing ISC DHCPd on the MT Provided MetaROUTER Image

Mon Oct 03, 2011 8:46 am

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.
 
User avatar
nickb
Member
Member
Topic Author
Posts: 407
Joined: Thu Jan 26, 2006 6:24 pm
Location: Southeast Kansas
Contact:

Re: Installing ISC DHCPd on the MT Provided MetaROUTER Image

Fri Oct 28, 2011 7:21 am

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.
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Installing ISC DHCPd on the MT Provided MetaROUTER Image

Fri Jan 27, 2012 4:40 pm

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

Who is online

Users browsing this forum: No registered users and 4 guests