Avatar of gplana
gplana
Flag for Spain asked on

Why should I assign static IP address on my DHCP server?

Hi.

I have installed isc-dhcp-server on a Debian. I'm making some experiments with this as I'm a little bit newbie on network administration.

I have read that you should assign static IP to any ethernet interface from where you want to serve IP addresses from your DHCP, but I don't really understand why.

I mean, why my DHCP server can't assign an IP address to "myself" ? All I need is to define a rank of IP addresses on dhcpd.conf, isn't it?

Thank you.
DHCPLinux Networking

Avatar of undefined
Last Comment
gplana

8/22/2022 - Mon
Steven Vona

I think what you read is that your DHCP server itself should have a static IP address.  That is correct, and in my opinion all servers should have a static IP address.  

A lot of services (BIND, ISC-DHCP, etc..) bind to a certain IP address.  If they were receiving DHCP addresses it would make it very hard to administer.
Don Johnston

One reason is that when a host tries to renew it's address, it will do so to the IP address of the server.  If the server address changes, then it can't renew the address.
gplana

ASKER
I understand that the DHCP server need to have a FIXED address, but why couldn't it be assigned by the DHCP server itself?

I mean, DHCP server can assign fixed address to hosts, according to its MAC address...
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Don Johnston

It can, but what's the gain?  

The primary function of DHCP is to ease in the deployment of hosts so you don't have to manually assign IP addresses.  We're talking one host here.  So there's no real gain to having this server get a dynamic address.
ASKER CERTIFIED SOLUTION
Predrag Jovic

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
bbao

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
gplana

ASKER
Thank you both.
I think the clue is the IP broadcast address (255.255.255.255) where DHCP questions goes to. I didn't realiza that this means that request is going to the network, but not to myself.
bbao

yes, any broadcast packet from self to broadcast address will be ignored.

but, again, the story starts at Link Layer (Layer 2) and there is NO IP address (Layer 3) at that moment. it is all about MAC address, its broadcast address is FF:FF:FF:FF:FF:FF (48 bits) instead of FF.FF.FF.FF (255.255.255.255 or 32 bits).
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
gplana

ASKER
I have read that when no IP is assigned, DHCP client uses 0.0.0.0 as IP address, and 255.255.255.255 (=broadcast) as destination.