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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newby help with dhcpd

Status
Not open for further replies.

bedrock

Programmer
Nov 6, 2002
94
US
im trying to set up an internal net on a redhat linux 8.0 machine, the external ip is recieved from dhcp from my isp on eth0, and internal is set up on eth1 with the following:

ip: 192.168.10.255
subnet: 255.255.255.0
gateway: 192.168.10.255

here is my dhcpd.conf file:

# begin dchpd.conf
#
ddns-update-style interim;

# command line vars
DHCPDARGS=eth1;

subnet 192.168.10.0 netmask 255.255.255.0{
# options and parameters
default-lease-time 600;
max-lease-time 7200;
range 192.168.10.1 192.168.10.16;
option broadcast-address 192.168.10.255;
option domain-name-servers 204.127.202.4,
216.148.227.68;

option time-offset -21600;

}
#eof

my windows machines are not getting an ip. are there other services i need running or have i misconfigured the dhcpd.conf file? what about ip masquerading? how should eth1 be set up? any help would be appreciated

(also posted in dns/bind/dhcp issues thread)
 
Hi,

You can't have an IP address ending with 255 - that would be the broadcast address for that subnet. Change the IP address o f eth1 to .254.

Also, the gateway of eth12 should not be itself - you'll need to point it over to eth0 so any traffic not destined for the local subnet will go 'out'.

To set up the redhat box as a NATed gateway, enable ip_forward so traffic will route between both network cards. The use iptables or ipchains to MASQ the eth1 subnet behind the IP address of eth0 (there's loads of resources on the net for this).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top