- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 10:05 PM - edited 03-08-2019 04:47 PM
Hi.
I have a trunked switchport (source) which is mirrored to an access switchport (destination). When I capture the traffic using Wireshark, I do not see any VLAN tags (vlan.id). Is this expected, as the destination port is an access port? Should I switch my destination port to be a trunked switchport from an access switchport?
Thanks.
Solved! Go to Solution.
- Labels:
-
LAN Switching
-
Other Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 10:29 PM
Which model of switches are you using?
On recent switches you don't have anymore the following command but on all others you have to add encapsulation dot1q on your destination like:
monitor session 1 destination interface g1/0/48 encapsulation dot1q
Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 10:29 PM
Which model of switches are you using?
On recent switches you don't have anymore the following command but on all others you have to add encapsulation dot1q on your destination like:
monitor session 1 destination interface g1/0/48 encapsulation dot1q
Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2018 11:10 PM
Thanks for the reply. I'm not sure of the model as I'm not in front of it
right now but it might be a 2960.
Sounds like you might be right.
What would happen if the encapsulation dot1q wasn't used? I could still see
the expected traffic, it just didn't show with a vlan.id in Wireshark.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 08:45 PM
You are correct. adding the encapsulation dot1q command worked.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 08:56 PM
Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 12:29 AM - edited 12-12-2018 12:30 AM
Hi there,
Are you using a windows laptop connected to the SPAN port?
If I remember correctly the widows network stack by default will drop tagged frames, so your capture will miss a lot of traffic.
There is a REG key you can change to not drop tagged frames, or just use tcpdump on a linux laptop and export the PCap back to your windows laptop.
Cheers,
Seb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:52 AM
ah. I've never had to try and use a mac, but this page suggests you may need to configure the corresponding VLAN sub-interfaces on you capture interface for each VLAN:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 02:33 PM
Hi.
I have tested using a trunk port and I can capture traffic from multiple VLANs with the vlan.id showing correctly. So I'm confident that it's not the computer.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 03:19 PM
Your last post says you see vlan id?
Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2018 08:44 PM
