r/systemadmins • • Dec 08 '21
How a server gets an IP address
I have a question, I have built a 1U server which as integrated NIC port on it. When the server’s nic port is connected to RJ45 cable how does the server acquires an IP? What’s happening when a network cable is connected? Thanks.
4
Upvotes
4
u/Slight_Manufacturer6 Feb 01 '25
3
u/[deleted] Dec 09 '21
Generally speaking servers don’t acquire addresses , they are assigned. Having the IP address change on a server can well, break stuff.
If there is a DHCP server on your network, you could plug the server in and acquire an address from there.
5
u/Mondo3000 Dec 09 '21
DHCP server assigns it
2
u/FaithlessnessSuper73 Mar 01 '23
It depends on the rest of your network setup. If there is a DHCP server on site, it will get assigned by that. Ideally you would want to decide on the IP before and and assign a reservation for it so it doesn't change. You should also make sure the network settings on said server are set manually and to static also.
The above bit depends on what you are plugging the server into, whether a switch, router or firewall etc.
2
u/rolfey83 Oct 03 '24
A process nicknamed DORA takes place this stands for Discovery, Offer, Request Acknowledge.
Basically the entire process is broken into these 3 steps. The client machine sends a discovery round the network, when a DHCP server picks up that discovery, it sends back an offer to the client (your server) Your server receives the offer and decides if it's happy with that offer and then requests the IP address on offer. The DHCP server sends back an acknowledgement. The leased address will have a lifetime, until the address has to be renewed.
0
u/ofalltheshitiveseen Dec 09 '21
Magic
-1
u/[deleted] Dec 09 '21
I'm sorry, is this a serious question?