Код:
eee# tcpdump -s 1500 -enXXni ae0 ether src host 00:80:c8:00:00:00
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ae0, link-type EN10MB (Ethernet), capture size 1500 bytes
16:01:44.549660 00:80:c8:00:00:00 > 01:80:c2:00:00:0e, ethertype Unknown (0x88cc), length 70:
0x0000: 0180 c200 000e 0080 c800 0000 88cc 0207 ................
0x0010: 0400 1cf0 2160 8004 0407 3232 0006 0200 ....!`....22....
0x0020: 780a 0100 0c18 4769 6761 6269 7420 4574 x.....Gigabit.Et
0x0030: 6865 726e 6574 2053 7769 7463 6800 0e04 hernet.Switch...
0x0040: 0006 0006 0000 ......
16:01:45.601280 00:80:c8:00:00:00 > 01:80:c2:00:00:00, 802.3, length 60: LLC, dsap STP (0x42) Individual, ssap STP (0x42) Command, ctrl 0x03: STP 802.1w, Rapid STP, Flags [Proposal, Agreement], bridge-id 8000.00:1c:f0:21:60:80.8016, length 43
0x0000: 0180 c200 0000 0080 c800 0000 0027 4242 .............'BB
0x0010: 0300 0002 024e 8000 001c f021 6080 0000 .....N.....!`...
0x0020: 0000 8000 001c f021 6080 8016 0000 1400 .......!`.......
0x0030: 0200 0f00 0000 0000 0000 0000 ............
16:01:45.838738 00:80:c8:00:00:00 > 01:80:c2:00:00:00, 802.3, length 60: LLC, dsap STP (0x42) Individual, ssap STP (0x42) Command, ctrl 0x03: STP 802.1w, Rapid STP, Flags [Topology change, Proposal, Agreement], bridge-id 8000.00:1c:f0:21:60:80.8016, length 43
0x0000: 0180 c200 0000 0080 c800 0000 0027 4242 .............'BB
0x0010: 0300 0002 024f 8000 0017 9a0c aa2a 0003 .....O.......*..
0x0020: 0d40 8000 001c f021 6080 8016 0100 1400 .@.....!`.......
0x0030: 0200 0f00 0000 0000 0000 0000 ............
16:01:46.839850 00:80:c8:00:00:00 > 01:80:c2:00:00:00, 802.3, length 60: LLC, dsap STP (0x42) Individual, ssap STP (0x42) Command, ctrl 0x03: STP 802.1w, Rapid STP, Flags [Topology change, Proposal, Agreement], bridge-id 8000.00:1c:f0:21:60:80.8016, length 43
0x0000: 0180 c200 0000 0080 c800 0000 0027 4242 .............'BB
0x0010: 0300 0002 024f 8000 0017 9a0c aa2a 0003 .....O.......*..
0x0020: 0d40 8000 001c f021 6080 8016 0100 1400 .@.....!`.......
0x0030: 0200 0f00 0000 0000 0000 0000 ............
16:01:48.838589 00:80:c8:00:00:00 > 01:80:c2:00:00:00, 802.3, length 60: LLC, dsap STP (0x42) Individual, ssap STP (0x42) Command, ctrl 0x03: STP 802.1w, Rapid STP, Flags [Topology change, Proposal, Learn, Forward, Agreement], bridge-id 8000.00:1c:f0:21:60:80.8016, length 43
0x0000: 0180 c200 0000 0080 c800 0000 0027 4242 .............'BB
0x0010: 0300 0002 027f 8000 0017 9a0c aa2a 0003 .............*..
0x0020: 0d40 8000 001c f021 6080 8016 0100 1400 .@.....!`.......
0x0030: 0200 0f00 0000 0000 0000 0000 ............
16:01:50.838880 00:80:c8:00:00:00 > 01:80:c2:00:00:00, 802.3, length 60: LLC, dsap STP (0x42) Individual, ssap STP (0x42) Command, ctrl 0x03: STP 802.1w, Rapid STP, Flags [Proposal, Learn, Forward, Agreement], bridge-id 8000.00:1c:f0:21:60:80.8016, length 43
0x0000: 0180 c200 0000 0080 c800 0000 0027 4242 .............'BB
0x0010: 0300 0002 027e 8000 0017 9a0c aa2a 0003 .....~.......*..
0x0020: 0d40 8000 001c f021 6080 8016 0100 1400 .@.....!`.......
0x0030: 0200 0f00 0000 0000 0000 0000 ............
16:01:52.840222 00:80:c8:00:00:00 > 01:80:c2:00:00:00, 802.3, length 60: LLC, dsap STP (0x42) Individual, ssap STP (0x42) Command, ctrl 0x03: STP 802.1w, Rapid STP, Flags [Proposal, Learn, Forward, Agreement], bridge-id 8000.00:1c:f0:21:60:80.8016, length 43
0x0000: 0180 c200 0000 0080 c800 0000 0027 4242 .............'BB
0x0010: 0300 0002 027e 8000 0017 9a0c aa2a 0003 .....~.......*..
0x0020: 0d40 8000 001c f021 6080 8016 0100 1400 .@.....!`.......
0x0030: 0200 0f00 0000 0000 0000 0000 ............
STP и LLDP(0x88cc)