Hello, friend!
The MA5616 can locally capture packet headers on the upstream port. Currently, only unidirectional packets can be captured, but upstream and downstream packets cannot be captured at the same time.
The specific operation commands are as follows:
MA5616(config)#acl 2000 //Create an ACL.
MA5616(config-acl-basic-2000)#rule permit // allows all packets to pass through.
MA5616(config-acl-basic-2000)#quit
MA5616(config)#traffic-mirror
{inbound<K>|outbound<K>}:outbound
{ip-group<K>|link-group<K>|user-group<K>}:ip-group
{integer<U><2000,3999>}:2000
The outbound traffic of the {link-group<K>|port<K>|rule<K>}:port 0/0/1 to port 0/0/0 // upstream port is mirrored to port 0 / 0 / 0.
Thanks!