03-09-2016 12:39 AM - edited 03-08-2019 04:53 AM
Hi,
does any have idea how to generate vtp corrupted packet from c6500 switch...
This is for an testing purpose..
Please reply if there is any option to send vtp updates as a corrupted packet..
03-09-2016 01:16 AM
Hi,
The way I see it, the only option you have is to use a different VTP password. Otherwise, you cannot force a correctly written software to produce incorrect VTP messages. There are extremely many ways in which a VTP message could be corrupted anyway - what is your goal here?
Best regards,
Peter
03-09-2016 02:40 AM
Hi Peter,
Thanks for the quick response, we need to add TLV's in vtp version 1 packet so that it is invalid at the receiving switch. We need to find if the box crashes in this scenario
Regards
Franco
03-09-2016 02:57 AM
Hi Franco,
I am afraid that the only way of accomplishing this is to write your own VTP packet injector in C preferably under Linux - but this might be a non-trivial task because the VTP messages are relatively complex. If you want to just "slap" additional TLVs at the end of a VTP message without even correcting its checksum then that could be relatively easy, considering the fact that you can capture a valid VTP message in Wireshark and have it exported as a constant C array. Then you could add your own TLVs at the end of this message. The resulting message would be invalid but its checksum would actually reveal it, so it is possible that the receiving switch would drop it right away without processing the internal TLVs. If you wanted the switch to actually process the TLV then it is probable that the checksum would need to be correct as well, and the mechanism for computing the MD5 checksum is not publicly known (a friend of mine has found the exact algorithm by trial-and-error, though, so I could ask him about the details).
In any case, this will require a bit of effort on your part to get it right.
Best regards,
Peter
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide