Option 82 AID

Holger Honert holger.honert at signal-iduna.org
Fri Sep 18 09:41:28 UTC 2009


Hi Ray,

afaik AID stands for Agent remote ID.

>From the specs of option 82:

RFC 3046

Suboption 2 Agent Remote ID sub-option – used for defining the MAC
address of
the switch that added the Option 82 information.


Greets

Holger


Ray Phillips schrieb:
> Recently dhcp snooping was enabled on our Cisco switches so I've used
> some code I found on this list to log the option 82 data:
>
> if exists agent.circuit-id {
>     log (info, concat( "Lease for ",
>         binary-to-ascii (10, 8, ".", leased-address),
>         " is connected to interface ",
>         binary-to-ascii (10, 8, "/", suffix (option agent.circuit-id,
> 2)),
>         ", VLAN ",
>         binary-to-ascii (10, 16, "", substring (option
> agent.circuit-id, 2, 2)),
>         " on switch ",
>         substring (option agent.remote-id, 2, 256)));
>
>     log (info, concat( "Lease for ",
>         binary-to-ascii (10, 8, ".", leased-address),
>         " raw option-82 info is CID: ",
>         binary-to-ascii (10, 8, ".", option agent.circuit-id),
>         " AID: ",
>         binary-to-ascii(16, 8, ".", option agent.remote-id)));
> }
>
> which is working fine.
>
> CID stands for Circuit ID I presume, but can someone tell me what the
> abbreviation AID stands for please?
>
> The switch's names, not their MAC addresses, are put into the Option
> 82 space.  Since I wanted to use code that would work for any
> reasonable name length I used the value 256 in the second substring
> function because I couldn't find any way to calculate a string's
> length.  Is there some way to do that?
>
> By the way, the dhcp-eval(5) man page contains this entry:
>
>        number
>
>          Any number between zero and the maximum  representable  size 
> may  be
>          specified as a numeric expression.
>
> by doesn't elaborate on what the the maximum representable size might
> be, so how is it defined?
>
>
> Ray
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>


SIGNAL Krankenversicherung a. G., Sitz: Dortmund, HR B 2405, AG Dortmund
IDUNA Vereinigte Lebensversicherung aG für Handwerk, Handel und Gewerbe,
Sitz: Hamburg, HR B 2740, AG Hamburg
Deutscher Ring Krankenversicherungsverein a.G., Sitz: Hamburg,
HR B 4673, AG Hamburg,
SIGNAL IDUNA Allgemeine Versicherung AG, Sitz: Dortmund, HR B 19108,
AG Dortmund
Vorstände: Reinhold Schulte (Vorsitzender),
Wolfgang Fauter (stellv. Vorsitzender), Dr. Karl-Josef Bierth,
Jens O. Geldmacher, Marlies Hirschberg-Tafel,
Michael Johnigk, Ulrich Leitermann, Michael Petmecky,
Dr. Klaus Sticker, Prof. Dr. Markus Warg
Vorsitzender der Aufsichtsräte: Günter Kutz
SIGNAL IDUNA Gruppe Hauptverwaltungen, Internet: www.signal-iduna.de
44121 Dortmund, Hausanschrift: Joseph-Scherer-Str. 3, 44139 Dortmund
20351 Hamburg, Hausanschrift: Neue Rabenstraße 15-19, 20354 Hamburg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: holger_honert.vcf
Type: text/x-vcard
Size: 328 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20090918/276d6eb7/attachment.vcf>


More information about the dhcp-users mailing list