Koozali.org: home of the SME Server

DHCP Service options

Jeff C

DHCP Service options
« on: March 23, 2002, 06:38:55 PM »
Can anyone point me to a howto for setting up SME 5.1.2 dhcp options?

I would like to be able to supply, WINS and multiple DNS server addresses to my WinX dhcp clients.

example:

WINS - 192.168.xxx.xxx
DNS1 - 192.168.xxx.xxx
DNS2 - 207.xxx.xxx.xxx
DNS3 - 175.xxx.xxx.xxx

Thanks,

-jeff

guestHH

Re: DHCP Service options
« Reply #1 on: March 23, 2002, 07:59:36 PM »
Hi Jeff,

How about making a custom template for dhcpd.conf and edit this template to fir your needs.

Don't forget to restart dhcpd :-)

Regards,
guestHH

Jeff C

Re: DHCP Service options
« Reply #2 on: March 25, 2002, 01:39:19 AM »
Great idea HF, only I'm a little lost as to where to start.  Any docs available on dhcp.conf?

-jeff

guestHH

Re: DHCP Service options
« Reply #3 on: March 25, 2002, 01:00:25 PM »
Hi Jeff,

Mini How-To:

1. Make a custom template of dhcp.conf:
mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf

2. Copy the fragments of /etc/e-smith/templates/etc/dhcpd.conf
to the new custom template

2. Change the custom template fragments to fit your needs

3. Save your changes as root:
/sbin/e-smith/expand-template /etc/dhcpd.conf

4. Restart dhcpd

Done.

Regards,
guestHH

Jeff C

Re: DHCP Service options
« Reply #4 on: March 26, 2002, 01:58:54 AM »
As always...U da man!

Many thanks - jeff

Anton Gadak

Re: DHCP Service options
« Reply #5 on: April 16, 2002, 10:31:01 PM »
I did steps 1 and 2, but when I opened the fragment for 25NetbiosNameServers there was alot of stuff in there that I have not seen before. I thought since it was based on Red Hat, I could just enter the option netbios-name-servers 192.168.xxx.xxx;

Can I do that? Can I just erase everthing in that fragment, save it, expand and restart dhcpd?

If not, where can I put in the server IP? next to else on the bottom?

Thanks.