Vendor option per host

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Vendor option per host

Miloslav Hůla
Hi,

is it possible to set vendor specific option per host? Now I have:

#======================
option space PCoIP;
option PCoIP.uri      code 10 = text;
option PCoIP.sha256fp code 11 = text;

shared-network VLAN-4 {
         subnet 10.66.3.0 netmask 255.255.255.0 {
                 authoritative;
                 allow unknown-clients;
                 option routers 10.66.3.1;
         }

         subnet 10.66.4.0 netmask 255.255.255.0 {
                 authoritative;
                 allow unknown-clients;
                 option routers 10.66.4.1;
         }

        ...
}

host tera2-test {
         hardware ethernet 00:36:04:00:11:21;
         fixed-address 10.66.3.50;
         option PCoIP.uri "wss://10.0.0.10";
         option PCoIP.sha256fp "B7:62:71:01:85:...";
}
#======================

but when I 'tcpdump -i eth1 -h 00:36:04:00:11:21' I can see
client/server packets, client get the IP, but the vendor specific
options are not present.

I found many examples with classing, but I need it only for few hosts
now for testing.

Thank you, Milo
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Vendor option per host

Peter Rathlev
On Wed, 2017-05-10 at 13:33 +0200, Miloslav Hůla wrote:
> is it possible to set vendor specific option per host? Now I have:
>
> #======================
> option space PCoIP;
> option PCoIP.uri      code 10 = text;
> option PCoIP.sha256fp code 11 = text;
[snip]
> host tera2-test {
>          hardware ethernet 00:36:04:00:11:21;
>          fixed-address 10.66.3.50;
>          option PCoIP.uri "wss://10.0.0.10";
>          option PCoIP.sha256fp "B7:62:71:01:85:...";
> }

I would assume you need "vendor-option-space PCoIP;" inside the host
declaration. Have you tried that?

> but when I 'tcpdump -i eth1 -h 00:36:04:00:11:21' I can see 
> client/server packets, client get the IP, but the vendor specific 
> options are not present.

And the client is actually asking for option 43, right? Different
versions of tcpdump print it in different ways, but e.g. v4.5.1 prints
something like this (with "-v"):

            [...]
            Parameter-Request Option 55, length 30: 
              Subnet-Mask, BR, Default-Gateway, Vendor-Option
              Option 128, Option 131, Option 144, Option 157
            [...]

This is an Avaya phone, the other options will differ of course.

(Bit late to the game here, but since nobody else answered...)

--
Peter

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Loading...