Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Option 82 problem (????????? ?????????)
   2. Re: Option 82 problem (Patrick Trapp)
   3. Re: Option 82 problem (Bob Harold)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Apr 2020 18:18:24 +0400
From: ????????? ?????????  <alexander.sandet...@gmail.com>
To: dhcp-users@lists.isc.org
Subject: Option 82 problem
Message-ID:
        <cakzvn5ofgm8bak+kcn9jupj6furzvxl9pqo5_ttuthcktlu...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi!

I have a problem with option 82 configuration.

I have managed switch with IP 10.10.0.38 (managed VLAN 100). There is
additional VLANs configured for clients: VLAN 3000 and 3010. There is
option 82 and DHCP relay configured on the switch.

I have DHCP server placed in VLAN 3000 with IP 172.18.0.101

I want to DHCP server serves the VLAN 3010 (and other) on per-VLAN basis.

The part of dhcpd.conf

class "VLAN3010" {
        match if binary-to-ascii(10, 8, "", substring(option
agent.circuit-id, 2, 2)) = "3010"
    }


subnet 172.18.10.0 netmask 255.255.255.0 {
    option routers  172.18.0.1;

    pool {
            range 172.18.10.51 172.18.10.250;
            allow members of "VLAN3010";
    }
}


The server receives request as
DHCPDISCOVER from 2c:27:d7:b1:a2:85 via 10.10.0.38: network 10.10.0.0/24:
no free leases



I have checked with Wireshark

   Option: (82) Agent Information Option
        Length: 18
        Option 82 Suboption: (1) Agent Circuit ID
            Length: 6
            Agent Circuit ID: 00040bc20003
        Option 82 Suboption: (2) Agent Remote ID
            Length: 8
            Agent Remote ID: 00068026897b2b40

There is binary encoded agent circuit id that contains "0bc2" bytes that
equal to "3010" in decimal.

Why my class definition does not accept this request? What is wrong?



-- 

Regards,
Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20200417/6393929c/attachment-0001.htm>

------------------------------

Message: 2
Date: Fri, 17 Apr 2020 16:21:06 +0000
From: Patrick Trapp <ptr...@nex-tech.com>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: Option 82 problem
Message-ID:
        
<dm5pr12mb2565a3fde0eeb895884cf979e6...@dm5pr12mb2565.namprd12.prod.outlook.com>
        
Content-Type: text/plain; charset="koi8-r"

Hello, Alexander.

It's been a while since I've worked with this, but I believe your use of 
substring might be incorrect. I think the parameters should be indicating what 
position in the string to start matching and how many characters to match - 
your current substring is matching two characters starting on the second 
position, but it appears that the system is reporting the agent-id as six 
characters - if that's true, then your agent-id value is starting on position 
three rather than position 2. I would give that a test.

That said, my experiences with option-82 have been using a string, not a 
number, so my experiences may not apply.

Patrick
________________________________
From: dhcp-users <dhcp-users-boun...@lists.isc.org> on behalf of ????????? 
????????? <alexander.sandet...@gmail.com>
Sent: Friday, April 17, 2020 9:18 AM
To: dhcp-users@lists.isc.org <dhcp-users@lists.isc.org>
Subject: Option 82 problem


CAUTION: This email originated from outside of the company. Do not click links 
or open attachments unless you recognize the sender and know the content is 
safe.

Hi!

I have a problem with option 82 configuration.

I have managed switch with IP 10.10.0.38 (managed VLAN 100). There is 
additional VLANs configured for clients: VLAN 3000 and 3010. There is option 82 
and DHCP relay configured on the switch.

I have DHCP server placed in VLAN 3000 with IP 172.18.0.101

I want to DHCP server serves the VLAN 3010 (and other) on per-VLAN basis.

The part of dhcpd.conf

class "VLAN3010" {
        match if binary-to-ascii(10, 8, "", substring(option agent.circuit-id, 
2, 2)) = "3010"
    }


subnet 172.18.10.0 netmask 255.255.255.0 {
    option routers  172.18.0.1;

    pool {
            range 172.18.10.51 172.18.10.250;
            allow members of "VLAN3010";
    }
}


The server receives request as
DHCPDISCOVER from 2c:27:d7:b1:a2:85 via 10.10.0.38<http://10.10.0.38>: network 
10.10.0.0/24<http://10.10.0.0/24>: no free leases



I have checked with Wireshark

   Option: (82) Agent Information Option
        Length: 18
        Option 82 Suboption: (1) Agent Circuit ID
            Length: 6
            Agent Circuit ID: 00040bc20003
        Option 82 Suboption: (2) Agent Remote ID
            Length: 8
            Agent Remote ID: 00068026897b2b40

There is binary encoded agent circuit id that contains "0bc2" bytes that equal 
to "3010" in decimal.

Why my class definition does not accept this request? What is wrong?



--

Regards,
Alexander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20200417/7280f0e3/attachment-0001.htm>

------------------------------

Message: 3
Date: Fri, 17 Apr 2020 12:26:37 -0400
From: Bob Harold <rharo...@umich.edu>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: Option 82 problem
Message-ID:
        <ca+nkc8drb4yqhsn6qe2hr5+fazy5j3wkl-ces-rq0hoayva...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Fri, Apr 17, 2020 at 10:18 AM ????????? ????????? <
alexander.sandet...@gmail.com> wrote:

> Hi!
>
> I have a problem with option 82 configuration.
>
> I have managed switch with IP 10.10.0.38 (managed VLAN 100). There is
> additional VLANs configured for clients: VLAN 3000 and 3010. There is
> option 82 and DHCP relay configured on the switch.
>
> I have DHCP server placed in VLAN 3000 with IP 172.18.0.101
>
> I want to DHCP server serves the VLAN 3010 (and other) on per-VLAN basis.
>
> The part of dhcpd.conf
>
> class "VLAN3010" {
>         match if binary-to-ascii(10, 8, "", substring(option
> agent.circuit-id, 2, 2)) = "3010"
>     }
>
>
> subnet 172.18.10.0 netmask 255.255.255.0 {
>     option routers  172.18.0.1;
>
>     pool {
>             range 172.18.10.51 172.18.10.250;
>             allow members of "VLAN3010";
>     }
> }
>
>
> The server receives request as
> DHCPDISCOVER from 2c:27:d7:b1:a2:85 via 10.10.0.38: network 10.10.0.0/24:
> no free leases
>
>
The packet came from 10.10.0.38, which is not in the subnet, so even if the
class matched, it would not get an IP from that subnet.
As it says, network 10.10.0.0/24 has no free leases

-- 
Bob Harold


>
>
> I have checked with Wireshark
>
>    Option: (82) Agent Information Option
>         Length: 18
>         Option 82 Suboption: (1) Agent Circuit ID
>             Length: 6
>             Agent Circuit ID: 00040bc20003
>         Option 82 Suboption: (2) Agent Remote ID
>             Length: 8
>             Agent Remote ID: 00068026897b2b40
>
> There is binary encoded agent circuit id that contains "0bc2" bytes that
> equal to "3010" in decimal.
>
> Why my class definition does not accept this request? What is wrong?
>
>
>
> --
>
> Regards,
> Alexander
> _______________________________________________
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.isc.org/pipermail/dhcp-users/attachments/20200417/4f8d48b6/attachment.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 138, Issue 7
******************************************

Reply via email to