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 been trying to configure the isc-dhcp-server package to assign ip addresses to devices connected to my eth1 adapter.

Current Configuration interfaces:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.2.1
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255

dhcpd.conf:

ddns-update-style none;
subnet 192.168.2.0 netmask 255.255.255.0 {
    option domain-name "Network 1";
    option domain-name-servers 203.12.160.35, 203.12.160.36;
    option routers 192.168.2.254;
    default-lease-time 42300;
    max-lease-time 84600;
    range 192.168.2.100 192.168.2.200;
}
authoritative;
log-facility local7;

After rebooting the server and ensuring that the isc-dhcp-server is running I plug my Win7 machine into eth1, however it fails to identify the network and get the assigned values from the server.

The only thing I can think of that does not match the standard configuration is that I have 3 ethernet interfaces in total eth0, eth1, eth2 (I am only using eth0 & eth1 currently) and eth0 is connected to a seperate network.

Can anyone tell me why I cannot get the isc-dhcp-server package working?

UPDATE(/etc/default/isc-dhcp-server):

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#   Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eht1"
share|improve this question
    
What do you have in the file /etc/default/isc-dhcp-server? –  Zoredache Aug 11 '12 at 5:42
    
Updated the question with it. –  Alex Hope O'Connor Aug 12 '12 at 7:32
1  
Is the typo eht1 part of it? –  Alan Curry Aug 12 '12 at 7:48
    
Yeah the type.... so silly of me to miss that. Thanks heaps. –  Alex Hope O'Connor Aug 12 '12 at 10:13
add comment

1 Answer

You may need the following line in your dhcpd.conf in the subnet block.

interface eth1;

This helps the dhcp server to bind and respond on this specific interface.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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