DHCP not assigning Addresses

i am using Redhat 8.0 as a gateway and can't get clients an IP address.

I am running up to date dhcpd, the service is started and configured. here is dhcpd.conf:

subnet x.x.x.x netmask 255.255.255.0 { }
 # where x.x.x.x is the static, public IP assigned to external interface eth0

ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.2 192.168.0.60;
        default-lease-time 86400;
        max-lease-time 86400;
        get-lease-hostnames on;
        option routers 192.168.0.1;
        option ip-forwarding on;
        option broadcast-address 192.168.0.255;
        option subnet-mask 255.255.255.0;
        option domain-name-servers m.m.m.m, n.n.n.n;
 #where m and n represent ns1 and ns2

}


i added route 255.255.255.255 dev eth0
and route 255.255.255.255 dev eth1
tried both, either and neither.

current route tables looks like:
255.255.255.255 *               255.255.255.255 UH    0      0        0 eth1
255.255.255.255 *               255.255.255.255 UH    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
x.x.x.0   *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         rtr1080-07-vl18 0.0.0.0         UG    0      0        0 eth0


dhcpd daemon set at eth1

sooo if i assign an IP address to a client .... say 192.168.0.3 and input gw address 192.168.0.1 and name servers, there is no problem. But if I assign same gateway address and name servers but say get IP automatically, i get squat.I will post my iptables if you think they are necessary but the packets do get routed and the internet works as expected when an IP is assigned.

whats up?

thank you.
weazyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sir_giatayCommented:
subnet x.x.x.x netmask 255.255.255.0 {
       option routers x.x.x.y;
# your ISP gateway
 }

x.x.x.y is the gateway of eth0
0
mburdickCommented:
See my comments in http://www.experts-exchange.com/Networking/Linux_Networking/Q_20559199.html as there is a lot there that may be pertinent to you as well.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
weazyAuthor Commented:
mburdick,

like the user you were trying to help I am able to get folks on the net when they insert the private network ip i.e. 192.168.0.x they connect no problem, use DHCP and it doesn't work. even after the changes you proposed.

ipconfig /all on the windows box shows the dhcp server address as 255.255.255.255 does that have a bearing?
0
mburdickCommented:
On the RedHat system, open a command window and do "service iptables stop". Then, try to obtain a DHCP address from a client machine.

If you still can not get an address on the client machine, there is a problem with the configuration of your DHCP server. To make sure that the server is running, and on the proper interface, do the following:

ifconfig -a

Look through the list of interfaces and determine the name of the interface that is on the Inside of your network. Make sure that the interface has an IP address. Then do:

ps -ef |grep dhcpd

Make sure that it shows the same interface name as the interface on the Inside of your network.

##################

If you *can* get an address after turning off IPTABLES, you need to open the appropriate "hole" in the firewall to allow DHCP requests through.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.