Using names, not IP addresses, in home network
Mark Halegua
phantom21 at mindspring.com
Mon Apr 13 00:27:53 UTC 2009
On Sunday 12 April 2009 01:46:10 pm Dotan Cohen wrote:
> I have a few computers on a home network, and currently the router
> assigns them IP addresses with DHCP. However, I find that every few
> weeks the addresses change. How can I name the machines names such as
> "laptop" and "ety" instead of useing IP addresses? Everything that
> I've googled seems quite out of date. Thanks.
>
> --
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
Create a hosts file in your /etc/ directory. Use a text editor.
you will need to give each system a static IP address instead of using DHCP.
The hosts file will look something like this:
# hosts file for home network system
192.68.1.1 router.homedomain router
192.168.1.101 pc1.homedomain pc1
192.168.1.110 pc2.homedomain pc2
Each machine on the network must contain this file, and the addresses must be
exact. You can use a different sequence of address, but they must all be on
the same subdomain.
Mark
More information about the kubuntu-users
mailing list