Scapy - cant send vlan tagged packet

Scapy - cant send vlan tagged packet



I can sent a basic packet using scapy and inspect it on the receiving PC using wireshark.
When I add a VLAN tag I cannot receive the packet or capture it in wireshark on the origination side



sendp( Ether()/IP(dst="172.16.64.49")/Raw(load="some data"))



sendp( Ether()/Dot1Q(vlan=42)/IP(dst="172.16.64.49")/Raw(load="some data"))



dst= 00:15:17:e4:55:52
src= b0:83:fe:e2:df:b7
type= n_802_1Q


prio= 0
id= 0
vlan= 42
type= IPv4


version= 4
ihl= 5
tos= 0x0
len= 29
id= 1
flags=
frag= 0
ttl= 64
proto= ip
chksum= 0x7c32
src= 172.16.102.92
dst= 172.16.64.49
options


load= 'some data'



The data looks as i would expect in scapy, any thoughts?




1 Answer
1



It looks like two things happened, the Switches in my network discarded the outer VLAN, this i discovered when i sent a packet with double VLAN encapsulation. only one VLAN label showed up at the receiving side.



The second issue with the local Wireshark not showing the packet sent was a wireshark filter mis-configuration



Required, but never shown



Required, but never shown






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế