dhcpd handing out wrong gateway

Fredrik Björk fredrik.bjork at fiberdata.se
Thu Sep 8 23:01:56 UTC 2011


Hi!
 
You guys really got busy right away! Here is a bit more info. I'm not actually asking for help to debug config files, and that's why I didn't submit all of it in the first place. I'm more kind of interested in hearing from someone who has seen this before or has a hunch what could be wrong. Not that you effort isn't appreciated, it's just that I don't want you to have to spend time reading my configs looking for typos that I shoud have seen myself...
 
Here are the two shared-network declarations. As you can see, I've rearranged the order of the subnets (I normally have them in numeric order) to try to persuade dhcpd to stop handing out the wrong GW, but with no luck.
 
shared-network BSR3CPE {
        subnet 123.123.230.0 netmask 255.255.255.0 {
                option routers 123.123.230.1;
                pool {
                        range 123.123.230.40 123.123.230.254;
                        deny members of "16-6M-DHCP";
                        deny members of "Static00223a4e8017";
                }
                pool {
                        range 123.123.230.2 123.123.230.39;
                        allow members of "16-6M-DHCP";
                }
        }
        subnet 123.123.233.0 netmask 255.255.255.0 {
                option routers 123.123.233.1;
                max-lease-time 600;
                default-lease-time 600;
                pool {
                        range 123.123.233.65 123.123.233.254;
                }
# The below "SpecialX" were handed out to people who experienced the "gateway problem". Separate host declarations solved their problems!
host special {
hardware ethernet 00:19:99:a0:51:13;
option routers 123.123.233.1;
fixed-address 123.123.233.33;
}
host special2 {
hardware ethernet 00:21:91:ed:b3:bb;
option routers 123.123.233.1;
fixed-address 123.123.233.34;
}
host special3 {
hardware ethernet 00:25:9c:34:fc:55;
option routers 123.123.233.1;
fixed-address 123.123.233.35;
}
host special4 {
hardware ethernet 00:11:22:33:ef:ef:ef;  # Dummy. For future use...
option routers 123.123.233.1;
fixed-address 123.123.233.36;
}
        }
        subnet 123.123.231.0 netmask 255.255.255.0 {
                option routers 123.123.231.1;
                pool {
                        deny members of "Static001e6bec1635";
                        deny members of "Static00223a4e8017";
                        range 123.123.231.13 123.123.231.254;
                }
                pool { allow members of "Static001e6bec1635"; range 123.123.231.8 123.123.231.8; }
                pool { allow members of "Static00223a4e8017"; range 123.123.231.9 123.123.231.9; }
                pool {
                        allow members of "Static0018c022a3be";
                        range 123.123.231.10 123.123.231.10;
                }
        }
}

 
shared-network CASACPE {
        subnet 123.123.235.0 netmask 255.255.255.0 {
                option routers 123.123.235.1;
                include "/etc/dhcpd.static235";
                pool {
                        max-lease-time 600;
                        default-lease-time 600;
                        allow members of "MTA";
                        range 123.123.235.250 123.123.235.254;
                }
                pool {
                        max-lease-time 600;
                        default-lease-time 600;
                        allow unknown clients;
                        range 123.123.235.240 123.123.235.249;
                }
        }
        subnet 123.123.237.0 netmask 255.255.255.0 {
                option routers 123.123.237.1;
                pool {
                        max-lease-time 1200;
                        default-lease-time 1200;
                        deny members of "MTA";
                        deny unknown-clients;
                        range 123.123.237.2 123.123.237.254;
                }
        }
        subnet 123.123.238.0 netmask 255.255.255.0 {
                option routers 123.123.238.1;
                pool {
                        max-lease-time 1200;
                        default-lease-time 1200;
                        allow members of "MTA";
                        range 123.123.238.2 123.123.238.254;
                }
        }
}

 
There ARE a few include files and a total of some 3000 lines in the config. Most of it is cable modem groups to hand out correct filenames. One file declares static IPs for 123.123.235.x (see below for example). No other files mention 123.123.233 or 123.123.235 so I don't really think they're relevant.
 
sample from dhcpd file declaring static IPs:
 
class "5c353b152d59" { match if option agent.remote-id = 5c:35:3b:15:2d:59  and substring(option vendor-class-identifier,0,6) != "docsis" and substring(option vendor-class-identifier,0,4) != "pktc" ; }
pool {allow members of  "5c353b152d59" ; range 123.123.235.220 123.123.235.220;}

/Fredrik
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110909/a4b38e5c/attachment.html>


More information about the dhcp-users mailing list