ISC DHCP 4.4.1_CentOS7_DHCPv6_Relay_server: issue related with Class matching option along with condition.

yoshihiko fujita fujita at ncad.co.jp
Wed Nov 7 09:02:57 UTC 2018


Hello,
> match if substring (option dhcp6.interface-id, 0, 5) = "GURU;";

interface id option is relay-forw message type option.
but dhcp6.interface-id represents the Relay Message options in options.

if host-identifier can use v6relopt.

sample:
host {
        host-identifier v6relopt 1 dhcp6.interface-id 01:00:00:00;
        ...

but match if syntax does not seem to support.

Good luck!

2018年11月7日(水) 12:18 gurumurthyka at gmail.com <gurumurthyka at gmail.com>:

> Thanks for the response,
>
>
>
> Could you check on config file, the configured parameter are correct and
> responseding text shows matching was not found. I’m bit concern on here.
> None of other matching not working. i have tested multiple combination of
> characters, but every time fail with same indication.
>
>
> *NOTE:* We have tested DHCPv4 relay server with same relay agent with
> IPv4 working fine !!. with DHCPv6 has concern.
>
>
> In our relay always ending with semicolon like "TESTING;", TETSING can
> change to any character.
>
>
>
> Test#1: DHCPv6 relay sending with option 18 interface id with “TESTING;”
>
>
>
>                Config file changes: relay sending with 8 ASCII character
> [TESTING;] , as from wireshark.
>
>
>
> class "team" {
>
>          match if substring (option dhcp6.interface-id*, 0, 7) = "TESTING*
> ";
>
> }
>
>
>
> subnet6 3001:db8:100:f101::0/64 {
>
>   pool6 {
>
>     log(info, option dhcp6.interface-id);
>
>     range6 3001:db8:100:f101::0:100 3001:db8:100:f101::0:1FF;
>
>     allow members of "team";
>
>   }
>
> }
>
> Result : same indication as earlier.
>
> *Unable to pick client address: no addresses available*  - shared network
> 3001:db8:100:f101::/64: 0 total, 0 active,  0 abandoned
>
>
>
> *Test#2*: DHCPv6 relay sending with option 18 interface id with “GURU;”
>
>
>
>                Config file changes: relay sending with 8 ASCII character
> [GURU;] , as from wireshark.
>
>
>
> class "team" {
>
>          match if substring (option dhcp6.interface-id*, 0, 5) = "GURU;*";
>
> }
>
>
>
> subnet6 3001:db8:100:f101::0/64 {
>
>   pool6 {
>
>     log(info, option dhcp6.interface-id);
>
>     range6 3001:db8:100:f101::0:100 3001:db8:100:f101::0:1FF;
>
>     allow members of "team";
>
>   }
>
> }
>
> Result : same indication as earlier.
>
> *Unable to pick client address: no addresses available*  - shared network
> 3001:db8:100:f101::/64: 0 total, 0 active,  0 abandoned
>
>
>
> Thanks
>
> Guru
>
>
>
> On Wed, Nov 7, 2018 at 7:39 AM Christopher Barry <
> christopher.r.barry at gmail.com> wrote:
>
>> On Tue, 6 Nov 2018 21:32:32 +0530
>> PaviGuru Pavithragurumurthy <gurumurthyka at gmail.com> wrote:
>>
>> >"TESTING;";
>>
>> Responding only because I see no one else has.
>>
>> is that extra semicolon inside the quotes desired? I have never setup
>> an ipv6 dhcp server, so I'm likely no help to you, but sometimes it's
>> something that silly.
>>
>> maybe do a substring 7 chars and match to "TESTING" to see if that
>> semicolon is somehow biting you?
>>
>> Good Luck!
>>
>> --
>> Regards,
>> Christopher
>>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>


-- 
□■━━━━━━━━━━━━━━━━━
藤田 善光 fujita at ncad.co.jp
日本シー・エー・ディー株式会社
TEL:03-3565-3011
FAX:03-3565-3611
http://www.ncad.co.jp
━━━━━━━━━━━━━━━━━■□
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20181107/0ac3ebd6/attachment-0001.html>


More information about the dhcp-users mailing list