LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-24-2007, 11:27 AM   #1
dyer83
LQ Newbie
 
Registered: Jul 2007
Location: Leeds UK
Distribution: Fedora, XP pro, Ms 2003
Posts: 22

Rep: Reputation: 15
Fedora 7 DHCP Config


Hi I am very new to Fedora systems; I am trying to set up my first home network. I would like to know how to configure my fedora 7 systems to be my gateway device working as my DHCP, DNS, File sharing, and NAT.

My home network is having both Microsoft and Linux users and a network printer. So I need my fedora system to be able to communicate to all of these devices and any new device that is added to the network in the future.

If anyone knows of any good website or where I can find some good instructions on how to set up and secure my fedora Server please help me if you can!!!!!!

Thank you!!!!


 
Old 07-25-2007, 07:46 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by dyer83
Hi I am very new to Fedora systems; I am trying to set up my first home network. I would like to know how to configure my fedora 7 systems to be my gateway device working as my DHCP, DNS, File sharing, and NAT.

My home network is having both Microsoft and Linux users and a network printer. So I need my fedora system to be able to communicate to all of these devices and any new device that is added to the network in the future.

If anyone knows of any good website or where I can find some good instructions on how to set up and secure my fedora Server please help me if you can!!!!!!

Thank you!!!!


Hi,
You have multiple tasks to achieve.
DHCP
DNS
filesharing
NAT

Since your machine would be a gateway to all other machines in your network so configure "shorewall" on your fedora box. It will make other machine access internet through fedora box. NAT would be part of this.

For filesharing...since you have both, linux as well as windows, so will have to configur NFS and samba.
NFS for filesharing between linux machines and samba for filesharing between linux and windows machine.

so pick your tasks one by one and search in this forum and google for help.

regards
 
Old 07-27-2007, 03:33 AM   #3
dyer83
LQ Newbie
 
Registered: Jul 2007
Location: Leeds UK
Distribution: Fedora, XP pro, Ms 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ruudra
Hi,
You have multiple tasks to achieve.
DHCP
DNS
filesharing
NAT

Since your machine would be a gateway to all other machines in your network so configure "shorewall" on your fedora box. It will make other machine access internet through fedora box. NAT would be part of this.

For filesharing...since you have both, linux as well as windows, so will have to configur NFS and samba.
NFS for filesharing between linux machines and samba for filesharing between linux and windows machine.

so pick your tasks one by one and search in this forum and google for help.

regards
i have downloaded dhcp -3.0.6nalong with kcmdhcpd-0.3.8 to get the kde gui end of the dhcp server but can't get the gui or the command line to work the gui would not open and the commands that i got from google keeps giving me errors. please help if you can!!!!
 
Old 07-27-2007, 07:19 AM   #4
dyer83
LQ Newbie
 
Registered: Jul 2007
Location: Leeds UK
Distribution: Fedora, XP pro, Ms 2003
Posts: 22

Original Poster
Rep: Reputation: 15
DHCP not working!!!!!

Quote:
Originally Posted by dyer83
i have downloaded dhcp -3.0.6nalong with kcmdhcpd-0.3.8 to get the kde gui end of the dhcp server but can't get the gui or the command line to work the gui would not open and the commands that i got from google keeps giving me errors. please help if you can!!!!
here are my two network card information:
[root@Fedora-Server etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0BB:4D:5A:99
inet addr:160.9.94.68 Bcast:160.9.95.255 Mask:255.255.252.0
inet6 addr: fe80::20b:dbff:fe4d:5a99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:477 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:86219 (84.1 KiB) TX bytes:15094 (14.7 KiB)
Base address:0xdc40 Memory:ff6c0000-ff6e0000

eth1 Link encap:Ethernet HWaddr 00:01:02:AB:60:E9
inet addr:192.168.1.0 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:feab:60e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:356 errors:0 dropped:0 overruns:1 frame:0
TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:96031 (93.7 KiB) TX bytes:71721 (70.0 KiB)
Interrupt:20 Base address:0xcc00
here is my dhcp config file:

default-lease-time 86400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "wmd.org";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}
option netbios-name-servers 192.168.1.1;

i can't get any of my windows or linux client computers to receive an ip address from the server. i do not know what have gone wrong or if there more configurations to be done. this is my first time at setting a dhcp server on Fedora/linux!!! there are no error messages comping up only after i use the command "[root@Fedora-Server etc]# /usr/sbin/dhcpd eth1" the following message comes up;

Internet Systems Consortium DHCP Server V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

** You must add a global ddns-update-style statement to /etc/dhcpd.conf.
To get the same behaviour as in 3.0b2pl11 and previous
versions, add a line that says "ddns-update-style ad-hoc;"
Please read the dhcpd.conf manual page for more information. **

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.

I have also set the dhcp server to start at start up using code "[root@Fedora-Server etc]# /usr/rc.d/rc.local
" the DHCP server is set to work on eth1 NIC, i have full access to the web on eth0 NIC. please help
 
  


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
dhcp config pingvina Linux - Software 4 02-16-2006 02:03 PM
config dhcp server meysam39 Linux - Networking 1 08-07-2005 10:16 AM
DHCP config problems Fritz_Monroe Linux - Newbie 7 06-16-2005 01:23 PM
Where can I find Fedora Core 2's DHCP servers config file? tlawlessrr Fedora 2 07-29-2004 11:08 PM
DHCP config. problems on RH 7.0 batchild Linux - Networking 5 05-19-2003 10:14 PM

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

All times are GMT -5. The time now is 05:16 PM.

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