ISC dhcpd with option 82 doesn't lease IP addresses
Hello All,
My Goal: Configure ISC DHCPD to lease IP Addresses based on option 82.
Relay Agent: CISCO 3640 with NM-16ESW module.
DHCP server: ISC DHCPD. I installed it on Ubuntu by apt-get.
Does the option 82 is already integrated in dpkg package?
Steps I have made:
1. Set up Relay Agent on CISCO.
Switch# configure terminal
Switch(config)# service dhcp
Switch(config)# ip dhcp relay information option
Switch(config)# interface vlan 1
Switch(config-if)# ip address 10.0.0.1 255.0.0.0
Switch(config-if)# ip helper-address 30.0.0.2
2. Sniff the dhcp requests after CISCO switch.
The switch add option 82 information to request.
Agent Remote ID = 020a00000a0a0a0591000001
What does mean this number? How I can change it?
3.Configured ISC DHCP server file /etc/dhcp3/dhcpd.conf.
For matching I used such condition:
match if binary-to-ascii (16, 8, "", option agent.remote-id) = "020a00000a0a0a0591000001";
How does work binary-to-ascii function?
Result:
Matching criteria doesn't work.
Please give me any suggestions how I can resolve this issue.
Best Regards
|