-
Administrator
Site Admin-
Re: what are the benefits of dhcp in a LAN?

Originally Posted by
user unknown
I'm used to static IPs.
My example is: I have a /etc/host:
192.168.4.2 desktop
192.168.4.3 laptop
One update: rereading your post and seeing that you are manually putting the addresses in the host file to do your name resolution, I do see why you would question this. I don't know if Linux has better ways to deal with resolving these names for you; it's not part of DHCP. Many home routers will let you dedicate an IP address to a MAC adderss, so they can be sure to assign the same IP to a computer whenever the system is rebooted. The Dlink brand of routers that I have seen do this, and I like them for several other reasons too. Unfortunately, some other routers do not assure you that the same IP addresses will be given out to the same MAC addresses each time, particularly on a network where the computers come and go (the SMC router I have, for example, is particularly poor at this, even though it has a feature to make the DHCP lease "forever". Apparently forever starts over after a restart).
So if you do use a router and still want to resolve names with your host file, make sure these addresses don't change (either by using a router that gives out the same IP address by DHCP each time (when you configure it to do so) like the Dlink, or by setting these systems up as you have now with static addresses. Additional computers could still join the network and be assigned an address by DHCP, but they wouldn't have a name in your host file unless you added one. I'm hoping someone else will join in and teach us both if there is a better more automatic way in Linux to do name resolution than editing the host file on every system.
BY the way, there is a good reason to use DHCP to hand out a "permanent" address rather than setting it statically. Consider your laptop. If you configure it with DHCP, when you carry it to work, to an friend's network, to a lan party or to an Internet cafe, you can just plug in and DHCP will configure your IP address for you. When you come back to your home network, DHCP puts things back where they should be. With a static IP set in the laptop, you have to reconfigure things every time you move to a new network (except in the rare case where you have two networks and made sure the same static address will work on each network).
Similar Threads
-
By DiabloGN in forum General Support
Replies: 3
Last Post: 04-19-2005, 06:22 AM
-
By syco in forum Networking
Replies: 9
Last Post: 10-14-2004, 03:59 AM
-
By jreiser in forum Customising & Remastering
Replies: 3
Last Post: 02-01-2004, 09:45 PM
-
By tyiooo in forum Networking
Replies: 19
Last Post: 06-11-2003, 09:28 AM
-
By kcbnac in forum General Support
Replies: 5
Last Post: 04-10-2003, 08:51 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY
$10.00

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99

Crucial 32GB(4 x 8GB) CT8G4DFS824A.C8FDD1 DDR4-2400 UDIMM Desktop RAM - CR352A
$89.95

Micron 32GB Kit (2x16GB) DDR4 2666MHz PC4-2666V Desktop RAM MTA16ATF2G64AZ-2G6E1
$140.00

Lot of 32 Sticks of DDR4 RAM 8GB Sticks
$700.00

Micron 16GB (2x8GB) 2Rx8 DDR3 1600MHz PC3-12800U Desktop RAM
$19.99

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q
$169.00

Samsung m378a2k43cb1-crc 16GB (1x16GB) RAM DDR4 2400MHz M378A2K43CB1-CRC
$60.99

Samsung 32GB DDR4-2666 PC4-21300 288-Pin DIMM RAM M393A4K40CB1CRC0Q
$185.00

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED
$445.00