Got it

MA5680T Mirroring Packet Capture

Created: Feb 26, 2022 07:59:43Latest reply: Feb 26, 2022 08:03:00 103 1 0 0 0
  HiCoins as reward: 0 (problem unresolved)

Hi there.


How do I capture packets with a specified MAC address on the MA5680T?

If you could give me a configuration example, it would be better.


Thanks for your help.

Featured Answers

Recommended answer

Nino_Chou
Admin Created Feb 26, 2022 08:03:00

Hi friend.


The configuration example is as follows:


1. Create a link-layer rule to match user packets.

MA5680T (config)#acl 4000
MA5680T(config-acl-link-4000)#rule 5 permit source
{ mac_addr<P><XXXX-XXXX-XXXX> }:1234-1234-1234
{ mac_addr<P><XXXX-XXXX-XXXX> }:0000-0000-0000
{ <cr>|type<K>|cos<K>|source<K>|time-range<K> }:
MA5680T(config-acl-link-4000)#rule 10 permit destination
{ mac_addr<P><XXXX-XXXX-XXXX> }:1234-1234-1234
{ mac_addr<P><XXXX-XXXX-XXXX> }:0000-0000-0000
{ <cr>|type<K>|cos<K>|source<K>|time-range<K> }:


2. Mirror the packets that go out of upstream port 0/19/0.

MA5680T(config-acl-link-4000)#quit
MA5680T(config)#traffic-mirror
{ inbound<K>|outbound<K> }:outbound
{ user-group<K>|ip-group<K>|link-group<K> }:link-group
{ integer<U><4000,4999> }:4000
{ ip-group<K>|port<K>|rule<K> }:rule 5
{ ip-group<K>|port<K> }:port 0/19/0
{ <cr>|to<K> }:to
{ port<K> }:port 0/20/0


3. Mirror the packets that enter upstream port 0/19/0.

MA5680T(config)#traffic-mirror inbound link-group 4000 rule 10 port 0/19/0 to port 0/20/0


I hope I can help you.

View more
  • x
  • convention:

All Answers

Hi friend.


The configuration example is as follows:


1. Create a link-layer rule to match user packets.

MA5680T (config)#acl 4000
MA5680T(config-acl-link-4000)#rule 5 permit source
{ mac_addr<P><XXXX-XXXX-XXXX> }:1234-1234-1234
{ mac_addr<P><XXXX-XXXX-XXXX> }:0000-0000-0000
{ <cr>|type<K>|cos<K>|source<K>|time-range<K> }:
MA5680T(config-acl-link-4000)#rule 10 permit destination
{ mac_addr<P><XXXX-XXXX-XXXX> }:1234-1234-1234
{ mac_addr<P><XXXX-XXXX-XXXX> }:0000-0000-0000
{ <cr>|type<K>|cos<K>|source<K>|time-range<K> }:


2. Mirror the packets that go out of upstream port 0/19/0.

MA5680T(config-acl-link-4000)#quit
MA5680T(config)#traffic-mirror
{ inbound<K>|outbound<K> }:outbound
{ user-group<K>|ip-group<K>|link-group<K> }:link-group
{ integer<U><4000,4999> }:4000
{ ip-group<K>|port<K>|rule<K> }:rule 5
{ ip-group<K>|port<K> }:port 0/19/0
{ <cr>|to<K> }:to
{ port<K> }:port 0/20/0


3. Mirror the packets that enter upstream port 0/19/0.

MA5680T(config)#traffic-mirror inbound link-group 4000 rule 10 port 0/19/0 to port 0/20/0


I hope I can help you.

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.