1840366 Members
3044 Online
110163 Solutions
New Discussion

DHCP Question.

 
sudhapage
Regular Advisor

DHCP Question.

Hi All,

Servername MAC IP Subnet
machom 00:50:56:4c:f4:7d 1.22.0.X

I need to add the above server into DHCP server scope.

How we can do it?

Regards,
Sudhakaran.K
11 REPLIES 11
Ollie Rowland
Frequent Advisor

Re: DHCP Question.

Hi,

You mean you need to configure a DHCP server on this system, or you need to allow this system to be configured by an existing DHCP server?
sudhapage
Regular Advisor

Re: DHCP Question.

I want this system to be configured by an existing DHCP server
Ollie Rowland
Frequent Advisor

Re: DHCP Question.

Hi,

In general, you need to enable your NIC to use DHCP.

Add/change the line in /etc/rc.config.d/netconf for the appropriate card:
DHCP_ENABLE[0]=1

Also, touch /etc/dhcpclient.data

Then reboot.

Making sure your DHCP server will actually serve the configuration is a completely different matter and will depend on a myriad of factors.
sudhapage
Regular Advisor

Re: DHCP Question.

IN DHCP server, what are all the details I need to add in /etc/dhcpd.conf
Ollie Rowland
Frequent Advisor

Re: DHCP Question.

Hi,

Check for existing entries in the file and add one of the same structure for your new server.
sudhapage
Regular Advisor

Re: DHCP Question.

Below are sample existing entry, as per this I don't the fixed address info.

Other informations, I can use. Without fixed address, is it possible? to add in dhcpd.conf.

host kyhawotm10 {
hardware ethernet 00:11:43:5a:48:97;
fixed-address 1.22.0.60;
default-lease-time 2592000;
max-lease-time 2592000;
# DNS Servers - Domain Controller-Local MFS Server
option domain-name "weyer.com";
option domain-name-servers 1.22.0.1, 10.247.42.34, 10.150.17.3;

# Weyerhaeuser Central WINS Server
option netbios-dd-server 10.248.81.70, 10.247.40.20;
option netbios-name-servers 10.248.81.70, 10.247.40.20;
}
Ollie Rowland
Frequent Advisor

Re: DHCP Question.

Hi,

So your new entry will be:

host machom {
hardware ethernet 00:50:56:4c:f4:7d;
fixed-address ;
default-lease-time 2592000;
max-lease-time 2592000;
# DNS Servers - Domain Controller-Local MFS Server
option domain-name "weyer.com";
option domain-name-servers 1.22.0.1, 10.247.42.34, 10.150.17.3;

# Weyerhaeuser Central WINS Server
option netbios-dd-server 10.248.81.70, 10.247.40.20;
option netbios-name-servers 10.248.81.70, 10.247.40.20;
}

Presuming it's using the same DNS servers, of course.

Is this OK?
sudhapage
Regular Advisor

Re: DHCP Question.

If I don't want to use the fixed address to DHCP client, How I can configure/assign the IP Address?
Ollie Rowland
Frequent Advisor

Re: DHCP Question.

Hi,

Leave the "fixed address" line out.
sudhapage
Regular Advisor

Re: DHCP Question.

So the client will get the IP Address automatically?
Ollie Rowland
Frequent Advisor

Re: DHCP Question.

Hi,

Normally, yes.

Are you trying this stuff or just making notes???