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.
Do I undersatnd correct?
If you build LAN with several Linux PCs and no DHCP server, you will need to configure every computer yourself. But if you add one more PC to this LAN which is DHCP server, all you need is to configure this DHCP server and write in config files of other computers to use DHCP, network will work without configuring other computers? Right?
You will need to configure your hosts to use DHCP. At home, I use the DHCP server on my router, but have manually mapped the IP/MAC address in the router so that each computer gets the same IP address each time. This allows me a use an /etc/hosts file. With only a few hosts, this allows me to use the /etc/hosts file for LAN name resolution instead of using DNS, dnsmasq or Avahi.
I don't use Ubuntu. Either there, or /etc/sysconfig/networking/ifcfg-eth0. Ubuntu should have a graphical configuration wizard to configure the network. That would be the easiest way of doing it.
Do I undersatnd correct?
If you build LAN with several Linux PCs and no DHCP server, you will need to configure every computer yourself. But if you add one more PC to this LAN which is DHCP server, all you need is to configure this DHCP server and write in config files of other computers to use DHCP, network will work without configuring other computers? Right?
Yes you are right. If you are using DHCP server in network then it will serve network configuration(ip,netmask,dns etc..) to other computer.
Quote:
Quote:
You will need to configure your hosts to use DHCP.
In "/etc/network/interfaces"?
yes in ubuntu/debian this is a network configuration file
you need to tell computer use DHCP server to receive ip.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.