Koozali.org: home of the SME Server

Editing /etc/dhcpd.conf

Brian Barber

Editing /etc/dhcpd.conf
« on: May 24, 2002, 08:44:36 PM »
Can I edit /etc/dhcpd.conf directly (i.e. in a text editor) or must I use one the custom templates?

BB

Grub

Re: Editing /etc/dhcpd.conf
« Reply #1 on: May 25, 2002, 02:34:58 AM »
The last one (custom templates)

Brian Barber

Re: Editing /etc/dhcpd.conf
« Reply #2 on: May 28, 2002, 02:19:11 AM »
OK, I'll bite.  How do I do that?

BB

Dan G.

Re: Editing /etc/dhcpd.conf
« Reply #3 on: May 28, 2002, 02:45:28 AM »
Please explain what exactly you want to change --- that will determine which template frag you need to create.

Dan

Bill Talcott

Re: Editing /etc/dhcpd.conf
« Reply #4 on: May 28, 2002, 06:16:33 PM »

Brian Barber

Re: Editing /etc/dhcpd.conf
« Reply #5 on: May 28, 2002, 06:26:24 PM »
I have an HP J2382 EX print server that can only issue BOOTP requests.  It doesn't know DHCP, nor can I configure a static IP address.  I would like to reserve 192.168.1.10 for it and have it retrieve this address via BOOTP.  I know what lines I need to add to /etc/dhcpd.conf for a "regular" distribution; however, doing this with e-smith baffles me.

If anyone can give me some pointers, I would really appreciate it.

Cheers,
BB

Dan Brown

Re: Editing /etc/dhcpd.conf
« Reply #6 on: May 28, 2002, 06:30:30 PM »
You don't have to edit dhcpd.conf.  Just make a new entry in the hostnames and addresses panel, give the MAC address and the IP address you want to use.

Brian Barber

Re: Editing /etc/dhcpd.conf
« Reply #7 on: May 28, 2002, 07:38:31 PM »
Thanks for pointing this out.  I now have the hardware reservation configured.  I just have to figure out how to enable BOOTP.

Thanks,
BB

PS: I think that I should document this in a HOWTO.

Brian Barber

Re: Editing /etc/dhcpd.conf - success
« Reply #8 on: May 28, 2002, 08:12:39 PM »
I gave my head a good shake and simply edited /etc/e-smith/templates/etc/dhcpd.conf/25DenyBootp.

Originally, 25DenyBootp read:
    deny bootp;

Now it reads:
#  deny bootp;

I suppose that I could have deleted the text, but I prefer to comment unwanted lines out in case I need to change them back.

Thanks for all your help.

Cheers,
BB

Summary:
To configure DHCPD to respond to BOOTP requests on any version of E-Smith or SME Server (or any Linux/UNIX for that matter), the hardware address of the BOOTP device in question must be listed in /etc/dhcpd.conf and BOOTP must be enabled.  With E-Smith/SME Server, BOOTP is disabled by default.  To enable it edit /etc/e-smith/templates/etc/dhcpd.conf/25DenyBootp to read:

#  deny bootp;

To create a reservation for the device, navigate to Hostnames and Addresses in the Configuration section of the Web-based Server Manager.  Click on the link at the top of the page that reads, "Click here to create a new hostname for a local host.", and on the page that follows, enter the hostname, local IP address and the hardware (MAC) address of the BOOTP device.  When finished, click on the "Create" button to commit your changes.

I needed to restart my device (an HP J2382 EX print server) to retieve the IP address.