LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-10-2011, 08:07 AM   #1
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Rep: Reputation: Disabled
DHCP configure


I have install Linux redhat as server and WinXP as client in VMWare workstation6
the linux server must be statically assigned an ip address in the segment 192.168.0.0/24 with the windows client being able to communicate with the server.
A DHCP server should be running on the linux box leasing addresses to the local segment.... i had Successfully Download packages of dhcp then what to do??
 
Old 12-10-2011, 05:31 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Well

If you are not a DHCP admin, and cannot work through the tutorials and man pages (available online, you can find them through google), then I would NOT run dhcpd.

DNSMASQ is far easier, smaller, faster than dhcpd, and (by default) reads from your current resolv.conf and hosts files for initial addressing. Using it as a DHCP server does require a little configuration (only a couple of lines) but it then not only does the DHCP part, but caches the results of DNS queries to the external DNS server, resulting in far fewer DNS requests going outside your home network. This speeds up your apparent browsing speed on all machines slightly.
It does not scale to a corporate multi-subnet network as well as DHCPD, but is superior for smaller networks.
 
Old 12-11-2011, 12:12 AM   #3
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Thank U alots
I am the Admin, I'll use yum command as root.
I need to use DHCP becouase A DNS configure to use the IPv4 address, and Dnsmasq supports IPv6 for DNS and TFTP as I Know


regards....
 
Old 12-11-2011, 12:34 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
I would suggest reading the man pages for dhcpd.conf and dhcpd.

Assuming you have an understanding of what DHCP is, and roughly how it works, there is enough information in the man pages to get DHCP working quiet well.

Failing that, I would look for tutorials online. On both how DHCP works, and how to implement it..

If you have specific questions feel free to ask, but forums aren't really the go to place for How-to's.
 
Old 12-11-2011, 03:20 AM   #5
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hi all
aftar I download the packages and it's complete
what are the command should I use to install and run DHCP
vi /etc/dhcp/dhcpd.conf
it will give me
/usr/shar/doc/dhcp*/dhcp.conf.sample


what I should do after that?
 
Old 12-11-2011, 07:16 AM   #6
l532566739
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
/usr/shar/doc/dhcp*/dhcp.conf.sample is help file and you can reference http://www.askdavetaylor.com/how_do_...ux_server.html
 
Old 12-11-2011, 12:52 PM   #7
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
hi all
thank U for reply

But I still have problems
on the terminal as a root
I have install the DHCP package using yum server
permanentiy start the dhcp server
then write the configuration file
when I try to restart the dhcp its falied
and I am not understand where is the problem
ones again I work on Linux redhat as server and WinXP as client in VMWare workstation6 to mack a network btween them...

regards
Asila
 
Old 12-11-2011, 05:58 PM   #8
l532566739
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
cp /usr/share/doc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf
then service dhcpd restart
 
Old 12-11-2011, 11:09 PM   #9
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
Instead of using the init scripts.
Run dhcpd from the commandline in the foreground.

Code:
dhcpd -f -cf /your/dhcpd.conf
Which will show you the most likely errors in your config file.
 
Old 12-12-2011, 04:53 AM   #10
Asila
LQ Newbie
 
Registered: Dec 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
Hi all
I'm new in using Linux
So I'm having problems

this is my task that I have
the Linux server must be statically assigned an IP address in the segment 192.168.0.0/24 with the Windows client being able to communicate with the server. A DHCP server should be running on your Linux box leasing addresses to the local segment.

A DNS name resolution system for resolving addresses. The DNS server must perform forward and reverse lookup operations. Name resolution should be configured to use the above IP addresses and not the localhost (127.0.0.1).

A postfix mail server must be configured for the local segment including account(s) creation and mailboxes for at least TWO user accounts
 
Old 12-12-2011, 08:50 PM   #11
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Hey Asila

Not sure where you got your information, but just so you know...
The latest DHCPD supports both IPV4 and IPV6.
The latest BIND supports both IPV4 and IPV6.
The latest DNSMASQ supports IPV6 I believe, and ALL versions support IPV4.

If you are using an IPV4 subnet, that alone is not a reason to rule any one or combination out.
 
  


Reply



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
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
Help to configure dhcp vijeesh_ep Linux - Networking 1 12-15-2004 05:24 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
how to configure DHCP farhan Linux - General 3 05-02-2003 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration