Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have 2 computers connected via a router, and both are using dhcp (funnily enough), the problem is that they both continually change their ip adresses. Thus I am unable to setup nfs servers .etc, I am having problems setting up hostnames for the computers (no clue).
lye@laptop:~> ping shop.jy
ping: unknown host shop.jy
lye@laptop:~> ping laptop.jy
PING laptop.jy (192.168.1.2) 56(84) bytes of data.
not internally, no it doesn't. for your modem, sure... but your internal network can be administrated in a different manner.
hop onto your modem's / router's / whatever's config page, and you should see a dhcp client range. then you pick addresses outside that range but still under the network mask to set static IPs
now your endpoint ("modem") has external IP. it has the option of hanging onto that, or passing it to your router. your router then has either an internal ip in adress space x, or an external ip (on the "Internet" side), and an internal ip in address space y (on your personal network side)
your personal network can be assigned either statically or dynamically. dynamic addresses are usually given a slice of the namespace by the dhcp server -- so say your dhcp server is configured to use 192.168.0.0/255.255.255.0 they usally also allow for you to say something like: "start dynamic IPs at 100"
meaning: 192.168.0.100 - 192.168.0.255 are possible dynamic addresses, and <192.168.0.100 are possible static addresses.
see where i'm going?
given the above constraints, and knowing that you want static addresses, you would then just configure your PCs to use static IPs within the address space <192.168.0.100/255.255.255.0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.