Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a computer running Red Hat. I would like to host a HTTP server on it. This server has only a WIFI interface.

How to configure a DHCP server on it?

The configuration file (/etc/dhcpd.conf) looks like:

subnet 220.9.181.0 netmask 255.255.255.0 {
        option domain-name              "example.com";
        option domain-name-servers       220.9.181.220;

        option time-offset              -18000;     # Eastern Standard Time

    range 220.9.181.221 220.9.181.225;
}

I have restarted the DHCP service many times but with no result. How to specify that the interface is not eth0 but wlan0?

share|improve this question

closed as off topic by HopelessN00b, Michael Hampton, mdpc, Dan, RobM Mar 19 '13 at 15:44

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
8  
That's almost 20 years old. What you should do is get rid of it. –  Michael Hampton Mar 19 '13 at 15:01
    
@MichaelHampton Or donate it to a museum. –  HopelessN00b Mar 19 '13 at 15:03
    
@MichaelHampton Only 12 years old :) –  Maxbester Mar 19 '13 at 15:03
    
Still, it's much too old to be allowed anywhere near a network. –  Michael Hampton Mar 19 '13 at 15:03

1 Answer 1

The interface is determined by the subnet.

If your wlan0 adapter is in the 220.9.181.0 it should "just work".

That's not an internal IP range however, so I'm thinking it's either misconfigured or your running a rather advanced configuration (one only people who really, really know what they're doing should be running).

share|improve this answer
    
Ok thanks for the tip. I think I have found a problem. The DHCP may not be installed correctly. service dhcpd status returns nothing. What could I do? –  Maxbester Mar 19 '13 at 15:08
    
@Maxbester Is the DHCP daemon actually running? It's possible that there is no status action defined in the RC script... –  voretaq7 Mar 19 '13 at 15:13
    
Well it seems that it doesn't run. Nothing in ps aux –  Maxbester Mar 19 '13 at 15:21
    
'service dhcpd start'? Probably need to check /var/log/messages for any errors if it's not starting. –  scottm32768 Mar 19 '13 at 15:34
    
Nothing in logs but it doesn't start... –  Maxbester Mar 19 '13 at 15:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.