DHCP Server and options

Hi,

Mabe somebody have discussed about this in a previous topic, but how can I add some options checkup before allocate an IP address? I dont have found any subject on this.

Secondly, it is possible that the DHCP Server didn’t send the specific options requested?

This is the debug log.

Discover:
01:01:19 dhcp,debug,packet DHCP_SERVER_V3R_AP received discover with id 1057151020 from 0.0.0.0
01:01:19 dhcp,debug,packet ciaddr = 0.0.0.0
01:01:19 dhcp,debug,packet chaddr = xx:xx:xx:xx:xx:xx
01:01:19 dhcp,debug,packet Msg-Type = discover
01:01:19 dhcp,debug,packet Client-Id = XX-XX-XX-XX-XX-XX
01:01:19 dhcp,debug,packet Class-Id = “blablabla CPE”
01:01:19 dhcp,debug,packet Unknown(57) = 02-40
01:01:19 dhcp,debug,packet Parameter-List = Subnet-Mask,Unknown(2),Router,Domain-Server,Host-Name,Domain-Name,Unknown(28),NTP-Server,Vendor-Specific,NETBIOS-Name-Server

The DHCP Server as configured like this:

name=“DHCP_SERVER_V3R_AP” interface=VID24_V3R_MGMT lease-time=30m
address-pool=DHCP_IPPOOL_V3R_AP bootp-support=static
authoritative=after-2sec-delay lease-script=“”

And the Network
0 address=172.17.0.32/28 gateway=172.17.0.33 netmask=28 dns-server=172.17.0.33
wins-server=“” ntp-server=172.17.0.33 caps-manager=“”
domain=“blablalba.net” dhcp-option=“” [flash=]dhcp-option-set=OPTIONS_AP[/flash]

01:01:19 dhcp,debug,packet DHCP_SERVER_V3R_AP sending offer with id 1057151020 to 172.17.0.56
01:01:19 dhcp,debug,packet ciaddr = 0.0.0.0
01:01:19 dhcp,debug,packet yiaddr = 172.17.0.56
01:01:19 dhcp,debug,packet siaddr = 172.17.0.33
01:01:19 dhcp,debug,packet chaddr = XX:XX:XX:XX:XX:XX
01:01:19 dhcp,debug,packet Msg-Type = offer
01:01:19 dhcp,debug,packet Server-Id = 172.17.0.33
01:01:19 dhcp,debug,packet Address-Time = 1800
01:01:19 dhcp,debug,packet Domain-Server = aa.bb.cc.dd
01:01:19 dhcp,debug,packet NTP-Server = 172.17.0.33

:open_mouth: The offer as been sent without the Netmask, Gateway and all my configured stuff? :confused:

I’ve configured the Domain Name as blablabla.net and it’s not offered. Gateway aren’t sent and Network-Mask too. But the NTP is sent.

01:01:19 dhcp,debug,packet DHCP_SERVER_V3R_AP received request with id 1057151020 from 0.0.0.0
01:01:19 dhcp,debug,packet ciaddr = 0.0.0.0
01:01:19 dhcp,debug,packet chaddr = XX-XX-XX-XX-XX-XX
01:01:19 dhcp,debug,packet Msg-Type = request
01:01:19 dhcp,debug,packet Client-Id = XX-XX-XX-XX-XX-XX
01:01:19 dhcp,debug,packet Class-Id = “abcd CPE”
01:01:19 dhcp,debug,packet Address-Request = 172.17.0.56
01:01:19 dhcp,debug,packet Server-Id = 172.17.0.33
01:01:19 dhcp,debug,packet Parameter-List = Subnet-Mask,Unknown(2),Router,Domain-Server,Host-Name,Domain-Name,Unknown(28),NTP-Server,Vendor-Specific,NETBIOS-Name-Server

01:01:19 dhcp,debug,packet DHCP_SERVER_V3R_AP sending ack with id 1057151020 to 172.17.0.56
01:01:19 dhcp,debug,packet ciaddr = 0.0.0.0
01:01:19 dhcp,debug,packet yiaddr = 172.17.0.56
01:01:19 dhcp,debug,packet siaddr = 172.17.0.33
01:01:19 dhcp,debug,packet chaddr = XX-XX-XX-XX-XX-XX
01:01:19 dhcp,debug,packet Msg-Type = ack
01:01:19 dhcp,debug,packet Server-Id = 172.17.0.33
01:01:19 dhcp,debug,packet Address-Time = 1800
01:01:19 dhcp,debug,packet Domain-Server = aa.bb.cc.dd
01:01:19 dhcp,debug,packet NTP-Server = 172.17.0.33

So the processus are completed with all the options. To define a controler I have to send the options 43.3 at 172.17.0.2.

The RAW Data I’ve to send is 0x030AAC110002 + mabe FF to complete the frame.

It’s not offered and I’ve define it into my option set.

Did I missed something?

Thanks