Why is vendor option not being sent?

Matt Causey matt.causey at gmail.com
Sat Apr 2 03:01:38 UTC 2011


On Fri, Apr 1, 2011 at 7:51 AM, John Hascall <john at iastate.edu> wrote:
>
> Config excerpt:
>
> option space CiscoLWAP;
> option CiscoLWAP.controller code 241 = ip-address;
> class "CiscoLWAP-c1500" {
>  match if option vendor-class-identifier = "Cisco AP c1500";
>  option vendor-class-identifier "Cisco AP c1500";
>  vendor-option-space CiscoLWAP;
>  option CiscoLWAP.controller 10.10.251.247;
> }
>
> host ap-test.tele.iastate.edu {
>  ddns-hostname "ap-a60easttowerciscolap1510-01";
>  ddns-domainname "tele.iastate.edu";
>  option domain-name "tele.iastate.edu";
>  fixed-address 10.10.199.130;
>  hardware ethernet 00:0b:85:7f:43:d0;
> # tried them here too
> # vendor-option-space CiscoLWAP;
> # option CiscoLWAP.controller 10.10.251.247;
> }

I don't know much about how the daemon parses these configs (not for
lack of documentation - I'm just extra-dense), but through trial and
error I did arrive at a set of configs that is structured slightly
differently and does work for us:

option space LWAPP;
option LWAPP.controller code 241 = array of ip-address;
class "LWAPP" {
  match option vendor-class-identifier;
}
subclass "LWAPP" "Cisco AP c1250" {
  vendor-option-space LWAPP;
  option LWAPP.controller 10.7.7.10;
}
subclass "LWAPP" "Cisco AP c1240" {
  vendor-option-space LWAPP;
  option LWAPP.controller 10.7.7.10;
}
subclass "LWAPP" "Cisco AP c3500" {
  vendor-option-space LWAPP;
  option LWAPP.controller 10.7.7.10;
}

Good luck!

--
Matt



>
> Request:
>
> 09:30:08.819749 IP (tos 0x0, ttl 254, id 38989, offset 0, flags [none], proto UDP (17), length 299) 129.186.199.158.67 > 129.186.1.16.67: [udp sum ok] BOOTP/DHCP, Request from 00:0b:85:7f:43:d0, length 271, hops 1, xid 0x36a665c6, Flags [none] (0x0000)
>          Client-IP 10.10.199.130
>          Gateway-IP 129.186.199.158
>          Client-Ethernet-Address 00:0b:85:7f:43:d0
>          Vendor-rfc1048 Extensions
>            Magic Cookie 0x63825363
>            DHCP-Message Option 53, length 1: Inform
>            MSZ Option 57, length 2: 590
>            Parameter-Request Option 55, length 5:
>              Default-Gateway, Vendor-Option, Domain-Name-Server, Domain-Name
>              LOG
>            Vendor-Class Option 60, length 14: "Cisco AP c1500"
>            END Option 255, length 0
>
> Reply:
> 09:30:08.822777 IP (tos 0x0, ttl 64, id 14216, offset 0, flags [none], proto UDP (17), length 328) 129.186.1.16.67 > 10.10.199.130.68: [udp sum ok] BOOTP/DHCP, Reply, length 300, hops 1, xid 0x36a665c6, Flags [none] (0x0000)
>          Client-IP 10.10.199.130
>          Gateway-IP 129.186.199.158
>          Client-Ethernet-Address 00:0b:85:7f:43:d0
>          sname "netreg-1.its.iastate.edu"
>          Vendor-rfc1048 Extensions
>            Magic Cookie 0x63825363
>            DHCP-Message Option 53, length 1: ACK
>            Server-ID Option 54, length 4: 129.186.1.16
>            Default-Gateway Option 3, length 4: 129.186.199.158
>            Domain-Name-Server Option 6, length 12: 129.186.78.200,129.186.1.200,129.186.140.200
>            Domain-Name Option 15, length 11: "iastate.edu"
>            Subnet-Mask Option 1, length 4: 255.255.255.224
>            END Option 255, length 0
>            PAD Option 0, length 0, occurs 11
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>



More information about the dhcp-users mailing list