Community discussions

MikroTik App
 
arboziz
just joined
Topic Author
Posts: 7
Joined: Mon Feb 05, 2018 11:12 am

[feature request]: add class-based options to dhcp server to support ipxe chainloading

Tue Nov 09, 2021 3:15 pm

please
Last edited by arboziz on Tue Nov 09, 2021 7:24 pm, edited 1 time in total.
 
User avatar
deadkat
Frequent Visitor
Frequent Visitor
Posts: 57
Joined: Sun Nov 15, 2020 11:14 pm
Location: Alabama, USA

Re: [feature request]: ipxe support

Tue Nov 09, 2021 5:15 pm

RouterOS already supports booting via DHCP or bootp just set
/system routerboard settings set boot-protocol=xxxx
or follow the instructions here https://wiki.mikrotik.com/wiki/Manual:RouterBOOT

What do you need to do that can't be done with these options?
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3253
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: [feature request]: ipxe support

Tue Nov 09, 2021 7:11 pm

@deadcat is right, with DHCP + netinstall and/or flashfig is how to install ROS over a network.

If you're looking for an iPXE server, different question/needs: ROS support TFTP, so possible. While not exactly easy, at a high level: you can upload the iPXE server, then use a few /ip/tftp/add ... commands so ROS's TFTP server know to server the uploaded boot files, then use the ROS DHCP Server to set the boot image for clients (on the right interface etc. etc.).
 
arboziz
just joined
Topic Author
Posts: 7
Joined: Mon Feb 05, 2018 11:12 am

Re: [feature request]: ipxe support

Tue Nov 09, 2021 7:23 pm

Sorry I did not specify.
I explain better
I was asking for ipxe chainloading via dhcp
To do this you need that dhcp server has support for class-based options.
So the request may sound like this: add class-based options to dhcp server to support ipxe chainloading
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3253
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: [feature request]: add class-based options to dhcp server to support ipxe chainloading

Tue Nov 09, 2021 10:23 pm

Fair enough, that makes more sense now.

But let's say class-based options were support... You'd next run into that it isn't so easy to use ROS to serve a file via HTTP/S with some boot image that iPXE configurations might want to use...
 
Knoblauch
just joined
Posts: 6
Joined: Sun Dec 02, 2018 2:28 pm

Re: [feature request]: add class-based options to dhcp server to support ipxe chainloading

Mon Jan 24, 2022 2:20 pm

Of cource the chain-loaded iPXE would issue a 2nd DHCP request and this request must be answered different based on the DHCP user class.
The answer to the 2nd DHCP request would point to a real HTTP server (not the MT router).

Me too would like to see that: DHCP 'option set' based on DHCP user class.

Can I have it please ;-)
 
pe1chl
Forum Guru
Forum Guru
Posts: 10195
Joined: Mon Jun 08, 2015 12:09 pm

Re: [feature request]: add class-based options to dhcp server to support ipxe chainloading

Mon Jan 24, 2022 4:52 pm

Assuming that for that iPXE booting you have a separate server, it is already possible using DHCP relay.
Configure your central DHCP server with the options and facilities you need, that can include not replying to requests that are not from iPXE clients.
Then you can configure a local DHCP server on each router with a small delay threshold, and when the central server does not reply it will serve the clients using the MikroTik DHCP server.

Who is online

Users browsing this forum: No registered users and 21 guests