-2

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?

Maxbester
  • 101
  • 5

1 Answers1

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).

Chris S
  • 77,337
  • 11
  • 120
  • 212