Huawei
How to Configure IPv4 Static Routes on Huawei NE8000: Step by Step
A configuração de rotas estáticas IPv4 Static Routes no Huawei NE8000 permite definir manualmente o caminho que os pacotes devem seguir para alcançar redes específicas. Essa funcionalidade é útil em redes pequenas, onde o roteamento dinâmico não é necessário, ou para criar caminhos alternativos em redes maiores.
Step-by-Step Guide to Configure IPv4 Static Routes on Huawei NE8000
1. Access the device
- Conecte-se ao Huawei NE8000 via CLI ou interface web.
- Enter your administrative credentials.
2. Enter global configuration mode
VRP (Huawei)
system-view3. Configure a static route
- Adicione uma rota para um destino específico:
(SubstituaVRP (Huawei)
ip route-static 192.168.2.0 255.255.255.0 10.0.0.1192.168.2.0/24pelo destino desejado e10.0.0.1pelo próximo salto.) - (Opcional) Configure uma métrica para priorizar a rota:
(A menor métrica tem prioridade.)VRP (Huawei)
ip route-static 192.168.2.0 255.255.255.0 10.0.0.2 preference 20
4. Configure directly connected routes (optional)
- Adicione rotas para redes conectadas diretamente à interface:
VRP (Huawei)
ip route-static 172.16.0.0 255.255.0.0 GigabitEthernet 0/0/1
5. Verify the static route configuration
- Exiba a tabela de roteamento para confirmar a rota configurada:
VRP (Huawei)
display ip routing-table - Verifique especificamente as rotas estáticas:
VRP (Huawei)
display ip route-static
6. Test route connectivity
- Perform a ping to the configured destination: ping 192.168.2.1
- Confirm that the next hop is reachable.
7. Adjust or remove static routes (optional)
- To modify a static route, recreate it with the updated information.
- Para remover uma rota:
VRP (Huawei)
undo ip route-static 192.168.2.0 255.255.255.0 10.0.0.1
8. Save the configuration
VRP (Huawei)
save