Diferenças
Esta página mostra as diferenças entre as duas revisões da página.
| public:tutoriais:huawei:mpls-te-router-huawei [2026/11/04 13:42] – criado ljbernardi | public:tutoriais:huawei:mpls-te-router-huawei [2026/11/27 17:08] (Atual) – excluído ljbernardi | ||
|---|---|---|---|
| Linha 1: | Linha 1: | ||
| - | ====== Configurando MPLS TE em Roteadores Huawei ====== | ||
| - | |||
| - | |||
| - | **Requisitos: | ||
| - | |||
| - | **Observação: | ||
| - | |||
| - | Itens que vamos configurar: | ||
| - | * explicit-path primário e secundário; | ||
| - | * interface tunnel; | ||
| - | * tunnel-policy; | ||
| - | * VPLS/VPWS onde aplicar. | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | === Configurando o explicit-path === | ||
| - | |||
| - | |||
| - | Nesse passo pode se mudar a rota para a desejada e fazer um tracert para pegar os saltos, caso não seja possível é necessário verificar os IPs salto a salto. | ||
| - | |||
| - | system-view | ||
| - | explicit-path NOME_QUE_IDENTIFIQUE_A_ROTA_1 | ||
| - | next hop IP_SALTO_1 | ||
| - | next hop IP_SALTO_2 | ||
| - | next hop IP_SALTO_3 | ||
| - | next hop IP_SALTO_4 | ||
| - | next hop IP_ÚLTIMO_SALTO | ||
| - | quit | ||
| - | | ||
| - | explicit-path NOME_QUE_IDENTIFIQUE_A_ROTA_2 | ||
| - | next hop IP_SALTO_1 | ||
| - | next hop IP_SALTO_2 | ||
| - | next hop IP_SALTO_3 | ||
| - | next hop IP_SALTO_N include loose | ||
| - | next hop IP_ÚLTIMO_SALTO | ||
| - | quit | ||
| - | | ||
| - | **Observação: | ||
| - | |||
| - | ---- | ||
| - | |||
| - | |||
| - | === Configurando a interface túnel === | ||
| - | |||
| - | |||
| - | Abaixo segue um dos possíveis métodos de configuração. Alguns parâmetros podem ser retirados e mesmo assim o túnel vai subir e funcionar, porém pode ter um comportamento diferente do esperado em caso de comutação de rota ou após queda do túnel. | ||
| - | |||
| - | **Observação: | ||
| - | |||
| - | interface Tunnel TUNNEL_ID | ||
| - | ip address unnumbered interface LoopBack X | ||
| - | tunnel-protocol mpls te | ||
| - | destination IP_REMOTE_LOOPBACK | ||
| - | mpls te tunnel-id TUNNEL_ID | ||
| - | mpls te record-route | ||
| - | mpls te path explicit-path NOME_QUE_IDENTIFIQUE_A_ROTA_1 | ||
| - | mpls te path explicit-path NOME_QUE_IDENTIFIQUE_A_ROTA_2 secondary | ||
| - | mpls te backup hot-standby mode revertive wtr 15 | ||
| - | mpls te backup ordinary best-effort | ||
| - | mpls te reserved-for-binding | ||
| - | statistic enable | ||
| - | |||
| - | Detalhamento dos comandos acima: | ||
| - | |||
| - | '' | ||
| - | |||
| - | '' | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | |||
| - | === Configurando a tunnel-policy === | ||
| - | |||
| - | |||
| - | A configuração da tunnel-policy é bem simples e sem mistérios. | ||
| - | |||
| - | tunnel-policy NOME_QUE_IDENTIFIQUE_O_DESTINO | ||
| - | tunnel binding destination IP_REMOTE_LOOPBACK te Tunnel TUNNEL_ID | ||
| - | |||
| - | Após seguir os passos acima é necessário verificar se o túnel subiu antes de aplicar nos transportes, | ||
| - | |||
| - | Verificação com saída esperada: | ||
| - | |||
| - | display | ||
| - | Tunnel Name : Tunnel TUNNEL_ID | ||
| - | Signalled Tunnel Name: - | ||
| - | Tunnel State Desc : Primary CR-LSP Up and HotBackup CR-LSP Up | ||
| - | Tunnel Attributes | ||
| - | Active LSP : Primary LSP | ||
| - | Traffic Switch | ||
| - | Session ID : 2 | ||
| - | Ingress LSR ID : x.x.x.x | ||
| - | Admin State : UP Oper State : UP | ||
| - | Signaling Protocol | ||
| - | FTid : 2 | ||
| - | Tie-Breaking Policy : None Metric Type : TE | ||
| - | Bfd Cap : None | ||
| - | Reopt : Disabled | ||
| - | Inter-area Reopt : Disabled | ||
| - | Auto BW : Disabled | ||
| - | Current Collected BW: - Auto BW Freq : - | ||
| - | Min BW : - Max BW : - | ||
| - | Offload | ||
| - | Low Value : - High Value : - | ||
| - | Readjust Value : - | ||
| - | Offload Explicit Path Name: - | ||
| - | Tunnel Group : Primary | ||
| - | Interfaces Protected: - | ||
| - | Excluded IP Address : - | ||
| - | Referred LSP Count : 0 | ||
| - | Primary Tunnel | ||
| - | Backup Tunnel | ||
| - | Group Status | ||
| - | IPTN InLabel | ||
| - | BackUp LSP Type : Hot-Standby | ||
| - | Secondary HopLimit | ||
| - | BestEffort HopLimit | ||
| - | Secondary Explicit Path Name: NOME_QUE_IDENTIFIQUE_A_ROTA_2 | ||
| - | Secondary Affinity Prop/Mask: 0x0/0x0 | ||
| - | BestEffort Affinity Prop/Mask: 0x0/0x0 | ||
| - | IsConfigLspConstraint: | ||
| - | Hot-Standby Revertive Mode: Revertive | ||
| - | Hot-Standby Overlap-path: | ||
| - | Hot-Standby Switch State: | ||
| - | Bit Error Detection: | ||
| - | Bit Error Detection Switch Threshold: | ||
| - | Bit Error Detection Resume Threshold: | ||
| - | Ip-Prefix Name : - | ||
| - | P2p-Template Name : - | ||
| - | PCE Delegate | ||
| - | Path Verification : - | ||
| - | Entropy Label : None | ||
| - | Associated Tunnel Group ID: - Associated Tunnel Group Type: - | ||
| - | Auto BW Remain Time : - Reopt Remain Time : - | ||
| - | Metric Inherit IGP : None | ||
| - | Binding Sid : - | ||
| - | Self-Ping | ||
| - | FRR Attr Source | ||
| - | |||
| - | Primary LSP ID : x.x.x.x: | ||
| - | LSP State : UP LSP Type : Primary | ||
| - | Configured Attribute Information: | ||
| - | Setup Priority | ||
| - | IncludeAll | ||
| - | IncludeAny | ||
| - | ExcludeAny | ||
| - | Affinity Prop/ | ||
| - | Actual Attribute Information: | ||
| - | Setup Priority | ||
| - | IncludeAll | ||
| - | IncludeAny | ||
| - | ExcludeAny | ||
| - | Metric Type : TE Metric | ||
| - | Configured Bandwidth Information: | ||
| - | CT0 Bandwidth(Kbit/ | ||
| - | CT2 Bandwidth(Kbit/ | ||
| - | CT4 Bandwidth(Kbit/ | ||
| - | CT6 Bandwidth(Kbit/ | ||
| - | Actual Bandwidth Information: | ||
| - | CT0 Bandwidth(Kbit/ | ||
| - | CT2 Bandwidth(Kbit/ | ||
| - | CT4 Bandwidth(Kbit/ | ||
| - | CT6 Bandwidth(Kbit/ | ||
| - | Explicit Path Name : NOME_QUE_IDENTIFIQUE_A_ROTA_1 | ||
| - | Record Route : Enabled | ||
| - | Route Pinning | ||
| - | FRR Flag : Disabled | ||
| - | IdleTime Remain | ||
| - | BFD Status | ||
| - | Soft Preemption | ||
| - | Reroute Flag : Enabled | ||
| - | Pce Flag : Normal | ||
| - | Path Setup Type : CSPF | ||
| - | Create Modify LSP Reason: - | ||
| - | Self-Ping Status | ||
| - | |||
| - | Backup LSP ID : x.x.x.x: | ||
| - | IsBestEffortPath | ||
| - | LSP State : UP LSP Type : Hot-Standby | ||
| - | Configured Attribute Information: | ||
| - | Setup Priority | ||
| - | IncludeAll | ||
| - | IncludeAny | ||
| - | ExcludeAny | ||
| - | Affinity Prop/ | ||
| - | Actual Attribute Information: | ||
| - | Setup Priority | ||
| - | IncludeAll | ||
| - | IncludeAny | ||
| - | ExcludeAny | ||
| - | Metric Type : TE Metric | ||
| - | Configured Bandwidth Information: | ||
| - | CT0 Bandwidth(Kbit/ | ||
| - | CT2 Bandwidth(Kbit/ | ||
| - | CT4 Bandwidth(Kbit/ | ||
| - | CT6 Bandwidth(Kbit/ | ||
| - | Actual Bandwidth Information: | ||
| - | CT0 Bandwidth(Kbit/ | ||
| - | CT2 Bandwidth(Kbit/ | ||
| - | CT4 Bandwidth(Kbit/ | ||
| - | CT6 Bandwidth(Kbit/ | ||
| - | Explicit Path Name : NOME_QUE_IDENTIFIQUE_A_ROTA_2 | ||
| - | Record Route : Enabled | ||
| - | Route Pinning | ||
| - | FRR Flag : Disabled | ||
| - | IdleTime Remain | ||
| - | BFD Status | ||
| - | Soft Preemption | ||
| - | Reroute Flag : Enabled | ||
| - | Pce Flag : Normal | ||
| - | Path Setup Type : CSPF | ||
| - | Create Modify LSP Reason: - | ||
| - | Self-Ping Status | ||
| - | |||
| - | |||
| - | |||
| - | Caso a saída do comando esteja com algum dos itens em DOWN será necessário verificar IPs inseridos nas configurações, | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | === Aplicando o túnel TE em VSIs === | ||
| - | |||
| - | |||
| - | Após verificar que o túnel subiu e que as rotas principal e backup estão UP vamos aplicar o túnel no serviço para um peer da VSI: | ||
| - | |||
| - | vsi VSI_NAME | ||
| - | tnl-policy NOME_QUE_IDENTIFIQUE_O_DESTINO | ||
| - | |||
| - | ---- | ||
| - | |||
| - | === Aplicando o túnel TE em L2VC === | ||
| - | |||
| - | Após verificar que o túnel subiu e que as rotas principal e backup estão UP vamos aplicar o túnel no serviço: | ||
| - | |||
| - | interface Vlanif XX | ||
| - | mpls l2vc z.z.z.z L2VC_ID tunnel-policy NOME_QUE_IDENTIFIQUE_O_DESTINO | ||
| - | |||
| - | |||
| - | **Observação: | ||
| - | |||
| - | |||
| - | |||