agent.circuit-id not logging for cisco 2960

Bryan_Coleman at dart.biz Bryan_Coleman at dart.biz
Thu Oct 11 16:52:02 UTC 2007


Here is what I have:

fedora core 7, linux kernel 2.6

tried the version that came with fedora version 3.0.5 and unpacked and 
built by hand and tried 3.0.6, both had the same results

in the dhcpd.conf file:

if exists agent.circuit-id {
  log(info, concat("Lease for ", binary-to-ascii(10, 8, ".", 
leased-address), " is connected to interface ",
                                 binary-to-ascii(10, 8, "/", suffix(option 
agent.circuit-id, 2)), " (add 1 to port number!), VLAN ",
                                 binary-to-ascii(10, 16, "", 
substring(option agent.circuit-id, 2, 2)),  " on switch ", 
                                 binary-to-ascii(16, 8, ":", 
substring(option agent.remote-id, 2, 6))));
 
  log(info, concat("Lease for ", binary-to-ascii(10, 8, ".", 
leased-address), " raw option-82 info is CID: ", 
                                 binary-to-ascii(10, 8, ".", option 
agent.circuit-id), " AID: ", 
                                 binary-to-ascii(16, 8, ".", option 
agent.remote-id))); 

  log(info, concat("Port ", binary-to-ascii(10, 8, "/", suffix(option 
agent.circuit-id, 2)))); 
}


Here is the scenario:

I have two switches, both cisco switches.  One is a 2950 and the other is 
a 2960.  I have two client devices, one on each switch.  I am trying to 
assign addresses based on switch/port layout.  I have another system 
running the dhcp server and is configured with the conf above of course 
with other things defined as well.  I can plug the server into either 
switch and the client on the 2950 will work just fine.  Meaning, I get the 
log message and the server sends the correct response containing the 
correct address.  The client on the 2960 sends its request and the server 
just logs "DHCPDISCOVER from <mac-addr> via eth0: network 10.1/16: no free 
leases".  I did a packet capture on the server system and the dhcp option 
82 information is being added to the packet by the switch.  However, the 
server is not logging the message as containing a agent.circuit-id field. 
It is like the server does not see the same packet.  I also tried 
switching clients, but that also did not work.


Please let me know if you need further information.  All help will be 
greatly appreciated.

Thanks,

Bryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20071011/9a8420e6/attachment.html>


More information about the dhcp-users mailing list