DHCP server - client not seeing it?

Discussion in 'Server Operation' started by unclecameron, Jan 15, 2008.

  1. unclecameron

    unclecameron New Member

    I'm running a CentOS DHCP server on a permiter box with eth0 facing public and eth1 facing inside the LAN for a bunch of NAT'ed machines. My clients don't pick up a DHCP lease, but if I config static, they see the DHCP server interface. My dhcpd.conf shows:
    =======================
    ddns-update-style none;
    ignore client-updates;
    DHCPARGS="eth1"
    subnet 192.168.0.0 netmask 255.255.255.0 {
    option routers 192.168.0.1; #local gateway
    option subnet-mask 255.255.255.0; #local subnet mask
    option nis-domain "domain.org";
    option domain-name "domain.org"; #domain name given to client
    option domain-name-servers 209.242.10.10;
    option time-offset -18000; # Eastern Standard Time
    range 192.168.0.128 192.168.0.254;
    default-lease-time 21600;
    max-lease-time 43200;
    host ns {
    next-server ns1.cox.net;
    hardware ethernet 12:34:56:78:AB:CD;
    fixed-address 209.242.10.10;
    }
    }
    ===================
    my ifcfg-eth1 shows:
    ===================
    TYPE=Ethernet
    DEVICE=eth1
    HWADDR=00:1a:a0:37:26:e3
    BOOTPROTO=none
    NETMASK=255.255.255.0
    IPADDR=192.168.0.1
    ONBOOT=yes
    USERCTL=no
    IPV6INIT=no
    PEERDNS=yes
    ===========
    I've added a route of:
    ===========
    route add -host 255.255.255.255 dev eth1
    ===========
    when I tail -f /var/lib/dhcpd/dhcpd.leases I don't see anything when the other box is trying to negotiate. My firewall is disabled (for troubleshooting this part). Do I need to do something with the GATEWAYDEV in ifcfg-eth1?
     
  2. unclecameron

    unclecameron New Member

    Solved!

    removed quotes on

    DHCPARGS="eth1"

    now it works :)
     

Share This Page