This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to remove vlan tag from trace?

0

Hello,

I have a H248 pcap trace with double vlan tag:

802.1Q Virtual LAN, PRI: 0, CFI: 0, ID: 999

802.1Q Virtual LAN, PRI: 0, CFI: 0, ID: 473

And my question if there any way to remove one vlan tag, or both tags from the trace?.

Thanks beforehand for your answer.

This question is marked "community wiki".

asked 07 May '13, 04:34

rubik001's gravatar image

rubik001
1223
accept rate: 0%

edited 07 May '13, 05:01


One Answer:

1

Please take a look at tcprewrite. It is able to add/remove VLAN tags.

http://tcpreplay.synfin.net/wiki/tcprewrite

Run it like this:

tcprewrite --enet-vlan=del --infile=vlan.cap --outfile=novlan.cap

Please read the man page for more options.

Regards
Kurt

answered 07 May '13, 06:08

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 07 May '13, 06:14