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.
Machine A: 192.168.0.1 fixed address. Red hat 8,
netmask 255.255.255.0
I have another machine with windows ( machine B ), for practice.
( machine B: 192.168.0.2 netmask 255.255.255.0 ). I want use DHCP
server for giving the clients any address. This net with fixeds
IP works ( thanks to all of you ).
You can use ANY ip adress you want, but you have to changethe "subnet" statement in dhcpd.conf... But for home networking, its standard to use 192.168.*.* or 10.*.*.*, since they are not valid on the Internet.
Your server could give itself an IP if you make your network-card searh for an DHCP server. When it times out without finding any DHCP server, it makes an IP itself. It sets netmask of 255.255.0.0, which means that your ip suddenly is 192.168.10.50 or even 192.168.180.210. The timeout is very slow, and if you are a busy person, this is not recommended.
Your subnet statement, your ip and netmask don't get along very well.. When your netmask is 255.255.255.0, the three first parts (192.168.0) must be equal to your servers IP. If your netmask is 255.255.0.0, the two first parts must be equal (192.168).
Netmask is the top leader, saying how many computers that are allowed on your LAN. It decides when to use a geteway, telling if a computer is out on the Internet or one your LAN. If your netmask is 255.255.255.0, your ip is 192.168.0.1 and your computer is trying to find the computer having the IP 192.168.52.10, it automaticly will try to find this computer on the internet through the default gateway (three first parts does not match). If it tries to find the ip 192.168.0.50 however, it does not search through any gateway.
(Maybe not what you asked for, but telling you anyway.).
This configuration should work (include that other stuff to!!):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.