Dhcp server?

Zachman

n00b
Joined
Jan 30, 2004
Messages
20
I'm using a router for dhcp, but I want my dhcp server to assign a specific scope of ip address'. The router assigns 192.168.1.2-192.168.1.50 and I want the dhcp server to assign the range 192.168.1.53-192.168.1.80. I have two Nics and I'm using eth1 as the interface, but I can't get dhcpd to run. I'm using a static address of 192.168.1.90 for the dhcp server and I've configured my dhcpd.conf file, but it's telling me that I need to declare the subnet for my static address. Anyone have any suggestions on why dhcp3-server will not run?
 
It wouldnt matter if it did. Clients would grab an ip from the first DHCP server that responded. You don't run two DHCP servers on the same network.

As for your issue. It appears that you have not specified a subnet mask in the conf file. A common one to use is 255.255.255.0
 
Dew said:
It wouldnt matter if it did. Clients would grab an ip from the first DHCP server that responded. You don't run two DHCP servers on the same network.

As for your issue. It appears that you have not specified a subnet mask in the conf file. A common one to use is 255.255.255.0

I specified a subnet mask,but it still won't run. The static address is on the same subnet that I specified in the dhcpd.conf file.
 
Zachman said:
Anyone have any suggestions on why dhcp3-server will not run?

Any reason why you can't change the dhcp scope in the router to give out the addresses you want?
 
SJConsultant said:
Any reason why you can't change the dhcp scope in the router to give out the addresses you want?
It can, but I'm trying to get a linux server running for testing purposes.
 
Zachman said:
It can, but I'm trying to get a linux server running for testing purposes.

Just be aware that having two DHCP servers will mean you will have unexpected results depending on which DHCP server responds to client workstations first.
 
Code:
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers                  192.168.1.254;
        option subnet-mask              255.255.255.0;

        option domain-name              "mydomain.com";
        option domain-name-servers       192.168.1.253;

        range 192.168.1.53 192.168.1.80;
}
There is a quick dhcpd.conf file...that should work for you just change things like routers to your gateway and domain-name-servers to your dns server.
 
Stinn said:
Code:
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers                  192.168.1.254;
        option subnet-mask              255.255.255.0;

        option domain-name              "mydomain.com";
        option domain-name-servers       192.168.1.253;

        range 192.168.1.53 192.168.1.80;
}
There is a quick dhcpd.conf file...that should work for you just change things like routers to your gateway and domain-name-servers to your dns server.
I tried using that setup, but it's still not working. When I type ifdown eth1, the dhcp/dhcpd server starts up. Why is this?
 
Back
Top