[kea-dev] perfdhcp template question

Angelo Failla pallotron at fb.com
Wed Apr 27 15:38:03 UTC 2016


On 4/27/16, 8:09 AM, "Francis Dupont" <fdupont at isc.org> wrote:


>>I basically need to simulate 50 machines with different macs
>> constantly sending DISCOVERY packets and each discovery packet must
>> request options 66 (TFTP server) and 67 (FILENAME).
>
>=> this is a typical use of the template feature!

Ok I will give it a try, so I took a tcpdump, and I can read it with tshark:

0000  90 e2 ba 95 b9 28 7c 69 f6 15 29 41 08 00 45 00   .....(|i..)A..E.
0010  01 14 00 01 00 00 3d 11 37 12 0a 23 8b 51 0a 23   ......=.7..#.Q.#
0020  a6 2f 00 43 00 43 01 00 0c 6a 01 01 06 01 00 00   ./.C.C...j......
0030  a1 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00   .2..............
0040  00 00 0a 23 8b 51 00 02 c9 de 70 4e 00 00 00 00   ...#.Q....pN....
0050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00a0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00b0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
00f0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0100  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0110  00 00 00 00 00 00 63 82 53 63 35 01 01 37 02 42   ......c.Sc5..7.B
0120  43 ff                                             C.

So my string to put in the template would be

90e2ba95b9287c69f6152941080045000114000100003d1137120a238b510a23a62f0043004301000c6a010106010000a132000000000000000000000000000000000a238b510002c9de704e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006382536335010137024243ff

Not my question is, if I want to simulate different mac addresses do I need
To put multiple lines like the above in the template file?

-
Angelo



More information about the kea-dev mailing list