咨询下t1040 l2switch 配置

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

咨询下t1040 l2switch 配置

361 Views
Guestsun
Contributor II

目前t1040的l2switch使用了port0和port2口,port8是通到cpu eth0的,目前想实现对port0或者port2端口的监控,例如将port2端口的收发包镜像到port8上,这样就可以在eth0上tcpdump抓包来看了,看l2switch的代码里面有set mirror 命令,但是这个命令的解释很简单,如何使用这个命令才能实现上面对特定port的包的监控呢?

0 Kudos
1 Reply

332 Views
June_Lu
NXP TechSupport
NXP TechSupport

I have some doubts about your question:

1. What do you mean by "CPU eth0“? Is it just eth0, a RGMII ethernet port?

2. L2Switch has 8 ports, I think it should be port0-7. So which is port8?

 

To be clear, T1040ardb have 11 ethernet ports which are: 2 RGMII eth( eth0-1), 1 SGMII (eth3), 8 QSGMII (eth4-11).

0 Kudos