Huawei

How to configure Mirror Port on Huawei NE8000: Step by Step

A Mirror Port no Huawei NE8000 é usada para espelhar o tráfego de uma ou mais interfaces para outra porta, permitindo a análise em tempo real com ferramentas de monitoramento ou dispositivos de segurança. Essa configuração é essencial para diagnosticar problemas de rede e monitorar o tráfego em detalhes.

Step-by-Step Guide to Configure Mirror Port on Huawei NE8000

1. Access the device

  1. Conecte-se ao Huawei NE8000 via CLI ou interface web.
  2. Log in with your administrative credentials.

2. Enter global configuration mode

VRP (Huawei)
system-view

3. Configure the Mirror Port

  1. Crie uma sessão de espelhamento: mirroring-group 1 local (O número 1 identifica a sessão; você pode usar outros valores se necessário.)
  2. Configure the source port (to be monitored): mirroring-group 1 monitor-port GigabitEthernet 0/0/1
  3. Configure the destination port (where traffic will be mirrored): mirroring-group 1 reflector-port GigabitEthernet 0/0/2

4. Configure Remote Mirroring (optional)

  1. Create a session for remote mirroring: mirroring-group 2 remote-source
  2. Define the source interface for mirrored traffic: mirroring-group 2 monitor-port GigabitEthernet 0/0/3
  3. Configure the interface that will carry data to the remote destination: mirroring-group 2 reflector-port GigabitEthernet 0/0/4
  4. On the remote device, configure the reception of mirrored traffic.

5. Verify the Mirror Port Configuration

  1. Exiba as informações do espelhamento configurado:
    VRP (Huawei)
    display mirroring-group all
  2. Verify that traffic is being sent correctly to the destination port.

6. Test Mirror Port Functionality

  1. Connect an analysis tool (e.g., Wireshark) to the destination port.
  2. Generate traffic on the source port and monitor whether it is captured by the tool.

7. Adjust or Remove the Mirror Port Configuration (optional)

  1. To change the configuration, modify the mirroring session commands.
  2. Para remover uma sessão:
    VRP (Huawei)
    undo mirroring-group 1

8. Save the Configuration

VRP (Huawei)
save

Conclusion

A configuração de uma Mirror Port no Huawei NE8000 é uma solução eficaz para monitorar e diagnosticar problemas de rede. Com o espelhamento, você pode capturar e analisar o tráfego detalhadamente para garantir a segurança e o desempenho da infraestrutura.