Community discussions

MikroTik App
 
smite
just joined
Topic Author
Posts: 21
Joined: Mon Feb 01, 2010 4:46 pm

DHCP Server. filename based on option

Mon Jun 28, 2010 10:59 pm

Is it possible with RouterOS to hand out different filenames based on a DHCP option?

In my Linux dhcpd I have:
  if not exists gpxe.bus-id {
        filename "gpxe/undionly.kpxe";
  } else {
        filename "gpxe/menu.gpxe";
  }
http://www.etherboot.org/wiki/appnoted# ... hcp_server for a usecase.

This is so a servers original PXE can boot GPXE and then GPXE can boot something else.

If I can do this with RouterOS I can simplify my Linux server lots more.

PS: I know I can probably do this in MetaRouter/OpenWRT, but the reason I'm going for RouterOS is to simplify management, not introduce even more parts.
 
fewi
Forum Guru
Forum Guru
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: DHCP Server. filename based on option

Mon Jun 28, 2010 11:20 pm

No, you cannot.
 
FIPTech
Member
Member
Posts: 470
Joined: Tue Dec 22, 2009 1:53 am

Re: DHCP Server. filename based on option

Tue Jun 29, 2010 1:33 am

Unfortunately you cannot because the DHCP server has not the full set of options that are available inside Linux.

But you can define DHCP server subnetworks inside DHCP networks, where you can change the filename. You can even define /32 subnetworks, so you can give a specific filename for each machine on the network.

This is tested on our network. PC machines do get a filename option for a remote boot menu, and IP phones do not.


If not ok for you, use a linux machine or Openwrt for the DHCP server. Mikrotik Router OS is designed for routing, MPLS, QOS and wifi and do this very nicely with a superb GUI. Don't ask it more as soon as you need advanced DHCP or DNS.

Who is online

Users browsing this forum: No registered users and 120 guests