Got it

How to capture packets on the HG8245A

Created: Apr 10, 2020 07:36:12Latest reply: Sep 10, 2021 13:01:04 596 5 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello, sir.


How do I capture packets on the LAN port of the HG8245A?


Can you teach me?


Thanks!


Featured Answers

Recommended answer

Chenxintao
Admin Created Apr 10, 2020 07:41:24

Hello, friend!


Packet capture methods for the following versions:


1.In V100R006C00 and earlier versions, run the following command to enable local mirroring.

For example, to mirror LAN1 to LAN2, run the following command:


WAP>set port config portid 1 mirroren 1 dstportid 2 mirrortype 2


In this command, portid 1 indicates the source port LAN1; dstportid 2 indicates the destination port LAN2. If mirroren is 1, mirroring is enabled; if mirroren is 0, mirroring is disabled. If mirrortype is 0, packets are captured on the outbound interface; If mirrortype is 1, packets are captured on the inbound interface; If mirrortype is 2, packets are captured on both the inbound and outbound interfaces.

2.In V300R012C00, run the following command to enable local mirroring.

For example, to mirror LAN1 to LAN2, run the following command:


WAP>set ethportmirror sourceport 1 destport 2 mirrordate 1 enable 1


In this command, the sourceport numbers are as follows: 1-4: Ethernet interface; 5: CPU; 6: pon port. The destport numbers range from 1 to 4. The mirrordate numbers are as follows: 0 indicates out; 1 indicates in; 2 indicates all; enable indicates whether the function is enabled; 0 indicates that the function is disabled; 1 indicates that the function is enabled.


I hope it helps. 

Thank you!


View more
  • x
  • convention:

simchamnan
simchamnan Created Sep 10, 2021 05:27:53 (0) (0)
 
All Answers

Hello, friend!


Packet capture methods for the following versions:


1.In V100R006C00 and earlier versions, run the following command to enable local mirroring.

For example, to mirror LAN1 to LAN2, run the following command:


WAP>set port config portid 1 mirroren 1 dstportid 2 mirrortype 2


In this command, portid 1 indicates the source port LAN1; dstportid 2 indicates the destination port LAN2. If mirroren is 1, mirroring is enabled; if mirroren is 0, mirroring is disabled. If mirrortype is 0, packets are captured on the outbound interface; If mirrortype is 1, packets are captured on the inbound interface; If mirrortype is 2, packets are captured on both the inbound and outbound interfaces.

2.In V300R012C00, run the following command to enable local mirroring.

For example, to mirror LAN1 to LAN2, run the following command:


WAP>set ethportmirror sourceport 1 destport 2 mirrordate 1 enable 1


In this command, the sourceport numbers are as follows: 1-4: Ethernet interface; 5: CPU; 6: pon port. The destport numbers range from 1 to 4. The mirrordate numbers are as follows: 0 indicates out; 1 indicates in; 2 indicates all; enable indicates whether the function is enabled; 0 indicates that the function is disabled; 1 indicates that the function is enabled.


I hope it helps. 

Thank you!


View more
  • x
  • convention:

simchamnan
simchamnan Created Sep 10, 2021 05:27:53 (0) (0)
 

1、PC connect ONT via LAN1 port

2、PC telnet to ONT(if cant, enable the telnet in the ONT WEB page)

3、execute command

    WAP> set ethportmirror sourceport 10 destport 1 mirrordate 2 enable 1

4、open wireshark and capture packet

5、execute command

WAP> set ethportmirror sourceport 10 destport 1 mirrordate 2 enable 0


View more
  • x
  • convention:

Well note
View more
  • x
  • convention:

Good answer
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.