-
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

TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch
$46.99

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$49.99

Linksys LGS328MPC 24-Port Managed Gigabit PoE+ Switch with 4 10G SFP+ Uplinks
$224.95

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99

TP-Link TL-SG2210P 10-Port Gigabit Smart Switch w/ 8-Port PoE+ NO AC SKU 25597
$36.98

5 Port Gigabit Unmanaged Ethernet Switch, Home Network Hub, Office Ethernet S...
$9.64

Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts
$69.00

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

NETGEAR 5-Port Gigabit Ethernet Unmanaged Switch (Gs305) - Desktop Quiet Fanless
$25.99