LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-28-2010, 03:14 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,193

Rep: Reputation: Disabled
Question Building LAN using DHCP


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?
 
Old 07-28-2010, 03:28 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 07-28-2010, 07:20 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,193

Original Poster
Rep: Reputation: Disabled
Quote:
You will need to configure your hosts to use DHCP.
In "/etc/network/interfaces"?
 
Old 07-28-2010, 09:23 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 07-28-2010, 10:16 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,193

Original Poster
Rep: Reputation: Disabled
I don't trust GUI "wizard"...
 
Old 07-28-2010, 10:20 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Quote:
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.

Code:
autho eth0 lo
iface eth0 inet dhcp
HTH
 
1 members found this post helpful.
Old 07-28-2010, 10:43 AM   #7
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,193

Original Poster
Rep: Reputation: Disabled
Thanks!
 
  


Reply

Tags
client, dhcp, dhcpd, lan, network, server


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help building a LAN backup server running RH 7.2 tommygee Linux - Server 3 09-08-2008 08:25 AM
Need Help Building Small Office DNS / DHCP Server Popsicle-Pete Linux - Networking 2 09-02-2008 04:23 PM
Building lan driver help exallon Linux - Newbie 4 03-18-2007 05:24 AM
DHCP packet building payal_shah Linux - Networking 1 12-22-2004 10:58 AM
Network broken after building kernel, DHCP markjuggles Linux - Newbie 1 12-17-2003 12:24 AM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration