Huawei
How to Configure MAC Address Table on Huawei NE8000: Step by Step
A MAC Address Table no Huawei NE8000 é uma tabela usada para associar endereços MAC às portas físicas ou VLANs. Configurar e monitorar essa tabela é essencial para a operação eficiente de redes Ethernet, garantindo encaminhamento correto de pacotes.
Step-by-Step Guide to Configure and Manage the MAC Address Table on Huawei NE8000
1. Access the Device
- Conecte-se ao Huawei NE8000 via CLI ou interface web.
- Log in with your administrative credentials.
2. Check the Current MAC Address Table
- Liste os endereços MAC aprendidos dinamicamente:
VRP (Huawei)
display mac-address - Filtre por interface ou VLAN (opcional):
VRP (Huawei)
display mac-address interface GigabitEthernet 0/0/1
VRP (Huawei)
display mac-address vlan 103. Configure Static MAC Addresses (optional)
- Acesse o modo de configuração global:
VRP (Huawei)
system-view - Adicione um endereço MAC estático à tabela:
mac-address static 00e0.fc00.1234 vlan 10 interface GigabitEthernet 0/0/1
(Substitua
00e0.fc00.1234pelo endereço MAC,10pela VLAN eGigabitEthernet 0/0/1pela interface.) - Verifique a entrada estática na tabela:
VRP (Huawei)
display mac-address static
4. Configure the Aging Time for Dynamic MAC Addresses
- Ajuste o tempo de aprendizado dinâmico dos endereços MAC: mac-address aging-time 300 (O tempo é definido em segundos; o padrão é 300.)
5. Enable MAC Address Learning or Blocking (optional)
- Desative o aprendizado dinâmico de endereços MAC em uma interface:
VRP (Huawei)
interface GigabitEthernet 0/0/1 mac-address learning disable - Block a specific MAC address: mac-address blackhole 00e0.fc00.5678
6. Clear the MAC Address Table (optional)
- Clear all dynamic entries from the table: reset mac-address dynamic
- Remova entradas estáticas ou de blackhole:
VRP (Huawei)
undo mac-address static 00e0.fc00.1234 vlan 10 undo mac-address blackhole 00e0.fc00.5678
7. Monitor and Test the MAC Address Table Operation
- Verify that packets are being forwarded correctly based on the MAC table.
- Use ferramentas como
pingoutraceroutepara validar a conectividade.
8. Save the Configuration
VRP (Huawei)
save