Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP server 1

Status
Not open for further replies.

RandyRiegel

Programmer
Joined
Sep 29, 2003
Messages
256
Location
US
I currently run Fedora Core 2 server at on my home network. I have my DSL connection on eth0 and my local network connected to eth1. I would like all the machines connected to my local network to obtain their IP address from the linux machine. I enabled dhcpd on the server but if I try to tell my Windows machine to obtain IP address dynamically I get some IP address that has nothing in common with server address.


LAN IP (eth1) : 192.168.1.1
I want the client get an address like 192.168.1.xxx

Randy

 
you need to edit the /etc/dhcpd.conf file. Here is what mine looks similiar 2

# dhcpd.conf
#
# Configuration file for dhcpd
#

deny client-updates;
ddns-update-style interim;

# Configuration for the main range
subnet 192.168.1.0 netmask 255.255.255.0
{
authoritive;
range 192.168.1.100 192.168.1.200;
default-lease-time 86400;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
option domain-name-servers 151.204.50.8, 151.198.0.68;
option domain-name "home.com";
}

# EOF

Remeber to change the router to your gate way and and the dns servers to your isp dns servers and then when all the pcs grab a dhcp ip from you, they will be set up automatically (thier dns that is).
 
Do also consider modding your routing tables/firewall to block any local DHCP requests from routing through to the ISP. I presume that the "unrelated" IPs assigned were from DHCP on the ISP.

 
How do i change the routing tables / firewall to do this? I am using Firestarter firewall. Is there a certain port that DHCP uses?

Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top