ZHCAEO6 November 2024 DP83867CS , DP83867E , DP83867IS , DP83869HM , DP83TC811S-Q1 , DP83TC812S-Q1 , DP83TC813S-Q1 , DP83TC814S-Q1 , DP83TC817S-Q1 , DP83TC818S-Q1 , DP83TG720S-Q1 , DP83TG721S-Q1
在圖 1-11 中,啟用 MII 環(huán)回后從 MAC 輸出 10 個數(shù)據(jù)包。Ping 顯示發(fā)送了 10 個數(shù)據(jù)包,收到 0 個數(shù)據(jù)包。這是預(yù)期結(jié)果,因?yàn)槟繕?biāo)地址不存在。但是,TCPdump 日志會顯示入站數(shù)據(jù)包中的所有出站數(shù)據(jù)??偣灿?20 條消息。將傳出 10 條消息,然后通過環(huán)回發(fā)送回主機(jī)。因此,PHY 內(nèi)的 MII 塊正常工作。
要僅顯示傳出或傳入的數(shù)據(jù)包,請使用以下命令:
tcpdump dst hst <host IP> & #Packets coming to the host
tcpdump src hst <host IP> & #Packets sent out from the host