1

I'd like to know how could I get the MAC-IP DHCP associations.

I know that there is show dhcp leases but it only shows information about the active leases.

mariosangiorgio
  • 127
  • 2
  • 7

1 Answers1

4

You are looking for the static mapping. This is part of your configuration, not part of a dynamically generated files. You can get it with :

show service dhcp-server

You can also see additional informations in

ls /var/lib/dhcp3/*
CloudWeavers
  • 2,511
  • 1
  • 14
  • 17
  • Actually I want that the association is not static but made the first time the clients requests an IP address. – mariosangiorgio Dec 09 '12 at 19:40
  • 1
    And how is that different from the active leases? Those are client requests for an IP addresses which has been attributed... – CloudWeavers Dec 09 '12 at 20:04
  • The difference is that if I have a client that is not currently connected it does not appear in the active leases. But, apparently, the MAC-IP binding is stored somewhere as it connects he gets the IP address it previously had. – mariosangiorgio Dec 10 '12 at 00:26
  • I added the dhcp3 persitent lease folder. – CloudWeavers Dec 11 '12 at 11:24