This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bulk DHCP import

Hi,
I used to run a dhcp server on a linux box. Now i'm willing to move to the dhcp server on the astaro firewall. But i'm not happy of writing every static IP address again. So, is there no way that I can import all records? e.g. Is there no dhcp.conf somewhere that I can access via ssh?


This thread was automatically locked due to age.
  • DHCP is commonly used for assigning addresses to workstations that don't need a static IP address. If you have machines that require static addresses, they ought to have their IP addresses hardcoded in their respective TCPIP stacks, using addresses that are outside the range of the DHCP address pool.

    Using a DHCP server to give IP addresses to equipment that should be on a static address, must be considered to be a poor practice.
  • If you need a centralized network management, DHCP is needed. And if you need to subnet your network for security reasons, using static assigned IP's is the easiest way to work. 
    Please, I respect your opinion about Astaro firewalling but it seems you do not have much practice in network management.  However, this is not the place to discuss why or why not, I just wanted to know if it is possible in this hardened Linux box to manually alter e.g. the dhcp.conf file? (and where the file is located since it is chrooted).
  • The DHCP jail is in /var/chroot-dhcps (I think).
    Under that directory, you will find the leases conf file et.al. Advanced Linux Networking is a good book for showing you what to do. I believe it's ISC DHCP, so you can refer to their documentation.
  • Thanks SecApp,

    I found a file in /var/chroot-dhcps/etc that contains info I inputted via de webinterface but information that I enter directly in this file is overwritten the next time I start the webinterface. So it seems there is a one way information stream. In Astaro V4 it seems to work in two directions.
  • Hmmm; haven't tried it with 5 yet.
    Hopefully somebody else has worked with adjusting 5 conf files and can comment here??
  • Try adding this to the bottom of the /var/chroot-dhcps/etc/dhcpd.conf-default file.

    host 192_168_65_51 {
        hardware ethernet 00:90:F5:0D:80:06;
        fixed-address 192.168.65.51;
        }
    Even if it does work... These entries won't, however, show up un the GUI.
  • Indeed, they do not show up and, if you disable/enable the dhcp in the GUI, the file is overwritten again by what was visible in the GUI...so your entry is gone. It seems there is no way to this so I stick with my DHCP server on the other linux server. Thanks anyway
  • Yeah, I kind of figured as much. Did you edit the conf file or the conf-default file?
    In any case, it would be nice to have an import feature. Nice and simple, from a flat file.
    "MAC address","IP"