There is an existing DHCP service in my environment, so it's impossible for me to use the dhcp service comes with DRBL server. Any solution ? |
Basically there are 4 solutions:
- Use different port to run DHCP service in DRBL server, this won't conflict with your existing DHCP service. This can be done after you install and configure your DRBL server. Here we take Debian as an example. Make sure your DRBL is version 1.9.0-35 or later:
- Edit your /etc/dhcp3/dhcpd.conf in drbl server, add these two lines:
local-port 1067;
remote-port 1068;
Then restart dhcp service like this:
/etc/init.d/dhcp3-server restart
- Run this command on DRBL server:
mknic-nbi --udhcpc-port 1068
- Create Etherboot boot floppy or iso file, which will be used to boot the clients. Use this website http://www.rom-o-matic.net, choose network card and the type you want to create, and the most important is to choose "3. (optional) To customize ROM configuration press:", then check "ALTERNATE_DHCP_PORTS_1067_1068". You will get a dsk for iso file which you can put in the floppy or CD to boot it.
For more details, refer to this discussion.
- Another solution is to provide static IP addresses to your DRBL clients by locking them with MAC address. The can be done when you run drblpush to configure your DRBL environment. By doing this, the DHCP service in DRBL server will only provide IP address to your specifiy clients.
- If you still need to provide floating IP address to your DRBL cient, you can try to use DRBL 1.8.0-15 or newer version. By
- Uncommenting the 'allow members of "DRBL-Client";' in /etc/dhcp3/dhcpd.conf, the DHCP service in DRBL server will only provide IP address to PXE, Etherboot or DRBL client.
- Adding 'deny members of "DRBL-Client";' and the following
class "DRBL-Client" {
match if
(substring(option vendor-class-identifier, 0, 9) = "PXEClient") or
(substring(option vendor-class-identifier, 0, 9) = "Etherboot") or
(substring(option vendor-class-identifier, 0, 10) = "DRBLClient");
}
in your real DHCP server dhcp config file.
For more info, you can refer to this discussion (Thanks to Mr 626) about the settings.
This mechanism won't affect your existing DHCP service. However, you have to make sure all the PXE or Etherboot clients are DRBL clients.
- You can merge the dhcpd.conf in DRBL server with your existing DHCP services. Then remove the DHCP service in DRBL server. Please refer to this forum. Thanks to Karly De Baere.
- Install dnsmasq. From version 2.49, dnsmasq provides proxy DHCP function. For more details, you can refer to this forum. Thanks to kasatkin for providing this info.
There are some other possibilities to solve this problem. If you need some example, you can refer to this discussion:
https://sourceforge.net/p/drbl/discussion/DRBL_for_Redhat/thread/47eeed7d
Thanks to Nikolay Kasatkin.
|
|