Issue with DHCP Server, multiple relays, shared subnet and log reporting via eth0

Matt Jenkins matt at smarterbroadband.net
Mon Nov 24 21:52:48 UTC 2014


Let me start by saying everything actually works. However I don't get 
the results in the log that I would expect which makes troubleshooting 
issues difficult.

I have a central DHCP server for multiple VPLS shared subnets. The 
remote routers use a 10.0.x.1 IP as their relay IP. This gets matched in 
the subnet statements and then the correct pool is used. Ultimately the 
end device gets a proper IP and it gets recorded in leases. However the 
entry in the dhcpd.log says the IP was handed out via eth0 instead of 
via the relay IP like 10.0.55.1. Anyone know how to get it to say via 
10.0.55.1 or 10.0.48.1 so I know which router actually processed this 
request?

Log entry:

Nov 24 13:42:37 DHCP dhcpd: DHCPREQUEST for 173.195.187.221 from 
00:50:7f:c1:b3:49 via eth0
Nov 24 13:42:37 DHCP dhcpd: DHCPACK on 173.195.187.221 to 
00:50:7f:c1:b3:49 via eth0


#Same Shared Network
shared-network "VPLS-55" {
         subnet 10.0.55.0 netmask 255.255.255.0 {
         }
         subnet 10.0.48.0 netmask 255.255.255.0 {
         }
         subnet 10.0.56.0 netmask 255.255.255.0 {
         }
         subnet 10.0.2.0 netmask 255.255.255.224 {
         }
         # VPLS 55 Public Range
         subnet 173.195.187.0 netmask 255.255.255.0 {
                option broadcast-address 173.195.187.255;
                 option routers 173.195.187.1;
                 option subnet-mask 255.255.255.0;
                 pool {
                         allow members of "Canopy";
                         allow all clients;
                         range 173.195.187.220 173.195.187.224;
                         range 173.195.187.226 173.195.187.232;
                         range 173.195.187.234 173.195.187.254;
                         }
                 }
}


More information about the dhcp-users mailing list