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
- Conecte-se ao Huawei NE8000 via CLI ou interface web.
- Log in with your administrative credentials.
2. Enter global configuration mode
VRP (Huawei)
system-view3. Configure the Mirror Port
- Crie uma sessão de espelhamento:
mirroring-group 1 local
(O número
1identifica a sessão; você pode usar outros valores se necessário.) - Configure the source port (to be monitored): mirroring-group 1 monitor-port GigabitEthernet 0/0/1
- Configure the destination port (where traffic will be mirrored): mirroring-group 1 reflector-port GigabitEthernet 0/0/2
4. Configure Remote Mirroring (optional)
- Create a session for remote mirroring: mirroring-group 2 remote-source
- Define the source interface for mirrored traffic: mirroring-group 2 monitor-port GigabitEthernet 0/0/3
- Configure the interface that will carry data to the remote destination: mirroring-group 2 reflector-port GigabitEthernet 0/0/4
- On the remote device, configure the reception of mirrored traffic.
5. Verify the Mirror Port Configuration
- Exiba as informações do espelhamento configurado:
VRP (Huawei)
display mirroring-group all - Verify that traffic is being sent correctly to the destination port.
6. Test Mirror Port Functionality
- Connect an analysis tool (e.g., Wireshark) to the destination port.
- Generate traffic on the source port and monitor whether it is captured by the tool.
7. Adjust or Remove the Mirror Port Configuration (optional)
- To change the configuration, modify the mirroring session commands.
- Para remover uma sessão:
VRP (Huawei)
undo mirroring-group 1
8. Save the Configuration
VRP (Huawei)
save