我想發送和接收VLAN數據包,但是我收到的每個數據包都成爲錯誤數據包。 有人可以expalin我的數據包的resons被接收爲錯誤。所有接收到的VLAN數據包都變成錯誤Vlan數據包
這裏是狀態...
Information about Ethernet interface 4, 10G_PLANE_A: Device State: UP Link State: UP Link Speed: 10000 Duplex Mode: FULL Flow Control: DISABLED ------ MAC address: 02:00:01:02:08:40 Packets Received: 5662 Bytes Received: 449816 Errored Packets Received: 0 Packets Without Client: 5655 Packets Sent: 1211 Bytes Sent: 41174 Vlan Packets Received: 1761 Vlan Packets Sent: 1211 Error Vlan Packets Received: 1761 Error Vlan Packets Sent: 0 Wred drop: 0
我發送的數據包是....
0000 02 00 01 02 08 40 00 01 ec 69 c7 b5 81 00 80 b4 [email protected] .i...... 0010 82 12 01 00 00 10 ab ba ac dc 07 ff 00 10 e9 ab ........ ........ 0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ 0030 00 00 00 00 00 00 00 00 00 00 00 00 31 0b fa 74 ........ ....1..t
我試圖改變VLNID但是沒有用.. 。
在此先感謝 Murali克里希納。
感謝您的回答。改變數據包格式後,我也得到了相同的結果。分組格式如下改變:0000 02 00 01 02 08 40 00 01 ec 69 c7 b5 81 00 80 b4 ..... @ .. .i ...... 0010 05 dc 81 00 01 00 00 f0 ab ba ac dc 07 ff 80 10 ........ ........ 0020 00 e1 06 63 00 7d 00 00 03 e9 00 da 00 00 01 00 ... c。}。 ... ........ 0030 01 01 00 02 01 00 03 01 00 04 01 00 ea 4b 09 af ........ ..... K..' – Gurrala 2014-09-20 12:38:58
取代0x05DC,u應該把你的數據包的實際長度。 0x05DC只是一個檢查,以確定它是否是包長或ethertype。 – user1500049 2014-09-21 02:46:39