Configuração LSP do Segmento Express
Estabelecer caminho de roteamento por segmentos de ponta a ponta usando segmentos express
Saiba mais sobre os benefícios, casos de uso e a visão geral de como segmentos expressos trabalham para estabelecer um caminho de roteamento por segmentos de ponta a ponta em uma rede multi domínio.
- Benefícios dos segmentos express
- Casos de uso
- Como funciona o segmento Express?
- Como os segmentos express são anunciados?
- Como os segmentos express são usados por um elemento de computação de caminhos?
Benefícios dos segmentos express
-
Segmentos express são uma abstração de roteamento por segmentos (SR) de um caminho underlay. Segmentos express facilitam a criação de caminhos SR de ponta a ponta usando qualquer tecnologia underlay. A tecnologia underlay atualmente suportada são RSVP-TE e SR-TE. O segmento expresso por underlay RSVP-TE é explicado abaixo.
In Figura 1, o Domain 2 utiliza seus LSPs underlay RSVP-TE para gerenciamento de engenharia de tráfego e apresenta esses LSPs RSVP-TE underlay como segmentos expressos para os domínios adjacentes (Domínio 1 e Domínio 3), permitindo assim o estabelecimento de caminhos SR-TE de ponta a ponta.
Figura 1: SR-TE multi-domínio de ponta a ponta com underlay RSVP -
Segmentos expressos reduzem implicitamente o tamanho da lista de segmentos SR comprimindo-os (listas de segmentos) para, no mínimo, um ID de segmento (SID)/rótulo por domínio. Isso se torna útil quando restrições de engenharia de tráfego de ponta a ponta resultariam em uma lista de segmentos que excede os recursos de imposição de rótulos do roteador de entrada. Isso também se torna benéfico quando um ou mais domínios já estão implementando o SR-TE para o gerenciamento de caminhos projetados para tráfego.
Em Figura 2, você pode ver que o Domínio 2 está usando SR-TE e como o uso de segmentos expressos permite que o dispositivo PE1 use três rótulos para atravessar a rede multi domínio em vez de cinco.
Figura 2: SR-TE multi domínio de ponta a ponta com pilha de rótulo reduzida -
Segmentos express permitem que os operadores apresentem uma abstração da rede a domínios adjacentes e/ou sistemas de camada superior.
Para estabelecer um caminho projetado de tráfego por uma série de domínios interconectados ou redes multi domínio, é necessário ter uma certa quantidade de informações de engenharia de tráfego sobre cada domínio de rede. A abstração de topologia permite que o uso de políticas se conecte entre domínios. A abstração de topologia não necessariamente oferece todas as opções de conectividade possíveis, mas apresenta uma visão de conectividade potencial de acordo com as políticas que determinam como os recursos de domínio precisam ser usados. O domínio poderia ser construído como uma malha de nó de borda para segmentos expressos de nós de fronteira.
Usando Figura 2a visão do PE2 de um sistema de engenharia de tráfego de ponta a ponta está representado em seu banco de dados de engenharia de tráfego local, conforme mostrado em Figura 3.
Figura 3: Domínio de engenharia de tráfego abstrato
Casos de uso
Esta seção descreve alguns casos de uso para estabelecer conectividade SR-TE de ponta a ponta. RFC7926 introduz um conjunto abrangente de casos de uso e firewall, juntamente com uma arquitetura para facilitar a troca de informações de enlaces de engenharia de tráfego e nós entre domínios. À medida que as redes dos provedores de serviços estão se expandindo devido ao crescimento contínuo, as redes multi domínio estão se tornando mais prevalentes. Nessas redes multi domínio, é necessário estabelecer um caminho projetado de tráfego de ponta a ponta entre um ou mais domínios de uma fonte a um destino
Conectividade SR-TE intra e inter domínio usando segmentos express
Os segmentos express têm a capacidade de abstrair as informações de engenharia de tráfego quando a troca de informações de roteamento acontece entre domínios. As informações de engenharia de tráfego usadas como critério para a seleção de caminhos são os dados relacionados a nós e links projetados para tráfego. As informações de engenharia de tráfego podem ser métricas de enlaces como IGP, engenharia de tráfego, latência ou atributos de enlace administrativo, como afinidades. Os segmentos express são melhor descritos como links de engenharia de tráfego virtual que facilitam a abstração de LSPs underlay.
Next-hop aprimorado sob demanda
O Next-hop sob demanda aprimorado (EODN) (também conhecido como políticas SR desencadeadas pelo BGP) facilita o provisionamento dinâmico das políticas sr-TE de ponta a ponta, com restrições, após a chegada de rotas de serviços. Em grandes redes com centenas de dispositivos pe criando e mantendo políticas de engenharia de tráfego em qualquer PE de entrada para cada SAÍDA PE é desafiador. Considerar as cores de serviços específicos (por VPN ou por grupo de prefixos) torna as coisas ainda mais complicadas e mais difíceis de manter e solucionar problemas. O BGP acionou o SR-TE para a tarefa criando automaticamente túneis SR dinâmicos com base em modelos pré-configurados. Não é necessário provisionar PEs de entrada com configuração para cada SAÍDA PE.
Como funciona o segmento Express?
Segmentos express podem ser usados para estabelecer caminhos projetados de tráfego de ponta a ponta entre redes projetadas de tráfego interconectadas. Segmentos express (também conhecidos como links de engenharia de tráfego virtual) são gerados dinamicamente por meio de políticas que correspondam aos LSPs underlay. Segmentos expressos e a topologia abstrata correspondente (exigida por RFC7926) são gerados com políticas.
Para aplicar uma política, inclua a policy policy-name
declaração de configuração no nível [edit protocols express-segment traffic-engineering
] de hierarquia.
O policy-name
opcional. Se um nome de política não for definido, a política importa implicitamente todos os segmentos expressos para o banco de dados local de engenharia de tráfego. Um modelo de segmento expresso cria automaticamente um mapeamento um-a-um de links expressos.
Para configurar o segmento expresso, inclua a express-segment
declaração de configuração no nível [edit protocols
] de hierarquia.
Deixe-nos consultar Figura 1 e usar o par de LSPs RSVP-TE mostrados entre nós de borda C1 e C4 e como segmentos expressos são gerados representando os LSPs underlay. Em Figura 4, uma política é criada para representar dois LSPs RSVP-TE (ouro e ouro líquido) como um único segmento expresso.
A seguir, uma política de amostra em que o nome da política é combinado com uma expressão regular e o ponto final dos LSPs RSVP-TE:
protocols { express-segment-set gold-exp-seg { policy gold; } } policy-options { policy-statement gold { from { route-filter 10/8 { install-next-hop lsp-regex *gold; } } then accept; } }
Na saída de amostra a seguir, você pode ver que o segmento expresso () recém-criado (Gold-Exp-Set-192.168.1.4) juntamente com os atributos de engenharia de tráfego são herdados dos túneis RSVP-TE underlay:
user@C1#show express-segments name gold-exp-seg-192.168.1.4 detail
Gold-Exp-Set-192.168.1.4
To: 192.168.1.4, Set: gold-exp-set
Status: Up (since 4d 11:09:05)
Label: 19 (Route installed in mpls.0, TED entry added)
LinkAttributes:
ID: 2147483655
TE-Metric: 10*, IGP-Metric: 30
AdminGroups: gold, liquid-gold
SRLGs: fiber-span-101
BW: 1000Mbps
UnderlayPaths:
RSVP-LSP C1_to_C4_gold
TE-Metric: 30, IGP-Metric: 30
AdminGroups: gold
SRLGs: fiber-span-101
BW: 500Mbps
RSVP-LSP C1_to_C4_liquid_gold
TE-Metric: 30, IGP-Metric: 30
AdminGroups: liquid-gold
SRLGs: None
BW: 500Mbps
Você pode observar o seguinte na saída:
-
Nomeação automática do segmento expresso (
Gold-Exp-Set-192.168.1.4
). -
Os atributos de engenharia de tráfego (largura de banda, métricas, grupos de administradores, SRLGs) dos RSVP-LSPs underlay são herdados pelo segmento expresso.
-
O segmento expresso é um link não numerado projetado para tráfego e foi adicionado ao banco de dados de engenharia de tráfego.
-
O rótulo 19 foi atribuído e instalado na
mpls.0
tabela de encaminhamento como o SID de adjacência para o link de engenharia de tráfego virtual SR.
A seguir, um exemplo em que o destino LSP SR-TE é combinado:
protocols { express-segments { segment-set set1sr { membership-policy expresspolsr1; } traffic-engineering; } policy-options { policy-statement expresspolsr1 { from { protocol spring-te; route-filter 3.3.3.3/32 exact; } then accept;
Na saída de amostra a seguir, você pode ver o segmentoset1sr-3.3.3.3 expresso () recém-criado a partir dos túneis underlay SR-TE nãocolorizados:
user@C1show express-segments detail Name: set1sr-3.3.3.3 To: 3.3.3.3, Type: Dynamic (Set: set1sr) Label: 16 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 5d 20:37:08) LinkAttributes: LocalID: 2147483649 TE-Metric: 20, IGP-Metric: 20 BW: 0bps UnderlayPaths: 1 SRTE LSP: lsp1to3_sr TE-Metric: 0, IGP-Metric: 0 BW: 0bps
Como os segmentos express são anunciados?
Os segmentos express são anunciados em limites de domínio ou para controladores de nível mais alto e elementos de computação de caminho (PCEs) usando o estado do link BGP. Ao trocar informações pelo estado do link BGP, as extensões para o estado do link BGP são usadas para anunciar segmentos expressos como links projetados para tráfego. Os links projetados por tráfego por segmentos expressos e outros links normais de engenharia de tráfego aparecem no banco de dados de estado de enlace de engenharia de tráfego de qualquer LSR na rede e são usados para computação de caminhos projetados de tráfego de ponta a ponta. As entradas de banco de dados de engenharia de tráfego por segmentos express são importadas e exportadas da lsdist.0 tabela fou do anúncio através do estado do link BGP com a seguinte configuração de importação e configuração de exportação do banco de dados de engenharia de tráfego:
protocols { mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy es_2_bgpls; } export { policy bgpls_2_ted; } } } } bgp { group te-peers { family traffic-engineering { unicast; } export abstract-topo; } } }
Figura 5 fornece uma representação visual de como os links e nós de engenharia de tráfego são espelhados entre o banco de dados de engenharia de tráfego local e o RIB que o lsdist.0 BGP-LS usa para anúncio. Como ilustrado, existem vários pontos de anexo de políticas.
Como os segmentos express são usados por um elemento de computação de caminhos?
A política de exportação de estado do link BGP é um lugar eficaz para criar uma topologia abstrata ou personalizada que é anunciada a um peer projetado para tráfego. Por exemplo, você pode querer anunciar apenas o segmento expresso e os links e nós TE do Domínio 3 para PE2 de forma que a topologia projetada em tráfego seja abstraída conforme mostrado em Figura 6. A visão abstraída é então usada pelo PE2 para computação de caminhos de ponta a ponta.
A seguir, uma configuração de amostra de uma política de exportação de estado de enlace BGP no C1:
policy-options { policy-statement abstract-topo { from { traffic-engineering { protocol express-segment; ipv4-prefix { as 3; } } } then accept; } }
A seguir, uma configuração de política SR de amostra no roteador PE2 para estabelecer um caminho multi domínio de ponta a ponta de PE2 a PE3:
protocols { source-packet-routing { source-routing-path pe2-to-pe3 { to 192.168.70.1; color 10; primary { sl1 { compute { profile_any-path; } } } } } }
O caminho de ponta a ponta resultante está representado em Figura 7. Você pode ver que o SID de adjacência do segmento express (rótulo 19) é usado na lista de segmentos SR, resultando no equilíbrio de carga do tráfego sobre os LSPs RSVP-TE de ouro líquido e ouro líquido dentro do Domínio 2.
Exemplo: Conectividade SR-TE entre domínios usando segmentos express por meio de underlay RSVP-TE
Use este exemplo para aprender a estabelecer uma conectividade SR-TE entre domínios de ponta a ponta usando segmentos expressos.
Requisitos
Este exemplo usa os seguintes componentes de hardware e software:
-
Roteadores da Série MX como provedores de borda, nós de borda e roteadores intermediários.
-
Junos OS Release 20.4R1 ou posterior em todos os dispositivos.
Visão geral
A topologia a seguir (Figura 8) mostra dois domínios SR-TE (AS100 e AS300) executando a interconexão EBGP-LS por meio de um domínio RSVP-TE (AS200):
Topologia
Nesta topologia, está estabelecido um caminho SR-TE de ponta a ponta entre o roteador PE1 e o roteador PE2. Os segmentos de engenharia por pares de saída (EPE) são definidos em roteadores PE1 e PE2 para direcionar o tráfego em direção aos nós de fronteira diretamente conectados BN1/BN2 e BN3/BN4, respectivamente. Os segmentos de EPE definidos nos nós de borda são anunciados internamente pelo estado do link BGP. Esses dois domínios SR-TE estão interconectados através do domínio (AS200) que está aproveitando os LSPs RSVP-TE para estabelecer caminhos internos.
Os nós de borda do domínio AS200 facilitam a abstração de informações SR-TE entre domínios. Os segmentos express são criados em nós de fronteira (BN1, BN2, BN3 e BN4). Os segmentos express são criados em um relacionamento único com os LSPs RSVP-TE subjacentes e todos os segmentos expressos são inseridos no banco de dados local de TE do nó de fronteira para um anúncio de estado de link BGP subsequente. O domínio AS200 utiliza underlays RSVP-TE LSP para o gerenciamento de TE e apresenta esses LSPs RSVP-TE underlay como segmentos expressos para os domínios AS100 e AS300, permitindo que os domínios tenham conectividade SR-TE LSP de ponta a ponta.
A tabela a seguir descreve os domínios, roteadores e conexões na topologia:
Domínio |
Dispositivos |
Endereço ID/Lo do roteador) |
Detalhes da conexão |
---|---|---|---|
AS65100 (EBGP-LS/ SR-TE LSP) |
R0(roteador PE1) |
10.100.100.100 10.100.100.101 |
Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.1.1/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.2.1/24. |
AS65200 (RSVP-TE LSP) |
R1(roteador BN1) |
10.1.1.1.1 |
Conectado ao R0 (roteador PE1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.1.2/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/3, endereço IP atribuído 192.168.4.1/24. Conectado ao R2 (roteador intermediário) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.3.1/24. Conectado ao R5 (roteador intermediário) por meio da interface ge-0/0/4, endereço IP atribuído 192.168.5.1/24. |
R4(roteador BN2) |
10,4,4,4,4 |
Conectado ao R0 (roteador PE1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.2.2/24. Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.4.2/24. Conectado ao R2 (roteador intermediário) por meio da interface ge-0/0/3, endereço IP atribuído 192.168.7.1/24. Conectado ao R5 (roteador intermediário) pela interface ge-0/0/4, endereço IP atribuído 192.168.13.1/24. |
|
R2 (roteador intermediário) |
10.2.2.2.2 |
Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.3.2/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.7.1/24. Conectado ao R5 (roteador intermediário) pela interface ge-0/0/3, endereço IP atribuído 192.168.8.1/24. Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.6.1/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/4, endereço IP atribuído 192.168.9.1/24. |
|
R5(Roteador intermediário) |
10,5,5,5,5 |
Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.5.2/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/3, endereço IP atribuído 192.168.13.2/24. Conectado ao R2 (roteador intermediário) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.8.2/24. Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.10.2/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/4, endereço IP atribuído 192.168.14.1/24. |
|
R3(roteador BN3) |
10.3.3.3 |
Conectado ao R7 (roteador PE2) pela interface ge-0/0/3, endereço IP atribuído 192.168.12.1/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.11.1/24. Conectado ao R2 (roteador intermediário) pela interface ge-0/0/0, endereço IP atribuído 192.168.6.2/24. Conectado ao R5 (roteador intermediário) pela interface ge-0/0/1, endereço IP atribuído 192.168.10.1/24. |
|
R6(roteador BN4) |
10,6,6,6,6 |
Conectado ao R7 (roteador PE2) pela interface ge-0/0/3, endereço IP atribuído 192.168.15.1/24. Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.11.2/24. Conectado ao R2 (roteador intermediário) pela interface ge-0/0/0, endereço IP atribuído 192.168.9.2/24. Conectado ao R5 (roteador intermediário) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.14.2/24. |
|
AS65300(EBGP-LS/SR-TE LSP) |
R7(roteador PE2) |
10,7,7,7 |
Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.12.2/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.15.2/24. |
Configuração
Para interconectar uma rede multi domínio e estabelecer um caminho SR de ponta a ponta usando segmentos expressos, execute essas tarefas:
- Configuração rápida da CLI
- Configurar R0 (roteador PE1)
- Configure o R1 (roteador BN1)
- Configure o R4 (roteador BN2)
- Configure o R2 (roteador intermediário)
- Configurar R5 (roteador intermediário)
- Configure o R3 (roteador BN3)
- Configure o R6 (roteador BN4)
- Configure o R7 (roteador PE2)
Configuração rápida da CLI
Para configurar rapidamente este exemplo, copie os seguintes comandos, cole-os em um arquivo de texto, remova quaisquer quebras de linha, altere todos os detalhes necessários para combinar com a configuração da sua rede, copiar e colar os comandos na CLI no nível de [edit]
hierarquia e, em seguida, entrar no commit
modo de configuração.
Dispositivo R0 (roteador PE1)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R1_1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4_1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.100.100.100/32 set interfaces lo0 unit 0 family inet address 10.100.100.101/32 set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 set routing-options static route 10.7.7.71/32 resolve set routing-options router-id 10.100.100.100 set routing-options autonomous-system 65100 set routing-options forwarding-table ecmp-fast-reroute set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_epe set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group brown set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.2.2 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group brown set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface all set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing compute-profile ecompute1 admin-group include-any red set protocols source-packet-routing compute-profile ecompute1 admin-group include-any brown set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression set protocols source-packet-routing compute-profile ecompute2 admin-group include-any red set protocols source-packet-routing compute-profile ecompute2 admin-group include-any blue set protocols source-packet-routing compute-profile ecompute2 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1 set protocols source-packet-routing source-routing-path ecomputelsp2 to 10.7.7.7 set protocols source-packet-routing source-routing-path ecomputelsp2 color 7001 set protocols source-packet-routing source-routing-path ecomputelsp2 primary p1 compute ecompute2
Dispositivo R1 (roteador BN1)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R0_1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R2 set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description to-R4 set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description to-R5 set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.1.1.1/32 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp1to6_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp1to3_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.1.1.1 set routing-options autonomous-system 65200 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.1.1.1 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols express-segments segment-template template1 admin-group red set protocols express-segments segment-template template1 metric te 200 set protocols express-segments segment-template template1 metric igp 100 set protocols express-segments segment-set r1-exp-set1 membership-policy expresspol1 set protocols express-segments segment-set r1-exp-set1 template template1 set protocols express-segments segment-set r1-exp-set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp1to6_a to 10.6.6.6 set protocols mpls label-switched-path lsp1to6_a admin-group include-any brown set protocols mpls label-switched-path lsp1to6_a admin-group include-any red set protocols mpls label-switched-path lsp1to6_b to 10.6.6.6 set protocols mpls label-switched-path lsp1to6_b admin-group include-any brown set protocols mpls label-switched-path lsp1to6_b admin-group include-any blue set protocols mpls label-switched-path lsp1to6_c to 10.6.6.6 set protocols mpls label-switched-path lsp1to6_c admin-group include-any blue set protocols mpls label-switched-path lsp1to3_a to 10.3.3.3 set protocols mpls label-switched-path lsp1to3_a admin-group include-any brown set protocols mpls label-switched-path lsp1to3_a admin-group include-any red set protocols mpls label-switched-path lsp1to3_b to 10.3.3.3 set protocols mpls label-switched-path lsp1to3_b admin-group include-any blue set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group brown set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface all set protocols rsvp interface all link-protection
Dispositivo R4 (roteador BN2)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R0 set interfaces ge-0/0/0 unit 0 family inet address 192.168.2.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R2 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R5 set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.4.4.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp4to6_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp4to3_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.4.4.4 set routing-options autonomous-system 65200 set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.4.4.4 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown set protocols express-segments segment-set r4-exp-set1 membership-policy expresspol1 set protocols express-segments segment-set r4-exp-set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp4to6_a to 10.6.6.6 set protocols mpls label-switched-path lsp4to6_a admin-group include-any brown set protocols mpls label-switched-path lsp4to6_a admin-group include-any red set protocols mpls label-switched-path lsp4to6_b to 10.6.6.6 set protocols mpls label-switched-path lsp4to6_b admin-group include-any blue set protocols mpls label-switched-path lsp4to3_a to 10.3.3.3 set protocols mpls label-switched-path lsp4to3_a admin-group include-any brown set protocols mpls label-switched-path lsp4to3_a admin-group include-any red set protocols mpls label-switched-path lsp4to3_b to 10.3.3.3 set protocols mpls label-switched-path lsp4to3_b admin-group include-any brown set protocols mpls label-switched-path lsp4to3_c to 10.3.3.3 set protocols mpls label-switched-path lsp4to3_c admin-group include-any brown set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
Dispositivo R2 (roteador intermediário)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R3 set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4 set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R5 set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.2.2.2/32 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis set policy-options policy-statement nlri2bgp_igp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering set policy-options policy-statement ted2nlri_1 term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.2.2.2 set routing-options autonomous-system 65200 set protocols bgp group RR1 type internal set protocols bgp group RR1 local-address 10.2.2.2 set protocols bgp group RR1 family traffic-engineering unicast set protocols bgp group RR1 neighbor 10.1.1.1 set protocols bgp group RR1 neighbor 10.3.3.3 set protocols bgp group RR1 neighbor 10.6.6.6 set protocols bgp group RR1 neighbor 10.4.4.4 set protocols bgp cluster 10.2.2.2 set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
Dispositivo R5 (roteador intermediário)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R2 set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R3 set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R4 set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.5.5.5/32 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.5.5.5 set routing-options autonomous-system 65200 set protocols bgp group RR2 type internal set protocols bgp group RR2 family inet unicast set protocols bgp group RR2 family traffic-engineering unicast set protocols bgp group RR2 neighbor 10.1.1.1 set protocols bgp group RR2 neighbor 10.3.3.3 set protocols bgp group RR2 neighbor 10.6.6.6 set protocols bgp group RR2 neighbor 10.4.4.4 set protocols bgp cluster 10.5.5.5 set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
Dispositivo R3 (roteador BN3)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R2 set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R5 set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R6 set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R7 set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.3.3.3/32 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.3.3.3 set routing-options autonomous-system 65200 set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.3.3.3 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown set protocols bgp group ebgp1 vpn-apply-export set protocols express-segments segment-set set1 membership-policy expresspol1 set protocols express-segments segment-set set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 passive set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp3to1_a to 10.1.1.1 set protocols mpls label-switched-path lsp3to1_a admin-group include-any red set protocols mpls label-switched-path lsp3to1_a admin-group include-any brown set protocols mpls label-switched-path lsp3to4_a to 10.4.4.4 set protocols mpls label-switched-path lsp3to4_a admin-group include-any red set protocols mpls label-switched-path lsp3to4_a admin-group include-any brown set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
Dispositivo R6 (roteador BN4)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R2 set interfaces ge-0/0/0 unit 0 family inet address 192.168.9.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R3 set interfaces ge-0/0/1 unit 0 family inet address 192.168.11.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R5 set interfaces ge-0/0/2 unit 0 family inet address 192.168.14.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R7 set interfaces ge-0/0/3 unit 0 family inet address 192.168.15.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.6.6.6/32 set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp6to1_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp6to4_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.6.6.6 set routing-options autonomous-system 65200 set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.6.6.6 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.15.2 peer-as 65300 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 label 7167 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.15.2 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown set protocols express-segments segment-set set1 membership-policy expresspol1 set protocols express-segments segment-set set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp6to1_a to 10.1.1.1 set protocols mpls label-switched-path lsp6to1_a admin-group include-any red set protocols mpls label-switched-path lsp6to1_a admin-group include-any brown set protocols mpls label-switched-path lsp6to4_a to 10.4.4.4 set protocols mpls label-switched-path lsp6to4_a admin-group include-any red set protocols mpls label-switched-path lsp6to4_a admin-group include-any brown set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group brown set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
Dispositivo R7 (roteador PE2)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R3 set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R6 set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.7.7.7/32 set interfaces lo0 unit 0 family inet address 10.7.7.71/32 set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options resolution-map map1 mode ip-color set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 set routing-options static route 10.100.100.101/32 resolve set routing-options router-id 10.7.7.7 set routing-options autonomous-system 65300 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_epe set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group brown set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group brown set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface all set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
Configurar R0 (roteador PE1)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R0:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R0#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
[edit] user@R0#set interfaces ge-0/0/0 description To_R1_1 user@R0#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 user@R0#set interfaces ge-0/0/0 unit 0 family iso user@R0#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R0#set interfaces ge-0/0/2 description To_R4_1 user@R0#set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 user@R0#set interfaces ge-0/0/2 unit 0 family iso user@R0#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.100/32 user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.101/32 user@R0#set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R0#set routing-options router-id 10.100.100.100 user@R0#set routing-options autonomous-system 65100 user@R0#set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 user@R0#set routing-options static route 10.7.7.71/32 resolve
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R0#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R0#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R0#set policy-options policy-statement pplb then load-balance per-packet user@R0#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement ted2nlri term 1 then accept
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R0#set protocols bgp group ebgp1 type external user@R0#set protocols bgp group ebgp1 family inet unicast user@R0#set protocols bgp group ebgp1 family traffic-engineering unicast user@R0#set protocols bgp group ebgp1 export nlri2bgp_epe user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group brown user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.2.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group brown
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R0#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R0#set protocols mpls traffic-engineering database import policy ted2nlri user@R0#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R0#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R0#set protocols mpls admin-groups red 0 user@R0#set protocols mpls admin-groups blue 1 user@R0#set protocols mpls admin-groups brown 5
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R0#set protocols mpls label-range static-label-range 7000 70000
-
Configure o MPLS nas interfaces.
[edit] user@R0#set protocols mpls interface all
-
Configure as políticas SR-TE no roteador de entrada para habilitar a política SR-TE de ponta a ponta.
[edit] user@R0#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R0#set protocols source-packet-routing compute-profile ecompute1 admin-group include-any red user@R0#set protocols source-packet-routing compute-profile ecompute1 admin-group include-any brown user@R0#set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression user@R0#set protocols source-packet-routing compute-profile ecompute2 admin-group include-any red user@R0#set protocols source-packet-routing compute-profile ecompute2 admin-group include-any blue user@R0#set protocols source-packet-routing compute-profile ecompute2 no-label-stack-compression user@R0#set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 user@R0#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 color 7001 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 primary p1 compute ecompute2
Resultados
A partir do modo de configuração, confirme sua configuração entrando noshow chassis
, show interfaces
show policy-options
show routing-options
e show protocols
comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1_1; unit 0 { family inet { address 192.168.1.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4_1; unit 0 { family inet { address 192.168.2.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.100.100.100/32; } family iso { address 49.0001.000a.0a0a.0a00; } } } } policy-options { policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } } routing-options { static { route 10.7.7.71/32 { next-hop 10.7.7.7; resolve; } } router-id 10.100.100.100; autonomous-system 65100; forwarding-table { ecmp-fast-reroute; } } protocols { bgp { group ebgp1 { type external; family inet { unicast; } family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 192.168.1.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR1 { label 7101; next-hop 192.168.1.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.2.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR4 { label 7104; next-hop 192.168.2.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface all; } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } compute-profile ecompute1 { admin-group include-any [ red brown ]; no-label-stack-compression; } compute-profile ecompute2 { admin-group include-any [ red blue ]; no-label-stack-compression; } source-routing-path computelsp1 { to 10.7.7.7; install 10.7.7.71; primary { p1 { compute { compute1; } } } } source-routing-path ecomputelsp1 { to 10.7.7.7; color 7000; primary { p1 { compute { ecompute1; } } } } source-routing-path ecomputelsp2 { to 10.7.7.7; color 7001; primary { p1 { compute { ecompute2; } } } } } }
Configure o R1 (roteador BN1)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R1:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R1#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
[edit] user@R1#set interfaces ge-0/0/0 description To_R0_1 user@R1#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 user@R1#set interfaces ge-0/0/0 unit 0 family iso user@R1#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/2 description To_R2 user@R1#set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 user@R1#set interfaces ge-0/0/2 unit 0 family iso user@R1#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/3 description to-R4 user@R1#set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 user@R1#set interfaces ge-0/0/3 unit 0 family iso user@R1#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/4 description to-R5 user@R1#set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 user@R1#set interfaces ge-0/0/4 unit 0 family iso user@R1#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R1#set interfaces lo0 unit 0 family inet address 10.1.1.1/32 user@R1#set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R1#set routing-options router-id 10.1.1.1 user@R1#set routing-options autonomous-system 65200
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados local de TE para lsdist.0 e políticas para importação do lsdist.0 para o banco de dados te local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R1#set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp1to6_a user@R1#set policy-options policy-statement expresspol1 then accept user@R1#set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp1to3_a user@R1#set policy-options policy-statement expresspol2 then accept user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R1#set policy-options policy-statement pplb then load-balance per-packet user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R1#set protocols bgp group ebgp1 type external user@R1#set protocols bgp group ebgp1 family inet-vpn unicast user@R1#set protocols bgp group ebgp1 family traffic-engineering unicast user@R1#set protocols bgp group ebgp1 export nlri2bgp_stat user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown user@R1#set protocols bgp group ibgp1 type internal user@R1#set protocols bgp group ibgp1 local-address 10.1.1.1 user@R1#set protocols bgp group ibgp1 family traffic-engineering unicast user@R1#set protocols bgp group ibgp1 export nlri2bgp_epe user@R1#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R1#set protocols bgp group ibgp1 neighbor 10.5.5.5
-
Configure o conjunto de segmentos expressos e expresse modelos de segmentos. O que o modelo de segmento expresso faz é atribuir ou substituir atributos herdados aos segmentos expressos, independentemente dos atributos underlay. O nome
r1-exp-set1
do segmento expresso está prefixado no end point underlay para nomeação automática.[edit] user@R1#set protocols express-segments segment-template template1 admin-group red user@R1#set protocols express-segments segment-template template1 metric te 200 user@R1#set protocols express-segments segment-template template1 metric igp 100 user@R1#set protocols express-segments segment-set r1-exp-set1 membership-policy expresspol1 user@R1#set protocols express-segments segment-set r1-exp-set1 template template1 user@R1#set protocols express-segments segment-set r1-exp-set2 membership-policy expresspol2 user@R1#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS nas interfaces e aplique grupos administrativos MPLS nessas interfaces.
[edit] user@R1#set protocols isis interface ge-0/0/2.0 user@R1#set protocols isis interface ge-0/0/3.0 user@R1#set protocols isis interface ge-0/0/4.0 user@R1#set protocols isis interface lo0.0 passive user@R1#set protocols isis level 1 disable user@R1#set protocols isis level 2 wide-metrics-only user@R1#set protocols mpls interface ge-0/0/3.0 admin-group red user@R1#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R1#user@R1#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R1#set protocols mpls interface all
-
Habilite a proteção de links em todas as interfaces RSVP. Usando a proteção de links, você pode configurar uma rede para redirecionar o tráfego rapidamente em torno de links quebrados.
[edit] user@R1#set protocols rsvp interface all link-protection
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando as políticas.
[edit] user@R1#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R1#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R1#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R1#set protocols mpls admin-groups red 0 user@R1#set protocols mpls admin-groups blue 1 user@R1#set protocols mpls admin-groups brown 5
-
Configure o MPLS com um caminho comuado por rótulos (LSP) e inclua grupos administrativos.
[edit] user@R1#set protocols mpls label-switched-path lsp1to6_a to 10.6.6.6 user@R1#set protocols mpls label-switched-path lsp1to6_a admin-group include-any brown user@R1#set protocols mpls label-switched-path lsp1to6_a admin-group include-any red user@R1#set protocols mpls label-switched-path lsp1to6_b to 10.6.6.6 user@R1#set protocols mpls label-switched-path lsp1to6_b admin-group include-any brown user@R1#set protocols mpls label-switched-path lsp1to6_b admin-group include-any blue user@R1#set protocols mpls label-switched-path lsp1to6_c to 10.6.6.6 user@R1#set protocols mpls label-switched-path lsp1to6_c admin-group include-any blue user@R1#set protocols mpls label-switched-path lsp1to3_a to 10.3.3.3 user@R1#set protocols mpls label-switched-path lsp1to3_a admin-group include-any brown user@R1#set protocols mpls label-switched-path lsp1to3_a admin-group include-any red user@R1#set protocols mpls label-switched-path lsp1to3_b to 10.3.3.3 user@R1#set protocols mpls label-switched-path lsp1to3_b admin-group include-any blue user@R1#set protocols mpls label-range static-label-range 7000 70000
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0_1; unit 0 { family inet { address 192.168.1.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R2; unit 0 { family inet { address 192.168.3.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description to-R4; unit 0 { family inet { address 192.168.4.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description to-R5; unit 0 { family inet { address 192.168.5.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.1.1.1/32; } family iso { address 49.0001.0001.0101.0100; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.6.6.6/32 exact { install-nexthop lsp lsp1to6_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.3.3.3/32 exact { install-nexthop lsp lsp1to3_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.1.1.1; autonomous-system 65200; } protocols { bgp { group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.1.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8110; next-hop 192.168.1.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } group ibgp1 { type internal; local-address 10.1.1.1; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } } express-segments { segment-template template1 { admin-group red; metric { te 200; igp 100; } } segment-set r1-exp-set1 { membership-policy expresspol1; template { template1; } } segment-set r1-exp-set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp1to6_a { to 10.6.6.6; admin-group include-any [ brown red ]; } label-switched-path lsp1to6_b { to 10.6.6.6; admin-group include-any [ brown blue ]; } label-switched-path lsp1to3_a { to 10.3.3.3; admin-group include-any [ brown red ]; } label-switched-path lsp1to3_b { to 10.3.3.3; admin-group include-any [ blue ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/4.0 { admin-group blue; } interface all; } rsvp { interface all { link-protection; } } }
Configure o R4 (roteador BN2)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R4:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R4#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R4#set interfaces ge-0/0/0 description To_R0 user@R4#set interfaces ge-0/0/0 unit 0 family inet address 192.168.2.2/24 user@R4#set interfaces ge-0/0/0 unit 0 family iso user@R4#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/2 description To_R1 user@R4#set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 user@R4#set interfaces ge-0/0/2 unit 0 family iso user@R4#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/3 description To_R2 user@R4#set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.2/24 user@R4#set interfaces ge-0/0/3 unit 0 family iso user@R4#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/4 description To_R5 user@R4#set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 user@R4#set interfaces ge-0/0/4 unit 0 family iso user@R4#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R4#set interfaces lo0 unit 0 family inet address 10.4.4.4/32 user@R4#set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R4#set routing-options router-id 10.4.4.4 user@R4#set routing-options autonomous-system 65200
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R4#set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp4to6_a user@R4#set policy-options policy-statement expresspol1 then accept user@R4#set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp4to3_a user@R4#set policy-options policy-statement expresspol2 then accept user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R4#set policy-options policy-statement pplb then load-balance per-packet user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
Configure o conjunto de segmentos expressos e expresse modelos de segmentos. O que o modelo de segmento expresso faz é atribuir ou substituir atributos herdados aos segmentos expressos, independentemente dos atributos underlay. O nome
r4-exp-set1
do segmento expresso está prefixado no end point underlay para nomeação automática.[edit] user@R4#set protocols express-segments segment-set r4-exp-set1 membership-policy expresspol1 user@R4#set protocols express-segments segment-set r4-exp-set2 membership-policy expresspol2 user@R4#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS e MPLS nas interfaces.
[edit] user@R4#set protocols isis interface ge-0/0/0.0 user@R4#set protocols isis interface ge-0/0/2.0 user@R4#set protocols isis interface ge-0/0/3.0 user@R4#set protocols isis interface ge-0/0/4.0 user@R4#set protocols isis interface lo0.0 passive user@R4#set protocols isis level 1 disable user@R4#set protocols isis level 2 wide-metrics-only user@R4#set protocols mpls interface ge-0/0/2.0 admin-group red user@R4#set protocols mpls interface ge-0/0/4.0 admin-group brown user@R4#set protocols mpls interface all
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R4#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R4#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R4#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R4#set protocols mpls admin-groups red 0 user@R4#set protocols mpls admin-groups blue 1 user@R4#set protocols mpls admin-groups brown 5
-
Configure o MPLS com um caminho comuado por rótulos (LSP) e inclua grupos administrativos.
[edit] user@R4#set protocols mpls label-switched-path lsp4to6_a to 10.6.6.6 user@R4#set protocols mpls label-switched-path lsp4to6_a admin-group include-any brown user@R4#set protocols mpls label-switched-path lsp4to6_a admin-group include-any red user@R4#set protocols mpls label-switched-path lsp4to6_b to 10.6.6.6 user@R4#set protocols mpls label-switched-path lsp4to6_b admin-group include-any blue user@R4#set protocols mpls label-switched-path lsp4to3_a to 10.3.3.3 user@R4#set protocols mpls label-switched-path lsp4to3_a admin-group include-any brown user@R4#set protocols mpls label-switched-path lsp4to3_a admin-group include-any red user@R4#set protocols mpls label-switched-path lsp4to3_b to 10.3.3.3 user@R4#set protocols mpls label-switched-path lsp4to3_b admin-group include-any brown user@R4#set protocols mpls label-switched-path lsp4to3_c to 10.3.3.3 user@R4#set protocols mpls label-switched-path lsp4to3_c admin-group include-any brown
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R4#set protocols mpls label-range static-label-range 7000 70000
-
Habilite a proteção de links em todas as interfaces RSVP. Usando a proteção de links, você pode configurar uma rede para redirecionar o tráfego rapidamente em torno de links quebrados.
[edit] user@R4#set protocols rsvp interface all link-protection
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0; unit 0 { family inet { address 192.168.2.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R1; unit 0 { family inet { address 192.168.4.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R2; unit 0 { family inet { address 192.168.7.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R5; unit 0 { family inet { address 192.168.13.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.4.4.4/32; } family iso { address 49.0001.0004.0404.0400; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.6.6.6/32 exact { install-nexthop lsp lsp4to6_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.3.3.3/32 exact { install-nexthop lsp lsp4to3_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.4.4.4; autonomous-system 65200; } protocols { bgp { group ibgp1 { type internal; local-address 10.4.4.4; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.2.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8140; next-hop 192.168.2.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set r4-exp-set1 { membership-policy expresspol1; } segment-set r4-exp-set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/0.0; interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp4to6_a { to 10.6.6.6; admin-group include-any [ brown red ]; } label-switched-path lsp4to6_b { to 10.6.6.6; admin-group include-any [ blue ]; } label-switched-path lsp4to3_a { to 10.3.3.3; admin-group include-any [ brown red ]; } label-switched-path lsp4to3_b { to 10.3.3.3; admin-group include-any [ brown ]; } label-switched-path lsp4to3_c { to 10.3.3.3; admin-group include-any [ brown ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/4.0 { admin-group brown; } interface all; } rsvp { interface all { link-protection; } } }
Configure o R2 (roteador intermediário)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R2:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R2#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R2#set interfaces ge-0/0/0 description To_R1 user@R2#set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 user@R2#set interfaces ge-0/0/0 unit 0 family iso user@R2#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/1 description To_R3 user@R2#set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 user@R2#set interfaces ge-0/0/1 unit 0 family iso user@R2#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/2 description To_R4 user@R2#set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 user@R2#set interfaces ge-0/0/2 unit 0 family iso user@R2#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/3 description To_R5 user@R2#set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 user@R2#set interfaces ge-0/0/3 unit 0 family iso user@R2#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/4 description To_R6 user@R2#set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 user@R2#set interfaces ge-0/0/4 unit 0 family iso user@R2#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R2#set interfaces lo0 unit 0 family inet address 10.2.2.2/32 user@R2#set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R2#set routing-options router-id 10.2.2.2 user@R2#set routing-options autonomous-system 65200
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R2#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R2#set policy-options policy-statement nlri2bgp term 1 then accept user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis user@R2#set policy-options policy-statement nlri2bgp_igp term 1 then accept user@R2#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R2#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R2#set policy-options policy-statement pplb then load-balance per-packet user@R2#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R2#set policy-options policy-statement ted2nlri term 1 then accept user@R2#set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering user@R2#set policy-options policy-statement ted2nlri_1 term 1 then accept user@R2#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R2#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados.
[edit] user@R2#set protocols bgp group RR1 type internal user@R2#set protocols bgp group RR1 local-address 10.2.2.2 user@R2#set protocols bgp group RR1 family traffic-engineering unicast user@R2#set protocols bgp group RR1 neighbor 10.1.1.1 user@R2#set protocols bgp group RR1 neighbor 10.3.3.3 user@R2#set protocols bgp group RR1 neighbor 10.6.6.6 user@R2#set protocols bgp group RR1 neighbor 10.4.4.4 user@R2#set protocols bgp cluster 10.2.2.2
-
Configure o protocolo IS-IS e MPLS nas interfaces.
[edit] user@R2#set protocols isis interface ge-0/0/0.0 user@R2#set protocols isis interface ge-0/0/1.0 user@R2#set protocols isis interface ge-0/0/2.0 user@R2#set protocols isis interface ge-0/0/3.0 user@R2#set protocols isis interface ge-0/0/4.0 user@R2#set protocols isis interface lo0.0 passive user@R2#set protocols isis level 1 disable user@R2#set protocols isis level 2 wide-metrics-only user@R2#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R2#set protocols mpls interface ge-0/0/3.0 admin-group red user@R2#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R2#set protocols mpls interface ge-0/0/1.0 admin-group brown user@R2#set protocols mpls interface all
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R2#set protocols mpls admin-groups red 0 user@R2#set protocols mpls admin-groups blue 1 user@R2#set protocols mpls admin-groups brown 5
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R2#set protocols mpls label-range static-label-range 7000 70000
-
Habilite a proteção de links em todas as interfaces RSVP. Usando a proteção de links, você pode configurar uma rede para redirecionar o tráfego rapidamente em torno de links quebrados.
[edit] user@R2#set protocols rsvp interface all link-protection
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; unit 0 { family inet { address 192.168.3.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; unit 0 { family inet { address 192.168.6.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4; unit 0 { family inet { address 192.168.7.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R5; unit 0 { family inet { address 192.168.8.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; unit 0 { family inet { address 192.168.9.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.2.2.2/32; } family iso { address 49.0001.0002.0202.0200; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_1 { term 1 { from { traffic-engineering; } then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.2.2.2; autonomous-system 65200; } protocols { bgp { group RR1 { type internal; local-address 10.2.2.2; family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.2.2.2; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/4.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group brown; } interface all; } rsvp { interface all { link-protection; } } }
Configurar R5 (roteador intermediário)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R5:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R5#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R5#set interfaces ge-0/0/0 description To_R1 user@R5#set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 user@R5#set interfaces ge-0/0/0 unit 0 family iso user@R5#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/1 description To_R2 user@R5#set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 user@R5#set interfaces ge-0/0/1 unit 0 family iso user@R5#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/2 description To_R3 user@R5#set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 user@R5#set interfaces ge-0/0/2 unit 0 family iso user@R5#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/3 description To_R4 user@R5#set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 user@R5#set interfaces ge-0/0/3 unit 0 family iso user@R5#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/4 description To_R6 user@R5#set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 user@R5#set interfaces ge-0/0/4 unit 0 family iso user@R5#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R5#set interfaces lo0 unit 0 family inet address 10.5.5.5/32 user@R5#set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R5#set routing-options router-id 10.5.5.5 user@R5#set routing-options autonomous-system 65200
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R5#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R5#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R5#set policy-options policy-statement nlri2bgp term 1 then accept user@R5#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R5#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R5#set policy-options policy-statement pplb then load-balance per-packet user@R5#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R5#set policy-options policy-statement ted2nlri term 1 then accept user@R5#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R5#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R5#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
Configure o protocolo IS-IS e MPLS nas interfaces.
[edit] user@R5#set protocols isis interface ge-0/0/0.0 user@R5#set protocols isis interface ge-0/0/1.0 user@R5#set protocols isis interface ge-0/0/2.0 user@R5#set protocols isis interface ge-0/0/3.0 user@R5#set protocols isis interface ge-0/0/4.0 user@R5#set protocols isis interface lo0.0 passive user@R5#set protocols isis level 1 disable user@R5#set protocols isis level 2 wide-metrics-only user@R5#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R5#set protocols mpls interface ge-0/0/1.0 admin-group red user@R5#set protocols mpls interface ge-0/0/3.0 admin-group brown user@R5#set protocols mpls interface ge-0/0/4.0 admin-group brown user@R5#set protocols mpls interface all
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados.
[edit] user@R5#set protocols bgp group RR2 type internal user@R5#set protocols bgp group RR2 family inet unicast user@R5#set protocols bgp group RR2 family traffic-engineering unicast user@R5#set protocols bgp group RR2 neighbor 10.1.1.1 user@R5#set protocols bgp group RR2 neighbor 10.3.3.3 user@R5#set protocols bgp group RR2 neighbor 10.6.6.6 user@R5#set protocols bgp group RR2 neighbor 10.4.4.4 user@R5#set protocols bgp cluster 10.5.5.5
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R5#set protocols mpls admin-groups red 0 user@R5#set protocols mpls admin-groups blue 1 user@R5#set protocols mpls admin-groups brown 5
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R5#set protocols mpls label-range static-label-range 7000 70000
-
Habilite a proteção de links em todas as interfaces RSVP. Usando a proteção de links, você pode configurar uma rede para redirecionar o tráfego rapidamente em torno de links quebrados.
[edit] user@R5#set protocols rsvp interface all link-protection
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; unit 0 { family inet { address 192.168.5.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R2; unit 0 { family inet { address 192.168.8.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R3; unit 0 { family inet { address 192.168.10.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R4; unit 0 { family inet { address 192.168.13.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; unit 0 { family inet { address 192.168.14.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.5.5.5/32; } family iso { address 49.0001.0005.0505.0500; } } } } policy-options { policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.5.5.5; autonomous-system 65200; } protocols { bgp { group RR2 { type internal; family inet { unicast; } family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.5.5.5; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/3.0 { admin-group brown; } interface ge-0/0/4.0 { admin-group brown; } interface all; } rsvp { interface all { link-protection; } } }
Configure o R3 (roteador BN3)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R3:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R3#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R3#set interfaces ge-0/0/0 description To_R2 user@R3#set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 user@R3#set interfaces ge-0/0/0 unit 0 family iso user@R3#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/1 description To_R5 user@R3#set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 user@R3#set interfaces ge-0/0/1 unit 0 family iso user@R3#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/2 description To_R6 user@R3#set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 user@R3#set interfaces ge-0/0/2 unit 0 family iso user@R3#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/3 description To_R7 user@R3#set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 user@R3#set interfaces ge-0/0/3 unit 0 family iso user@R3#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R3#set interfaces lo0 unit 0 family inet address 10.3.3.3/32 user@R3#set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R3#set routing-options router-id 10.3.3.3 user@R3#set routing-options autonomous-system 65200
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R3#set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a user@R3#set policy-options policy-statement expresspol1 then accept user@R3#set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a user@R3#set policy-options policy-statement expresspol2 then accept user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R3#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R3#set policy-options policy-statement pplb then load-balance per-packet user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para peer e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R3#set protocols bgp group ibgp1 type internal user@R3#set protocols bgp group ibgp1 local-address 10.3.3.3 user@R3#set protocols bgp group ibgp1 family traffic-engineering unicast user@R3#set protocols bgp group ibgp1 export nlri2bgp_epe user@R3#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R3#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R3#set protocols bgp group ebgp1 type external user@R3#set protocols bgp group ebgp1 family traffic-engineering unicast user@R3#set protocols bgp group ebgp1 export nlri2bgp_stat user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown user@R3#set protocols bgp group ebgp1 vpn-apply-export
-
Definir um mecanismo para criar segmentos expressos automaticamente (dinâmicos) e inseri-los no banco de dados de TE para que eles possam ser anunciados por meio do BGP-LS. Neste exemplo, segmentos expressos são criados automaticamente para todos os túneis de RSVP underlay. Isso é feito configurando um modelo com uma política e, em seguida, segmentos expressos são criados automaticamente com base nas políticas.
[edit] user@R3#set protocols express-segments segment-set set1 membership-policy expresspol1 user@R3#set protocols express-segments segment-set set2 membership-policy expresspol2 user@R3#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS e MPLS nas interfaces.
[edit] user@R3#set protocols isis interface ge-0/0/0.0 user@R3#set protocols isis interface ge-0/0/1.0 user@R3#set protocols isis interface ge-0/0/2.0 user@R3#set protocols isis interface ge-0/0/3.0 passive user@R3#set protocols isis interface lo0.0 passive user@R3#set protocols isis level 1 disable user@R3#set protocols isis level 2 wide-metrics-only user@R3#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R3#set protocols mpls interface ge-0/0/2.0 admin-group red user@R3#set protocols mpls interface ge-0/0/3.0 admin-group red user@R3#set protocols mpls interface ge-0/0/3.0 admin-group brown user@R3#set protocols mpls interface all
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R3#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R3#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R3#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R3#set protocols mpls admin-groups red 0 user@R3#set protocols mpls admin-groups blue 1 user@R3#set protocols mpls admin-groups brown 5
-
Configure o MPLS com um caminho comuado por rótulos (LSP) e inclua grupos administrativos.
[edit] user@R3#set protocols mpls label-switched-path lsp3to1_a to 10.1.1.1 user@R3#set protocols mpls label-switched-path lsp3to1_a admin-group include-any red user@R3#set protocols mpls label-switched-path lsp3to1_a admin-group include-any brown user@R3#set protocols mpls label-switched-path lsp3to4_a to 10.4.4.4 user@R3#set protocols mpls label-switched-path lsp3to4_a admin-group include-any red user@R3#set protocols mpls label-switched-path lsp3to4_a admin-group include-any brown
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R3#set protocols mpls label-range static-label-range 7000 70000
-
Habilite a proteção de links em todas as interfaces RSVP. Usando a proteção de links, você pode configurar uma rede para redirecionar o tráfego rapidamente em torno de links quebrados.
[edit] user@R3#set protocols rsvp interface all link-protection
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; unit 0 { family inet { address 192.168.6.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R5; unit 0 { family inet { address 192.168.10.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R6; unit 0 { family inet { address 192.168.11.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; unit 0 { family inet { address 192.168.12.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.3.3.3/32; } family iso { address 49.0001.0003.0303.0300; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.1.1.1/32 exact { install-nexthop lsp lsp3to1_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.4.4.4/32 exact { install-nexthop lsp lsp3to4_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.3.3.3; autonomous-system 65200; } protocols { bgp { group ibgp1 { type internal; local-address 10.3.3.3; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.12.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7137; next-hop 192.168.12.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } vpn-apply-export; } } express-segments { segment-set set1 { membership-policy expresspol1; } segment-set set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface ge-0/0/3.0 { passive; } interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp3to1_a { to 10.1.1.1; admin-group include-any [ red brown ]; } label-switched-path lsp3to4_a { to 10.4.4.4; admin-group include-any [ red brown ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; } rsvp { interface all { link-protection; } } }
Configure o R6 (roteador BN4)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R6:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R6#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R6#set interfaces ge-0/0/0 description To_R2 user@R6#set interfaces ge-0/0/0 unit 0 family inet address 192.168.9.2/24 user@R6#set interfaces ge-0/0/0 unit 0 family iso user@R6#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/1 description To_R3 user@R6#set interfaces ge-0/0/1 unit 0 family inet address 192.168.11.2/24 user@R6#set interfaces ge-0/0/1 unit 0 family iso user@R6#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/2 description To_R5 user@R6#set interfaces ge-0/0/2 unit 0 family inet address 192.168.14.2/24 user@R6#set interfaces ge-0/0/2 unit 0 family iso user@R6#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/3 description To_R7 user@R6#set interfaces ge-0/0/3 unit 0 family inet address 192.168.15.1/24 user@R6#set interfaces ge-0/0/3 unit 0 family iso user@R6#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R6#set interfaces lo0 unit 0 family inet address 10.6.6.6/32 user@R6#set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R6#set routing-options router-id 10.6.6.6 user@R6#set routing-options autonomous-system 65200
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R6#set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp6to1_a user@R6#set policy-options policy-statement expresspol1 then accept user@R6#set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp6to4_a user@R6#set policy-options policy-statement expresspol2 then accept user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R6#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R6#set policy-options policy-statement pplb then load-balance per-packet user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para peer e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R6#set protocols bgp group ibgp1 type internal user@R6#set protocols bgp group ibgp1 local-address 10.6.6.6 user@R6#set protocols bgp group ibgp1 family traffic-engineering unicast user@R6#set protocols bgp group ibgp1 export nlri2bgp_epe user@R6#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R6#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R6#set protocols bgp group ebgp1 type external user@R6#set protocols bgp group ebgp1 family traffic-engineering unicast user@R6#set protocols bgp group ebgp1 export nlri2bgp_stat user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 peer-as 300 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 label 7167 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.15.2 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown
-
Definir um mecanismo para criar segmentos expressos automaticamente (dinâmicos) e inseri-los no banco de dados de TE para que eles possam ser anunciados por meio do BGP-LS. Neste exemplo, segmentos expressos são criados automaticamente para todos os túneis de RSVP underlay. Isso é feito configurando um modelo com uma política e, em seguida, segmentos expressos são criados automaticamente com base nas políticas.
[edit] user@R6#set protocols express-segments segment-set set1 membership-policy expresspol1 user@R6#set protocols express-segments segment-set set2 membership-policy expresspol2 user@R6#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS e MPLS nas interfaces.
[edit] user@R6#set protocols isis interface ge-0/0/0.0 user@R6#set protocols isis interface ge-0/0/1.0 user@R6#set protocols isis interface ge-0/0/2.0 user@R6#set protocols isis interface lo0.0 passive user@R6#set protocols isis level 1 disable user@R6#set protocols isis level 2 wide-metrics-only user@R6#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R6#set protocols mpls interface ge-0/0/1.0 admin-group red user@R6#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R6#set protocols mpls interface ge-0/0/3.0 admin-group red user@R6#set protocols mpls interface ge-0/0/3.0 admin-group brown user@R6#set protocols mpls interface all
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R6#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R6#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R6#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R6#set protocols mpls admin-groups red 0 user@R6#set protocols mpls admin-groups blue 1 user@R6#set protocols mpls admin-groups brown 5
-
Configure o MPLS com um caminho comuado por rótulos (LSP) e inclua grupos administrativos.
[edit] user@R6#set protocols mpls label-switched-path lsp6to1_a to 10.1.1.1 user@R6#set protocols mpls label-switched-path lsp6to1_a admin-group include-any red user@R6#set protocols mpls label-switched-path lsp6to1_a admin-group include-any brown user@R6#set protocols mpls label-switched-path lsp6to4_a to 10.4.4.4 user@R6#set protocols mpls label-switched-path lsp6to4_a admin-group include-any red user@R6#set protocols mpls label-switched-path lsp6to4_a admin-group include-any brown
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R6#set protocols mpls label-range static-label-range 7000 70000
-
Habilite a proteção de links em todas as interfaces RSVP. Usando a proteção de links, você pode configurar uma rede para redirecionar o tráfego rapidamente em torno de links quebrados.
[edit] user@R6#set protocols rsvp interface all link-protection
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; unit 0 { family inet { address 192.168.9.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; unit 0 { family inet { address 192.168.11.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R5; unit 0 { family inet { address 192.168.14.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; unit 0 { family inet { address 192.168.15.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.6.6.6/32; } family iso { address 49.0001.0006.0606.0600; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.1.1.1/32 exact { install-nexthop lsp lsp6to1_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.4.4.4/32 exact { install-nexthop lsp lsp6to4_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.6.6.6; autonomous-system 65200; forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.6.6.6; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.15.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7167; next-hop 192.168.15.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set set1 { membership-policy expresspol1; } segment-set set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp6to1_a { to 10.1.1.1; admin-group include-any [ red brown ]; } label-switched-path lsp6to4_a { to 10.4.4.4; admin-group include-any [ red brown ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; } rsvp { interface all { link-protection; } } }
Configure o R7 (roteador PE2)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R7:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R7#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R7#set interfaces ge-0/0/0 description To_R3 user@R7#set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 user@R7#set interfaces ge-0/0/0 unit 0 family iso user@R7#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/1 description To_R6 user@R7#set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 user@R7#set interfaces ge-0/0/1 unit 0 family iso user@R7#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.7/32 user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.71/32
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R7#set routing-options router-id 10.7.7.7 user@R7#set routing-options autonomous-system 65300 user@R7#set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 user@R7#set routing-options static route 10.100.100.101/32 resolve
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R7#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R7#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R7#set policy-options policy-statement pplb then load-balance per-packet user@R7#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement ted2nlri term 1 then accept user@R7#set policy-options resolution-map map1 mode ip-color
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para peer e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R7#set protocols bgp group ebgp1 type external user@R7#set protocols bgp group ebgp1 family inet unicast user@R7#set protocols bgp group ebgp1 family traffic-engineering unicast user@R7#set protocols bgp group ebgp1 export nlri2bgp_epe user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group brown user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 65200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group brown
-
Configure o protocolo MPLS nas interfaces.
[edit] user@R7#set protocols mpls interface all
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R7#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R7#set protocols mpls traffic-engineering database import policy ted2nlri user@R7#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R7#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R7#set protocols mpls admin-groups red 0 user@R7#set protocols mpls admin-groups blue 1 user@R7#set protocols mpls admin-groups brown 5
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R7#set protocols mpls label-range static-label-range 7000 70000
-
Configure as políticas SR-TE no roteador de entrada para habilitar a política SR-TE de ponta a ponta.
[edit] user@R7#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R7#set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 user@R7#set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 user@R7#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R3; unit 0 { family inet { address 192.168.12.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R6; unit 0 { family inet { address 192.168.15.2/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.7.7.7/32; address 10.7.7.71/32; } family iso { address 49.0001.0007.0707.0700; } } } } policy-options { policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } resolution-map map1 { mode ip-color; } } routing-options { static { route 10.100.100.101/32 { next-hop 10.100.100.100; resolve; } } router-id 10.7.7.7; autonomous-system 65300; } protocols { bgp { group ebgp1 { type external; family inet { unicast; } family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 192.168.12.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR3 { label 8173; next-hop 192.168.12.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.15.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR6 { label 8176; next-hop 192.168.15.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface all; } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } source-routing-path computelsp1 { to 10.100.100.100; install 10.100.100.101; primary { p1 { compute { compute1; } } } } } }
Verificação
Para confirmar que a configuração está funcionando corretamente, execute as seguintes tarefas:
- Verifique o segmento Express
- Verifique os anúncios do segmento Express
- Verifique as informações de topologia de TE
Verifique o segmento Express
Propósito
Verifique se os segmentos expressos foram criados corretamente.
Ação
A partir do modo operacional, execute os seguintes comandos:
-
show express-segments detail
— Verifique se os segmentos expressos são criados. -
show ted database topology-type express-segments detail
— Verifique se os segmentos expressos recém-criados estão inseridos no banco de dados de TE. -
show route table mpls.0 protocol express-segments
— Verifique se as entradas de encaminhamento foram criadas.
user@R1>show express-segments detail Name: r1-exp-set1-10.6.6.6 To: 10.6.6.6, Type: Dynamic (Set: r1-exp-set1) Label: 25 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 09:32:00) LinkAttributes: LocalID: 2147483686 TE-Metric: 200*, IGP-Metric: 100* BW: 0bps AdminGroups: red* UnderlayPaths: 1 RSVP LSP: lsp1to6_a TE-Metric: 29, IGP-Metric: 20 BW: 0bps AdminGroups: brown red Name: r1-exp-set2-10.3.3.3 To: 10.3.3.3, Type: Dynamic (Set: r1-exp-set2) Label: 24 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 09:32:00) LinkAttributes: LocalID: 2147483685 TE-Metric: 19, IGP-Metric: 20 BW: 0bps AdminGroups: brown red UnderlayPaths: 1 RSVP LSP: lsp1to3_a TE-Metric: 19, IGP-Metric: 20 BW: 0bps AdminGroups: brown red
No R1
user@R1>show ted database topology-type express-segments detail TED database: 0 ISIS nodes 4 INET nodes 0 INET6 nodes NodeID: 10.1.1.1 Type: Rtr, Age: 119174 secs, LinkIn: 0, LinkOut: 3 Protocol: EXPRESS-SEG(0) To: 10.3.3.3, Local: 10.1.1.1, Remote: 10.3.3.3 Local interface index: 2147483685, Remote interface index: 0 Link name: r1-exp-set2-10.3.3.3 To: 10.6.6.6, Local: 10.1.1.1, Remote: 10.6.6.6 Local interface index: 2147483686, Remote interface index: 0 Link name: r1-exp-set1-10.6.6.6 NodeID: 10.3.3.3 Type: Rtr, Age: 34364 secs, LinkIn: 1, LinkOut: 0 Protocol: EXPRESS-SEG(0) NodeID: 10.6.6.6 Type: Rtr, Age: 34364 secs, LinkIn: 1, LinkOut: 0 Protocol: EXPRESS-SEG(0)
No R1
user@R1>show route table mpls.0 protocol express-segments mpls.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 24 *[EXPRESS-SEG/6] 09:33:24, metric 1 > to 192.168.3.2 via ge-0/0/2.0, Swap 33 25 *[EXPRESS-SEG/6] 09:33:24, metric 1 > to 192.168.3.2 via ge-0/0/2.0, Swap 34
Significado
-
show express-segments detail
Na saída, você pode ver o nome dos segmentos expressos (r1-exp-set1-10.6.6.6, r1-exp-set2-10.3.3.3), rótulos de segmentos expressos (25, 24) e LSPs underlay (lsp1to6_a, lsp1to3_a). -
show ted database topology-type express-segments detail
Na saída, você pode ver que as entradas do segmento expresso estão inseridas no banco de dados de TE. Os segmentos expressos (links de TE virtuais) são criados dinamicamente. O protocolo usado é EXPRESS-SEG(0). -
show route table mpls.0 protocol express-segments
Na saída, você pode ver os rótulos do segmento expresso (24,25). Como o segmento expresso é uma construção que depende dos LSPs underlay, o rótulo do segmento expresso é trocado para os rótulos LSP underlay (33,34), que é RSVP-LSP.
Verifique os anúncios do segmento Express
Propósito
Verifique se o nó de origem anuncia segmentos expressos aos vizinhos LS eBGP/iBGP.
Ação
A partir do modo operacional, execute os seguintes comandos:
-
show route table lsdist.0
— Verifique se os segmentos expressos no RIB BGP-LS estão sendo anunciados. -
show route advertising-protocol bgp neighbor
— Verifique se os segmentos expressos são enviados aos vizinhos LS eBGP/iBGP.
user@R1>show route table lsdist.0 lsdist.0: 25 destinations, 37 routes (25 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious NODE { AS:65200 IPv4:10.6.6.6 STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 09:34:17 Fictitious NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 [BGP/170] 1d 09:55:46, localpref 65100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 09:34:17 Fictitious NODE { AS:65300 IPv4:3.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 5.5.5.5 AS path: 300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 65100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483685 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483686 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 09:34:17 Fictitious LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:362 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 [BGP/170] 1d 09:55:46, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:361 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:334 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: 300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0
No R1
user@R1>show route advertising-protocol bgp 10.2.2.2 lsdist.0: 25 destinations, 37 routes (25 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR1 Label: 7101, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR4 Label: 7104, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * Self 100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR0 Label: 8110, Flags: 0xd0, Weight: 0
Significado
-
Na saída, o
show route table lsdist.0
BGP anuncia as rotas na tabela de roteamento. A tabela de roteamento é criada a partir do banco de dados de TE. Você pode ver os links de segmentos expressos (EXPRESS-SEG/6) e os links EPE (BGP-LS-EPE:0 }/1216). -
show route advertising-protocol bgp 10.2.2.2
Na saída, você pode ver o que o R1 é publicidade. Os segmentos expressos são inseridos no banco de dados te, que é copiado para RIB. O BGP-LS anuncia o RIB para o roteador peer. No peer, as informações RIB recebidas são copiadas no banco de dados local. A política neste exemplo anuncia apenas segmentos expressos e segmentos de EPE.
Verifique as informações de topologia de TE
Propósito
Verifique se os nós de entrada recebem informações de topologia de TE por meio do EBGP/iBGP LS.
Ação
A partir do modo operacional, execute os seguintes comandos:
-
show route receive-protocol bgp neighbor
— Verifique se os segmentos expressos são recebidos de vizinhos LS EBGP/iBGP. -
show route table lsdist.0
— Verifique se os segmentos expressos estão no BGP-LS RIB. -
show ted database topology-type l3-unicast detail
— Verifique se os segmentos expressos são importados para o banco de dados TE do roteador de entrada. -
show spring-traffic-engineering lsp
— Verifique se a política de SR de ponta a ponta foi computada e instalada com sucesso.
No R0
user@R0>show route receive-protocol bgp 192.168.1.2 … Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No ...
No R0
user@R0>show route table lsdist.0 lsdist.0: 28 destinations, 40 routes (28 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65200 IPv4:10.4.4.4 STATIC:0 }/1216 *[BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65200 IPv4:10.6.6.6 STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483685 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483686 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 54200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:2147483684 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:2147483685 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:362 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:361 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:334 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0
No R0
user@R0>show ted database topology-type l3-unicast detail TED database: 0 ISIS nodes 6 INET nodes 0 INET6 nodes NodeID: 10.1.1.1 Type: Rtr, Age: 122418 secs, LinkIn: 1, LinkOut: 3 Protocol: Exported BGP(6) To: 10.100.100.100, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(4) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483686, Remote interface index: 0 Link name: r1-exp-set1-10.6.6.6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483685, Remote interface index: 0 Link name: r1-exp-set2-10.3.3.3 Protocol: BGP-LS-EPE(0) NodeID: 10.3.3.3 Type: Rtr, Age: 122418 secs, LinkIn: 3, LinkOut: 1 Protocol: Exported BGP(6) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 362, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(8) Protocol: Exported STATIC(4) NodeID: 10.4.4.4 Type: Rtr, Age: 122418 secs, LinkIn: 1, LinkOut: 3 Protocol: Exported BGP(6) To: 10.100.100.100, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(4) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483685, Remote interface index: 0 Link name: r4-exp-set1-10.6.6.6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483684, Remote interface index: 0 Link name: r4-exp-set2-10.3.3.3 Protocol: BGP-LS-EPE(0) NodeID: 10.6.6.6 Type: Rtr, Age: 122418 secs, LinkIn: 3, LinkOut: 1 Protocol: Exported BGP(6) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 361, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(8) Protocol: Exported STATIC(4) NodeID: 10.7.7.7 Type: Rtr, Age: 103258 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(6) Protocol: Exported BGP(8) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 359, Remote interface index: 0 Link name: epe_adj1_toR6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 334, Remote interface index: 0 Link name: epe_adj1_toR3 NodeID: 10.100.100.100 Type: Rtr, Age: 103160 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(6) Protocol: BGP-LS-EPE(0) To: 10.1.1.1, Local: 192.168.1.1, Remote: 192.168.1.2 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR1 Local bgp peer as: 100, Remote bgp peer as: 200 To: 10.4.4.4, Local: 192.168.2.1, Remote: 192.168.2.2 Local interface index: 359, Remote interface index: 0 Link name: epe_adj1_toR4 Local bgp peer as: 65100, Remote bgp peer as: 65200
No R0
user@R0>show spring-traffic-engineering lsp To State LSPname 10.7.7.7 Up computelsp1 10.7.7.7-7000<c> Up ecomputelsp1 10.7.7.7-7001<c> Up ecomputelsp2 Total displayed LSPs: 3 (Up: 3, Down: 0)
No R0
user@R0>show spring-traffic-engineering lsp detail Name: computelsp1 Tunnel-source: Static configuration To: 10.7.7.7 State: Up Path: p1 Outgoing interface: NA Auto-translate status: Disabled Auto-translate result: N/A Compute Status:Enabled , Compute Result:success , Compute-Profile Name:compute1 Total number of computed paths: 2 Computed-path-index: 1 BFD status: N/A BFD name: N/A TE metric: 59, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7104 source router-id: 10.100.100.100, destination router-id: 10.4.4.4 source interface-address: 192.168.2.1, destination interface-address: 192.168.2.2 computed segment : 2 (computed-adjacency-segment): label: 21 source router-id: 10.4.4.4, destination router-id: 10.6.6.6 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7167 source router-id: 10.6.6.6, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Computed-path-index: 2 BFD status: N/A BFD name: N/A TE metric: 59, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7101 source router-id: 10.100.100.100, destination router-id: 10.1.1.1 source interface-address: 192.168.1.1, destination interface-address: 192.168.1.2 computed segment : 2 (computed-adjacency-segment): label: 24 source router-id: 10.1.1.1, destination router-id: 10.3.3.3 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7137 source router-id: 10.3.3.3, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0
Significado
-
show route receive-protocol bgp 10.1.1.1
Na saída, ela mostra as rotas que foram recebidas pelo roteador de entrada (R0) do vizinho BGP, que descreve o segmento express (links de TE virtuais). -
show route table lsdist.0
Na saída, ela mostra as rotas que foram recebidas pelo roteador de entrada (R0) e se elas estão inseridas na lsdist.0 RIB. Ele também mostra se o lsdist.0 RIB é copiado no banco de dados te local. -
show ted database topology-type l3-unicast detail
Na saída, as rotas são copiadas no banco de dados local de TE. Este r1-exp-set1-10.6.6.6 é um segmento expresso com ponto final como 10,6,6,6 e é criado com sucesso na R1. A R1 anunciou o segmento expresso e o R0 o inseriu no banco de dados local de TE. Você também pode ver os segmentos de EPE (epe_adj1_toR7). -
show spring-traffic-engineering lsp
Na saída, você pode ver que as políticas SR estão ativas. Isso mostra que agora você é capaz de computar uma política SR de ponta a ponta multi domínio (R0 a R7). -
show spring-traffic-engineering lsp detail
Na saída, você pode ver as etiquetas selecionadas. computelsp1 No LSP, o rótulo 7104 é um segmento de EPE, 21 é o segmento expresso, e 7167 também é um segmento de EPE. Isso mostra que agora você é capaz de computar uma política SR de ponta a ponta multi domínio (R0 a R7).
Exemplo: Conectividade SR-TE entre domínios usando segmentos express por meio de underlay SR-TE
Use este exemplo para aprender a estabelecer uma conectividade SR-TE entre domínios de ponta a ponta usando segmentos expressos por meio de underlay SR-TE.
Requisitos
Este exemplo usa os seguintes componentes de hardware e software:
-
Roteadores da Série MX como provedores de borda, nós de borda e roteadores intermediários.
-
Versão Junos OS 21.2R1 ou posteriores.
Visão geral
A topologia a seguir (Figura 9) mostra dois domínios SR-TE (AS100 e AS300) executando o EBGP-LS interconectado por outro domínio SR-TE (AS200):
Topologia
Nesta topologia, está estabelecido um caminho SR-TE de ponta a ponta entre o roteador PE1 e o roteador PE2. Os segmentos de engenharia por pares de saída (EPE) são definidos em roteadores PE1 e PE2 para direcionar o tráfego em direção aos nós de fronteira diretamente conectados BN1/BN2 e BN3/BN4, respectivamente. Os segmentos de EPE definidos nos nós de borda são anunciados internamente pelo estado do link BGP. Esses dois domínios SR-TE estão interconectados através do domínio (AS200) que está aproveitando os LSPs SR-TE para estabelecer caminhos internos.
Os nós de borda do domínio AS200 facilitam a abstração de informações SR-TE entre domínios. Os segmentos express são criados em nós de fronteira (BN1, BN2, BN3 e BN4). Os segmentos express são criados em uma relação única com os LSPs SR-TE subjacentes e todos os segmentos expressos são inseridos no banco de dados te local do nó de fronteira para um anúncio de estado de link BGP subsequente. O domínio AS200 utiliza underlays SR-TE LSP para o gerenciamento de TE e apresenta esses LSPs SR-TE underlay como segmentos expressos para os domínios AS100 e AS300, permitindo que os domínios tenham conectividade SR-TE LSP de ponta a ponta.
A tabela a seguir descreve os domínios, roteadores e conexões na topologia:
Domínio |
Dispositivos |
Endereço ID/Lo do roteador) |
Detalhes da conexão |
---|---|---|---|
AS65100 (EBGP-LS/ SR-TE LSP) |
R0(roteador PE1) |
10.100.100.100 10.100.100.101 |
Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.1.1/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.2.1/24. |
AS65200 (SR-TE LSP) |
R1(roteador BN1) |
10.1.1.1.1 |
Conectado ao R0 (roteador PE1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.1.2/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/3, endereço IP atribuído 192.168.4.1/24. Conectado ao R2 (roteador intermediário) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.3.1/24. Conectado ao R5 (roteador intermediário) por meio da interface ge-0/0/4, endereço IP atribuído 192.168.5.1/24. |
R4(roteador BN2) |
10,4,4,4,4 |
Conectado ao R0 (roteador PE1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.2.2/24. Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.4.2/24. Conectado ao R2 (roteador intermediário) por meio da interface ge-0/0/3, endereço IP atribuído 192.168.7.1/24. Conectado ao R5 (roteador intermediário) pela interface ge-0/0/4, endereço IP atribuído 192.168.13.1/24. |
|
R2 (roteador intermediário) |
10.2.2.2.2 |
Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.3.2/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.7.1/24. Conectado ao R5 (roteador intermediário) pela interface ge-0/0/3, endereço IP atribuído 192.168.8.1/24. Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.6.1/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/4, endereço IP atribuído 192.168.9.1/24. |
|
R5(Roteador intermediário) |
10,5,5,5,5 |
Conectado ao R1 (roteador BN1) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.5.2/24. Conectado ao R4 (roteador BN2) por meio da interface ge-0/0/3, endereço IP atribuído 192.168.13.2/24. Conectado ao R2 (roteador intermediário) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.8.2/24. Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.10.2/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/4, endereço IP atribuído 192.168.14.1/24. |
|
R3(roteador BN3) |
10.3.3.3 |
Conectado ao R7 (roteador PE2) pela interface ge-0/0/3, endereço IP atribuído 192.168.12.1/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.11.1/24. Conectado ao R2 (roteador intermediário) pela interface ge-0/0/0, endereço IP atribuído 192.168.6.2/24. Conectado ao R5 (roteador intermediário) pela interface ge-0/0/1, endereço IP atribuído 192.168.10.1/24. |
|
R6(roteador BN4) |
10,6,6,6,6 |
Conectado ao R7 (roteador PE2) pela interface ge-0/0/3, endereço IP atribuído 192.168.15.1/24. Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.11.2/24. Conectado ao R2 (roteador intermediário) pela interface ge-0/0/0, endereço IP atribuído 192.168.9.2/24. Conectado ao R5 (roteador intermediário) por meio da interface ge-0/0/2, endereço IP atribuído 192.168.14.2/24. |
|
AS65300(EBGP-LS/SR-TE LSP) |
R7(roteador PE2) |
10,7,7,7 |
Conectado ao R3 (roteador BN3) por meio da interface ge-0/0/0, endereço IP atribuído 192.168.12.2/24. Conectado ao R6 (roteador BN4) por meio da interface ge-0/0/1, endereço IP atribuído 192.168.15.2/24. |
Configuração
Para interconectar uma rede multi domínio e estabelecer um caminho SR de ponta a ponta usando segmentos expressos, execute essas tarefas:
- Configuração rápida da CLI
- Configurar R0 (roteador PE1)
- Configure o R1 (roteador BN1)
- Configure o R4 (roteador BN2)
- Configure o R2 (roteador intermediário)
- Configurar R5 (roteador intermediário)
- Configure o R3 (roteador BN3)
- Configure o R6 (roteador BN4)
- Configure o R7 (roteador PE2)
Configuração rápida da CLI
Para configurar rapidamente este exemplo, copie os seguintes comandos, cole-os em um arquivo de texto, remova quaisquer quebras de linha, altere todos os detalhes necessários para combinar com a configuração da sua rede, copiar e colar os comandos na CLI no nível de [edit]
hierarquia e, em seguida, entrar no commit
modo de configuração.
Os comandos de configuração rápida fornecidos abaixo podem ser usados para configurar segmentos expressos por um caminho underlay SR-TE nãocolorizado.
Para configurar o caminho underlay SR-TE colorido, você deve fazer configurações adicionais em roteadores BN1 (R1), BN2 (R4), BN3 (R3) e BN4 (R6). Abaixo estão as configurações não coloridas para roteadores N1 (R1), BN2 (R4), BN3 (R3) e BN4 (R6), você pode encontrar a configuração colorida adicional.
Configurar R0 (roteador PE1)Dispositivo R0 (roteador PE1)
set interfaces ge-0/0/0 description To_R1_1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::100/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4_1 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:4000:10::100/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.100.100.100/32 set interfaces lo0 unit 0 family inet address 10.100.100.101/32 set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::10:100:100:100/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement direct from protocol direct set policy-options policy-statement direct then accept set policy-options policy-statement mpath then multipath-resolve set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement vpn1_res_map1 from route-filter 10.109.1/16 orlonger set policy-options policy-statement vpn1_res_map1 then accept set policy-options policy-statement vpn1_res_map1 then resolution-map map1 set policy-options policy-statement vpn2_res_map1 from route-filter 10.110.0.1/16 orlonger set policy-options policy-statement vpn2_res_map1 then accept set policy-options policy-statement vpn2_res_map1 then resolution-map map1 set policy-options community color7000 members color:0:7000 set policy-options community color7001 members color:0:7001 set policy-options resolution-map map1 mode ip-color set routing-options router-id 10.100.100.100 set routing-options autonomous-system 100 set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 set routing-options static route 10.7.7.71/32 resolve set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 multihop ttl 100 set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_epe set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.12.1192.168.2.2 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 10.7.7.71 local-address 00.100.100.101 set protocols bgp group ebgp1 neighbor 10.7.7.71 import [ vpn1_res_map1 vpn2_res_map1 ] set protocols bgp group ebgp1 neighbor 10.7.7.71 peer-as 65300 set protocols bgp group ebgp1 vpn-apply-export set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ] set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1
Dispositivo R1 (roteador BN1)
set interfaces ge-0/0/0 description To_R0_1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::1/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.20.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1000:20::1/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R2 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1200:10::1/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 unit 1 vlan-id 2 set interfaces ge-0/0/2 unit 1 family inet address 192.168.21.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:1200:20::1/64 set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/3 description to-R4 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:1400:10::1/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description to-R5 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:1500:10::1/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.22.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:1500:20::1/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.1.1.1/32 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::10:01:01:01/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.3.3.3/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.1.1/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.1.1.1 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ] set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.1.1.1 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols express-segments segment-set set1sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 passive set protocols isis interface ge-0/0/0.1 passive set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1211 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1201 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1212 set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1202 set protocols isis interface ge-0/0/2.1 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 1411 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 1401 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 1511 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 1501 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group brown set protocols mpls interface ge-0/0/2.1 admin-group yellow set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing segment-list R1-R2-R3 hop1 label 1211 set protocols source-packet-routing segment-list R1-R2-R3 hop2 label 801003 set protocols source-packet-routing source-routing-path lsp1to3_sr to 10.3.3.3 set protocols source-packet-routing source-routing-path lsp1to3_sr primary R1-R2-R3
Configure os seguintes comandos adicionais no dispositivo R1 (roteador BN1) para um caminho underlay SR-TE colorido.
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp1to3_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Dispositivo R4 (roteador BN2)
set interfaces ge-0/0/0 description To_R0 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.2.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:4000:10::4/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.40.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:4000:20::4/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R1 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1400:10::4/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R2 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2400:10::4/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.24.1/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:2400:20::4/64 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R5 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:4500:10::4/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.45.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:4500:20::4/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.4.4.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set interfaces lo0 unit 0 family inet6 address abcd::04:04:04:04/128 set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.6.6.6/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.4.4.4/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.4.4.4 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.4.4.4 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ] set protocols express-segments segment-set set4sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/0.0 passive set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 4111 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 4101 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 4211 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 4201 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 4511 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 4501 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group green set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing segment-list R4-R5-R6 hop1 label 4511 set protocols source-packet-routing segment-list R4-R5-R6 hop2 label 5601 set protocols source-packet-routing source-routing-path lsp4to6_sr to 10.6.6.6 set protocols source-packet-routing source-routing-path lsp4to6_sr primary R4-R5-R6
Configure os seguintes comandos adicionais no dispositivo R4 (roteador BN2) para um caminho underlay SR-TE colorido.
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp4to6_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Dispositivo R2 (roteador intermediário)
set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1200:10::2/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.21.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1200:20::2/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R3 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2300:10::2/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 1 vlan-id 2 set interfaces ge-0/0/1 unit 1 family inet address 192.168.23.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:2300:20::2/64 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:2400:10::2/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 unit 1 vlan-id 2 set interfaces ge-0/0/2 unit 1 family inet address 192.168.24.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:2400:20::2/64 set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R5 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2500:10::2/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:2600:10::2/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.26.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:2600:20::2/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.2.2.2/32 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::02:02:02:02/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis set policy-options policy-statement nlri2bgp_igp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.2.2.2/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering set policy-options policy-statement ted2nlri_1 term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.2.2.2 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group RR1 type internal set protocols bgp group RR1 local-address 10.2.2.2 set protocols bgp group RR1 family traffic-engineering unicast set protocols bgp group RR1 neighbor 10.1.1.1 set protocols bgp group RR1 neighbor 10.3.3.3 set protocols bgp group RR1 neighbor 10.6.6.6 set protocols bgp group RR1 neighbor 10.4.4.4 set protocols bgp cluster 10.2.2.2 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2111 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2101 set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2112 set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2102 set protocols isis interface ge-0/0/0.1 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 2311 set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 2301 set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 2411 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 2401 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 2511 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 2501 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 2611 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 2601 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/0.1 admin-group yellow set protocols mpls interface ge-0/0/2.0 admin-group green set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable
Dispositivo R5 (roteador intermediário)
set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1500:10::5/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.22.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1500:20::5/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R2 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2500:10::5/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R3 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3500:10::5/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 unit 1 vlan-id 2 set interfaces ge-0/0/2 unit 1 family inet address 192.168.35.2/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:3500:20::5/64 set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R4 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:4500:10::5/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.45.2/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:4500:20::5/64 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:5600:10::5/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.56.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:5600:20::5/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.5.5.5/32 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::05:05:05:05/128 set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.5.5.5/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.5.5.5 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group RR2 type internal set protocols bgp group RR2 family inet unicast set protocols bgp group RR2 family traffic-engineering unicast set protocols bgp group RR2 neighbor 10.1.1.1 set protocols bgp group RR2 neighbor 10.3.3.3 set protocols bgp group RR2 neighbor 10.6.6.6 set protocols bgp group RR2 neighbor 10.4.4.4 set protocols bgp cluster 10.5.5.5 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 5111 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 5101 set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 5211 set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 5201 set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 5311 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 5301 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 5411 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 5401 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 5611 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 5601 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/0.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group green set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable
Dispositivo R3 (roteador BN3)
set interfaces ge-0/0/0 description To_R2 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:2300:10::3/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.23.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:2300:20::3/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 2 vlan-id 3 set interfaces ge-0/0/0 unit 2 family inet address 192.168.30.2/24 set interfaces ge-0/0/0 unit 2 family iso set interfaces ge-0/0/0 unit 2 family inet6 address 2001:db8:2300:30::3/64 set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R5 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:3500:10::3/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 1 vlan-id 2 set interfaces ge-0/0/1 unit 1 family inet address 192.168.35.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:3500:20::3/64 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R6 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3600:10::3/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R7 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:3700:10::3/6 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.37.1/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:3700:20::3/6 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.3.3.3/32 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::03:03:03:03/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.1.1.1/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis set policy-options policy-statement nlri2bgp_igp term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.3.3.3/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set policy-options policy-statement ted2nlri_igp from family traffic-engineering set policy-options policy-statement ted2nlri_igp from protocol isis set policy-options policy-statement ted2nlri_igp then accept set routing-options router-id 10.3.3.3 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.3.3.3 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 vpn-apply-export set protocols express-segments segment-set set3sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 3211 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 3201 set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 3511 set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 3501 set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 3611 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 3601 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 passive set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/1.0 admin-group green set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group [ red brown ] set protocols mpls interface all set protocols mpls interface fxp0.0 disableset protocols source-packet-routing segment-list R3-R2-R1 inherit-label-nexthops set protocols source-packet-routing segment-list R3-R2-R1 auto-translate set protocols source-packet-routing segment-list R3-R2-R1 hop1 ip-address 192.168.6.1 set protocols source-packet-routing segment-list R3-R2-R1 hop2 ip-address 192.168.3.1 set protocols source-packet-routing source-routing-path lsp3to1_sr to 10.1.1.1 set protocols source-packet-routing source-routing-path lsp3to1_sr primary R3-R2-R1
Configure os seguintes comandos adicionais no dispositivo R3 (roteador BN3) para um caminho underlay SR-TE colorido.
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp3to1_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Dispositivo R6 (roteador BN4)
set interfaces ge-0/0/0 description To_R0 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.1192.168.2.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:4000:10::4/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.40.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:4000:20::4/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R1 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1400:10::4/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R2 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2400:10::4/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.24.1/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:2400:20::4/64 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R5 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:4500:10::4/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.45.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:4500:20::4/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.4.4.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::04:04:04:04/128 set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.6.6.6/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.4.4.4/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.4.4.4 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.4.4.4 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ] set protocols express-segments segment-set set4sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/0.0 passive set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 4111 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 4101 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 4211 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 4201 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 4511 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 4501 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group green set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing segment-list R4-R5-R6 hop1 label 4511 set protocols source-packet-routing segment-list R4-R5-R6 hop2 label 5601 set protocols source-packet-routing source-routing-path lsp4to6_sr to 10.6.6.6 set protocols source-packet-routing source-routing-path lsp4to6_sr primary R4-R5-R6
Configure os seguintes comandos adicionais no dispositivo R6 (roteador BN4) para um caminho underlay SR-TE colorido.
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp6to4_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Dispositivo R7 (roteador PE2)
set interfaces ge-0/0/0 description To_R3 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:3700:10::7/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.37.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:3700:20::7/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R6 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:6700:10::7/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 1 vlan-id 2 set interfaces ge-0/0/1 unit 1 family inet address 192.168.67.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:6700:20::7/64 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.7.7.7/32 set interfaces lo0 unit 0 family inet address 10.7.7.71/32 set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::07:07:07:07/128 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::7:7:7:71/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement direct from protocol direct set policy-options policy-statement direct then accept set policy-options policy-statement mpath then multipath-resolve set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement payload_vpn_109 term 1 from route-filter 10.109.0.1/16 orlonger set policy-options policy-statement payload_vpn_109 term 1 then community add color7000 set policy-options policy-statement payload_vpn_109 term 1 then next-hop 10.7.7.7 set policy-options policy-statement payload_vpn_109 term 1 then accept set policy-options policy-statement payload_vpn_110 term 1 from route-filter 10.110.0.1/16 orlonger set policy-options policy-statement payload_vpn_110 term 1 then community add color7001 set policy-options policy-statement payload_vpn_110 term 1 then next-hop 10.7.7.7 set policy-options policy-statement payload_vpn_110 term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options community color7000 members color:0:7000 set policy-options community color7001 members color:0:7001 set policy-options resolution-map map1 mode ip-color set routing-options router-id 10.7.7.7 set routing-options autonomous-system 65300 set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 set routing-options static route 10.100.100.101/32 resolve set routing-options forwarding-table export pplb set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 multihop ttl 100 set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export [ nlri2bgp_epe payload_vpn_109 payload_vpn_110 ] set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 10.100.100.101 local-address 10.7.7.71 set protocols bgp group ebgp1 neighbor 10.100.100.101 peer-as 65100 set protocols bgp group ebgp1 vpn-apply-export set protocols bgp group to-CE1 type external set protocols bgp group to-CE1 local-address 192.168.50.1 set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet unicast set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet6 unicast set protocols bgp group to-CE1 neighbor 192.168.50.2 peer-as 700 set protocols bgp group to-CE1 neighbor 192.168.50.2 local-as 300 set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/1.0 admin-group [ red brown ] set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ] set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
Configurar R0 (roteador PE1)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R0:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R0#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
[edit] user@R0#set interfaces ge-0/0/0 description To_R1_1 user@R0#set interfaces ge-0/0/0 vlan-tagging user@R0#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R0#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 user@R0#set interfaces ge-0/0/0 unit 0 family iso user@R0#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::100/64 user@R0#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R0#set interfaces ge-0/0/2 description To_R4_1 user@R0#set interfaces ge-0/0/2 vlan-tagging user@R0#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R0#set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 user@R0#set interfaces ge-0/0/2 unit 0 family iso user@R0#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:4000:10::100/64 user@R0#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.100/32 user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.101/32 user@R0#set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 user@R0#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::10:100:100:100/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
Os roteamentos de filtro de rota são anunciados a partir de AS externo.
[edit] user@R0#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R0#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R0#set policy-options policy-statement direct from protocol direct user@R0#set policy-options policy-statement direct then accept user@R0#set policy-options policy-statement mpath then multipath-resolve user@R0#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R0#set policy-options policy-statement nlri2bgp term 1 then accept user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R0#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R0#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R0#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R0#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R0#set policy-options policy-statement pplb then load-balance per-packet user@R0#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement ted2nlri term 1 then accept user@R0#set policy-options policy-statement vpn1_res_map1 from route-filter 10.1090.1/16 orlonger user@R0#set policy-options policy-statement vpn1_res_map1 then accept user@R0#set policy-options policy-statement vpn1_res_map1 then resolution-map map1 user@R0#set policy-options policy-statement vpn2_res_map1 from route-filter 10.110.0.1/16 orlonger user@R0#set policy-options policy-statement vpn2_res_map1 then accept user@R0#set policy-options policy-statement vpn2_res_map1 then resolution-map map1
-
Configure opções de políticas da comunidade para adicionar atributos de cor e definir mapa de resolução.
[edit] user@R0#set policy-options community color7000 members color:0:7000 user@R0#set policy-options community color7001 members color:0:7001 user@R0#set policy-options resolution-map map1 mode ip-color
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R0#set routing-options router-id 100.100.100.100 user@R0#set routing-options autonomous-system 100 user@R0#set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 user@R0#set routing-options static route 10.7.7.71/32 resolve
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R0#set protocols bgp group ebgp1 type external user@R0#set protocols bgp group ebgp1 multihop ttl 100 user@R0#set protocols bgp group ebgp1 family inet unicast user@R0#set protocols bgp group ebgp1 family inet-vpn unicast user@R0#set protocols bgp group ebgp1 family traffic-engineering unicast user@R0#set protocols bgp group ebgp1 export nlri2bgp_epe user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group brown user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 65200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.2.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group brown user@R0#set protocols bgp group ebgp1 neighbor 10.7.7.71 local-address 10.100.100.101 user@R0#set protocols bgp group ebgp1 neighbor 10.7.7.71 import [ vpn1_res_map1 vpn2_res_map1 ] user@R0#set protocols bgp group ebgp1 neighbor 10.7.7.71 peer-as 65300 user@R0#set protocols bgp group ebgp1 vpn-apply-export
-
Configure o protocolo IS-IS.
[edit] user@R0#set protocols isis interface lo0.0 passive user@R0#set protocols isis level 1 disable user@R0#set protocols isis level 2 wide-metrics-only user@R0#set protocols isis traffic-engineering l3-unicast-topology user@R0#set protocols isis traffic-engineering advertisement always
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R0#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R0#set protocols mpls traffic-engineering database import policy ted2nlri user@R0#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R0#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R0#set protocols mpls admin-groups red 0 user@R0#set protocols mpls admin-groups blue 1 user@R0#set protocols mpls admin-groups green 2 user@R0#set protocols mpls admin-groups yellow 3 user@R0#set protocols mpls admin-groups orange 4 user@R0#set protocols mpls admin-groups brown 5 user@R0#set protocols mpls admin-groups black 6 user@R0#set protocols mpls admin-groups pink 7
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R0#set protocols mpls label-range static-label-range 1000 70000
-
Configure o MPLS nas interfaces.
[edit] user@R0#set protocols mpls interface all user@R0#set protocols mpls interface fxp0.0 disable user@R0#set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ]
-
Configure as políticas SR-TE no roteador de entrada para habilitar a política SR-TE de ponta a ponta.
[edit] user@R0#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R0#set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression user@R0#set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 user@R0#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 to 10.7.7.7
Resultados
A partir do modo de configuração, confirme sua configuração entrando noshow chassis
, show interfaces
show policy-options
show routing-options
e show protocols
comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1_1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.1.1/24; } family iso; family inet6 { address 2001:db8:1000:10::100/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4_1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.2.1/24; } family iso; family inet6 { address 2001:db8:4000:10::100/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.100.100.100/32; address 10.100.100.101/32; } family iso { address 49.0001.000a.0a0a.0a00; } family inet6 { address 2001:db8:abcd::10:100:100:100/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement direct { from protocol direct; then accept; } policy-statement mpath { then multipath-resolve; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then accept; } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement vpn1_res_map1 { from { route-filter 10.109.0.1/16 orlonger; } then { accept; resolution-map map1; } } policy-statement vpn2_res_map1 { from { route-filter 10.110.0.1/16 orlonger; } then { accept; resolution-map map1; } } community color7000 members color:0:7000; community color7001 members color:0:7001; resolution-map map1 { mode ip-color; } } routing-options { router-id 10.100.100.100; autonomous-system 65100; static { route 10.7.7.71/32 { next-hop 10.7.7.7; resolve; } } } protocols { bgp { group ebgp1 { type external; multihop { ttl 100; } family inet { unicast; } family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 192.168.1.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR1 { label 7101; next-hop 192.168.1.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.2.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR4 { label 7104; next-hop 192.168.12.1 foo te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 10.7.7.71 { local-address 10.100.100.101; import [ vpn1_res_map1 vpn2_res_map1 ]; peer-as 65300; } vpn-apply-export; } } isis { interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; traffic-engineering { l3-unicast-topology; advertisement always; } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface all; interface fxp0.0 { disable; } interface ge-0/0/0.0 { admin-group [ red brown ]; } } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } compute-profile ecompute1 { no-label-stack-compression; } source-routing-path computelsp1 { to 10.7.7.7; install 10.7.7.71; primary { p1 { compute { compute1; } } } } source-routing-path ecomputelsp1 { to 10.7.7.7; color 7000; primary { p1 { compute { ecompute1; } } } } } }
Configure o R1 (roteador BN1)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R1:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R1#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
[edit] user@R1#set interfaces ge-0/0/0 description To_R0_1 user@R1#set interfaces ge-0/0/0 vlan-tagging user@R1#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 user@R1#set interfaces ge-0/0/0 unit 0 family iso user@R1#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::1/64 user@R1#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R1#set interfaces ge-0/0/0 unit 1 family inet address 192.168.20.1/24 user@R1#set interfaces ge-0/0/0 unit 1 family iso user@R1#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1000:20::1/64 user@R1#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/2 description To_R2 user@R1#set interfaces ge-0/0/2 vlan-tagging user@R1#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 user@R1#set interfaces ge-0/0/2 unit 0 family iso user@R1#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1200:10::1/64 user@R1#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R1#set interfaces ge-0/0/2 unit 1 family inet address 192.168.21.1/24 user@R1#set interfaces ge-0/0/2 unit 1 family iso user@R1#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:1200:20::1/64 user@R1#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/3 description to-R4 user@R1#set interfaces ge-0/0/3 vlan-tagging user@R1#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 user@R1#set interfaces ge-0/0/3 unit 0 family iso user@R1#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:1400:10::1/64 user@R1#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/4 description to-R5 user@R1#set interfaces ge-0/0/4 vlan-tagging user@R1#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 user@R1#set interfaces ge-0/0/4 unit 0 family iso user@R1#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:1500:10::1/64 user@R1#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R1#set interfaces ge-0/0/4 unit 1 family inet address 192.168.22.1/24 user@R1#set interfaces ge-0/0/4 unit 1 family iso user@R1#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:1500:20::1/64 user@R1#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R1#set interfaces lo0 unit 0 family inet address 10.1.1.1/32 user@R1#set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 user@R1#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::01:01:01:01/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados local de TE para lsdist.0 e políticas para importação do lsdist.0 para o banco de dados te local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R1#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R1#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R1#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R1#set policy-options policy-statement expresspolsr1 from route-filter 10.3.3.3/32 exact user@R1#set policy-options policy-statement expresspolsr1 then accept user@R1#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R1#set policy-options policy-statement nlri2bgp term 1 then accept user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R1#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R1#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R1#set policy-options policy-statement pplb then load-balance per-packet user@R1#set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.1.1/32 exact user@R1#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 user@R1#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R1#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R1#set policy-options policy-statement ted2nlri term 1 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject user@R1#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R1#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R1#set routing-options router-id 10.1.1.1 user@R1#set routing-options autonomous-system 65200
-
Definir o grupo RIB para copiar a tabela de roteamento inetcolor.0 a inet.3.
[edit] user@R1#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R1#set protocols bgp group ebgp1 type external user@R1#set protocols bgp group ebgp1 family inet-vpn unicast user@R1#set protocols bgp group ebgp1 family traffic-engineering unicast user@R1#set protocols bgp group ebgp1 export nlri2bgp_stat user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown user@R1#set protocols bgp group ibgp1 type internal user@R1#set protocols bgp group ibgp1 local-address 10.1.1.1 user@R1#set protocols bgp group ibgp1 family traffic-engineering unicast user@R1#set protocols bgp group ibgp1 export nlri2bgp_epe user@R1#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R1#set protocols bgp group ibgp1 neighbor 10.5.5.5
-
Configure o conjunto de segmentos expressos e a engenharia de tráfego.
[edit] user@R1#set protocols express-segments segment-set membership-policy expresspol1 user@R1#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS nas interfaces.
[edit] user@R1#set protocols isis interface ge-0/0/0.0 passive user@R1#set protocols isis interface ge-0/0/1.0 passive user@R1#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1211 user@R1#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1201 user@R1#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1212 user@R1#set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1202 user@R1#set protocols isis interface ge-0/0/2.1 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 1411 user@R1#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 1401 user@R1#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 1511 user@R1#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 1501 user@R1#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface fxp0.0 disable user@R1#set protocols isis interface lo0.0 passive user@R1#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R1#set protocols isis level 1 disable user@R1#set protocols isis level 2 wide-metrics-only user@R1#set protocols isis backup-spf-options use-post-convergence-lfa user@R1#set protocols isis backup-spf-options use-source-packet-routing user@R1#set protocols isis traffic-engineering l3-unicast-topology user@R1#set protocols isis traffic-engineering advertisement always user@R1#set protocols isis export prefix-sid
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando as políticas.
[edit] user@R1#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R1#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R1#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R1#set protocols mpls admin-groups red 0 user@R1#set protocols mpls admin-groups blue 1 user@R1#set protocols mpls admin-groups green 2 user@R1#set protocols mpls admin-groups yellow 3 user@R1#set protocols mpls admin-groups orange 4 user@R1#set protocols mpls admin-groups brown 5 user@R1#set protocols mpls admin-groups black 6 user@R1#set protocols mpls admin-groups pink 7
-
Configure o MPLS com interface e inclua grupos administrativos.
[edit] user@R1#set protocols mpls label-range static-label-range 1000 70000 user@R1#set protocols mpls interface ge-0/0/3.0 admin-group red user@R1#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R1#set protocols mpls interface ge-0/0/2.1 admin-group yellow user@R1#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R1#set protocols mpls interface all user@R1#set protocols mpls interface fxp0.0 disable
-
Configure o LSP ST-TE do dispositivo R1 para o dispositivo R3.
[edit] user@R1#set protocols source-packet-routing no-chained-composite-next-hop user@R1#set protocols source-packet-routing segment-list R1-R2-R3 hop1 label 1211 user@R1#set protocols source-packet-routing segment-list R1-R2-R3 hop2 label 801003 user@R1#set protocols source-packet-routing source-routing-path lsp1to3_sr to 10.3.3.3 user@R1#set protocols source-packet-routing source-routing-path lsp1to3_sr color 1000 user@R1#set protocols source-packet-routing source-routing-path lsp1to3_sr primary R1-R2-R3 user@R1#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
O resultado a seguir inclui também a configuração colorida de caminho underlay SR-TE.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0_1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.1.2/24; } family iso; family inet6 { address 2001:db8:1000:10::1/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.20.1/24; } family iso; family inet6 { address 2001:db8:1000:20::1/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.3.1/24; } family iso; family inet6 { address 2001:db8:1200:10::1/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.21.1/24; } family iso; family inet6 { address 2001:db8:1200:20::1/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description to-R4; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.4.1/24; } family iso; family inet6 { address 2001:db8:1400:10::1/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description to-R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.5.1/24; } family iso; family inet6 { address 2001:db8:1500:10::1/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.22.1/24; } family iso; family inet6 { address 2001:db8:1500:20::1/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.1.1.1/32; } family iso { address 49.0001.0001.0101.0100; } family inet6 { address 2001:db8:abcd::01:01:01:01/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.3.3.3/32 exact; } then accept; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.1.1.1/32 exact; } then { prefix-segment { index 1001; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.1.1.1; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.1.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8110; next-hop 192.168.1.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } group ibgp1 { type internal; local-address 10.1.1.1; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } } express-segments { segment-set set1sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { passive; } interface ge-0/0/0.1 { passive; } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 1211; unprotected label 1201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.1 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 1212; unprotected label 1202; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0404.0404 { ipv4-adjacency-segment { protected label 1411; unprotected label 1401; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 1511; unprotected label 1501; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/2.1 { admin-group yellow; } interface ge-0/0/4.0 { admin-group blue; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R1-R2-R3 { hop1 label 1211; hop2 label 801003; } source-routing-path lsp1to3_sr { to 10.3.3.3; color 1000; primary { R1-R2-R3; } } rib-group { ipv4-color { color-to-inet3; } } } }
Configure o R4 (roteador BN2)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R4:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R4#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
[edit] user@R4#set interfaces ge-0/0/0 description To_R0 user@R4#set interfaces ge-0/0/0 vlan-tagging user@R4#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.1192.168.2.2/24 user@R4#set interfaces ge-0/0/0 unit 0 family iso user@R4#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:4000:10::4/64 user@R4#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R4#set interfaces ge-0/0/0 unit 1 family inet address 192.168.40.2/24 user@R4#set interfaces ge-0/0/0 unit 1 family iso user@R4#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:4000:20::4/64 user@R4#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/2 description To_R1 user@R4#set interfaces ge-0/0/2 vlan-tagging user@R4#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 user@R4#set interfaces ge-0/0/2 unit 0 family iso user@R4#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1400:10::4/64 user@R4#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/3 description To_R2 user@R4#set interfaces ge-0/0/3 vlan-tagging user@R4#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.1/24 user@R4#set interfaces ge-0/0/3 unit 0 family iso user@R4#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2400:10::4/64 user@R4#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R4#set interfaces ge-0/0/3 unit 1 family inet address 192.168.24.1/24 user@R4#set interfaces ge-0/0/3 unit 1 family iso user@R4#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:2400:20::4/64 user@R4#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/4 description To_R5 user@R4#set interfaces ge-0/0/4 vlan-tagging user@R4#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 user@R4#set interfaces ge-0/0/4 unit 0 family iso user@R4#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:4500:10::4/64 user@R4#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R4#set interfaces ge-0/0/4 unit 1 family inet address 192.168.45.1/24 user@R4#set interfaces ge-0/0/4 unit 1 family iso user@R4#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:4500:20::4/64 user@R4#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R4#set interfaces lo0 unit 0 family inet address 10.4.4.4/32 user@R4#set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 user@R4#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::04:04:04:04/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R4#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R4#set policy-options policy-statement expresspolsr1 from route-filter 10.6.6.6/32 exact user@R4#set policy-options policy-statement expresspolsr1 then accept user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R4#set policy-options policy-statement pplb then load-balance per-packet user@R4#set policy-options policy-statement prefix-sid term 1 from route-filter 10.4.4.4/32 exact user@R4#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 user@R4#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R4#set routing-options router-id 10.4.4.4 user@R4#set routing-options autonomous-system 65200
-
Definir o grupo RIB para copiar a tabela de roteamento inetcolor.0 a inet.3.
[edit] user@R4#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R4#set protocols bgp group ibgp1 type internal user@R4set protocols bgp group ibgp1 local-address 10.4.4.4 user@R4set protocols bgp group ibgp1 family traffic-engineering unicast user@R4set protocols bgp group ibgp1 export nlri2bgp_epe user@R4set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R4set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R4set protocols bgp group ebgp1 type external user@R4set protocols bgp group ebgp1 family inet-vpn unicast user@R4set protocols bgp group ebgp1 family traffic-engineering unicast user@R4set protocols bgp group ebgp1 export nlri2bgp_stat user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ]
-
Configure o conjunto de segmentos expressos e a engenharia de tráfego..
[edit] user@R4#set protocols express-segments segment-set set4sr membership-policy expresspolsr1 user@R4#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS.
[edit] user@R4#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface ge-0/0/0.0 passive user@R4#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 4111 user@R4#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 4101 user@R4#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 4211 user@R4#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 4201 user@R4#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 4511 user@R4#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 4501 user@R4#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface fxp0.0 disable user@R4#set protocols isis interface lo0.0 passive user@R4#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R4#set protocols isis level 1 disable user@R4#set protocols isis level 2 wide-metrics-only user@R4#set protocols isis backup-spf-options use-post-convergence-lfa user@R4#set protocols isis backup-spf-options use-source-packet-routing user@R4#set protocols isis traffic-engineering l3-unicast-topology user@R4#set protocols isis traffic-engineering advertisement always user@R4#set protocols isis export prefix-sid
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R4#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R4#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R4#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R4#set protocols mpls admin-groups red 0 user@R4#set protocols mpls admin-groups blue 1 user@R4#set protocols mpls admin-groups green 2 user@R4#set protocols mpls admin-groups yellow 3 user@R4#set protocols mpls admin-groups orange 4 user@R4#set protocols mpls admin-groups brown 5 user@R4#set protocols mpls admin-groups black 6 user@R4#set protocols mpls admin-groups pink 7
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R4#set protocols mpls label-range static-label-range 1000 70000
-
Configure o MPLS com interface e inclua grupos administrativos.
[edit] user@R4#set protocols mpls interface ge-0/0/2.0 admin-group red user@R4#set protocols mpls interface ge-0/0/3.0 admin-group green user@R4#set protocols mpls interface ge-0/0/4.0 admin-group brown user@R4#set protocols mpls interface all user@R4#set protocols mpls interface fxp0.0 disable
-
Configure o LSP ST-TE do dispositivo R4 para o dispositivo R6..
[edit] user@R4#set protocols source-packet-routing no-chained-composite-next-hop user@R4#set protocols source-packet-routing segment-list R4-R5-R6 hop1 label 4511 user@R4#set protocols source-packet-routing segment-list R4-R5-R6 hop2 label 5601 user@R4#set protocols source-packet-routing source-routing-path lsp4to6_sr to 10.6.6.6 user@R4#set protocols source-packet-routing source-routing-path lsp4to6_sr color 1000 user@R4#set protocols source-packet-routing source-routing-path lsp4to6_sr primary R4-R5-R6 user@R4#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
O resultado a seguir inclui também a configuração colorida de caminho underlay SR-TE.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.2.2/24; } family iso; family inet6 { address 2001:db8:4000:10::4/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.40.2/24; } family iso; family inet6 { address 2001:db8:4000:20::4/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.4.2/24; } family iso; family inet6 { address 2001:db8:1400:10::4/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.7.1/24; } family iso; family inet6 { address 2001:db8:2400:10::4/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.24.1/24; } family iso; family inet6 { address 2001:db8:2400:20::4/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.13.1/24; } family iso; family inet6 { address 2001:db8:4500:10::4/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.45.1/24; } family iso; family inet6 { address 2001:db8:4500:20::4/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.4.4.4/32; } family iso { address 49.0001.0004.0404.0400; } family inet6 { address 2001:db8:abcd::04:04:04:04/128; } } } } policy-options { policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.6.6.6/32 exact; } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.4.4.4/32 exact; } then { prefix-segment { index 1004; node-segment; } } } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.4.4.4; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.4.4.4; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.2.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8140; next-hop 192.168.2.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set set4sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { level 2 { post-convergence-lfa { node-protection; } } passive; } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 4111; unprotected label 4101; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 4211; unprotected label 4201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 4511; unprotected label 4501; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/3.0 { admin-group green; } interface ge-0/0/4.0 { admin-group brown; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R4-R5-R6 { hop1 label 4511; hop2 label 5601; } source-routing-path lsp4to6_sr { to 10.6.6.6; color 1000; primary { R4-R5-R6; } } rib-group { ipv4-color { color-to-inet3; } } } }
Configure o R2 (roteador intermediário)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R2:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R2#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R2#set interfaces ge-0/0/0 description To_R1 user@R2#set interfaces ge-0/0/0 vlan-tagging user@R2#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 user@R2#set interfaces ge-0/0/0 unit 0 family iso user@R2#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1200:10::2/64 user@R2#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/0 vlan-tagging user@R2#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/0 unit 1 family inet address 192.168.21.2/24 user@R2#set interfaces ge-0/0/0 unit 1 family iso user@R2#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1200:20::2/64 user@R2#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/1 description To_R3 user@R2#set interfaces ge-0/0/1 vlan-tagging user@R2#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 user@R2#set interfaces ge-0/0/1 unit 0 family iso user@R2#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2300:10::2/64 user@R2#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/1 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/1 unit 1 family inet address 192.168.23.1/24 user@R2#set interfaces ge-0/0/1 unit 1 family iso user@R2#set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:2300:20::2/64 user@R2#set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/2 description To_R4 user@R2#set interfaces ge-0/0/2 vlan-tagging user@R2#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 user@R2#set interfaces ge-0/0/2 unit 0 family iso user@R2#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:2400:10::2/64 user@R2#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/2 unit 1 family inet address 192.168.24.1/24 user@R2#set interfaces ge-0/0/2 unit 1 family iso user@R2#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:2400:20::2/64 user@R2#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/3 description To_R5 user@R2#set interfaces ge-0/0/3 vlan-tagging user@R2#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 user@R2#set interfaces ge-0/0/3 unit 0 family iso user@R2#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2500:10::2/64 user@R2#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/4 description To_R6 user@R2#set interfaces ge-0/0/4 vlan-tagging user@R2#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 user@R2#set interfaces ge-0/0/4 unit 0 family iso user@R2#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:2600:10::2/64 user@R2#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/4 unit 1 family inet address 192.168.26.1/24 user@R2#set interfaces ge-0/0/4 unit 1 family iso user@R2#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:2600:20::2/64 user@R2#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R2#set interfaces lo0 unit 0 family inet address 10.2.2.2/32 user@R2#set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 user@R2#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::02:02:02:02/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R2#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R2#set policy-options policy-statement nlri2bgp term 1 then accept user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis user@R2#set policy-options policy-statement nlri2bgp_igp term 1 then accept user@R2#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R2#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R2#set policy-options policy-statement pplb then load-balance per-packet user@R2#set policy-options policy-statement prefix-sid term 1 from route-filter 10.2.2.2/32 exact user@R2#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 user@R2#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R2#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R2#set policy-options policy-statement ted2nlri term 1 then accept user@R2#set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering user@R2#set policy-options policy-statement ted2nlri_1 term 1 then accept user@R2#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R2#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R2#set routing-options router-id 10.2.2.2 user@R2#set routing-options autonomous-system 65200 user@R2#set routing-options forwarding-table export pplb
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados.
[edit] user@R2#set protocols bgp group RR1 type internal user@R2#set protocols bgp group RR1 local-address 10.2.2.2 user@R2#set protocols bgp group RR1 family traffic-engineering unicast user@R2#set protocols bgp group RR1 neighbor 10.1.1.1 user@R2#set protocols bgp group RR1 neighbor 10.3.3.3 user@R2#set protocols bgp group RR1 neighbor 10.6.6.6 user@R2#set protocols bgp group RR1 neighbor 10.4.4.4 user@R2#set protocols bgp cluster 10.2.2.2
-
Configure protocolos IS-IS.
[edit] user@R2#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2111 user@R2#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2101 user@R2#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2112 user@R2#set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2102 user@R2#set protocols isis interface ge-0/0/0.1 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 2311 user@R2#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 2301 user@R2#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 2411 user@R2#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 2401 user@R2#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 2511 user@R2#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 2501 user@R2#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 2611 user@R2#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 2601 user@R2#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface fxp0.0 disable user@R2#set protocols isis interface lo0.0 passive user@R2#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R2#set protocols isis level 1 disable user@R2#set protocols isis level 2 wide-metrics-only user@R2#set protocols isis backup-spf-options use-post-convergence-lfa user@R2#set protocols isis backup-spf-options use-source-packet-routing user@R2#set protocols isis traffic-engineering l3-unicast-topology user@R2#set protocols isis traffic-engineering advertisement always user@R2#set protocols isis export prefix-sid
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R2#set protocols mpls admin-groups red 0 user@R2#set protocols mpls admin-groups blue 1 user@R2#set protocols mpls admin-groups green 2 user@R2#set protocols mpls admin-groups yellow 3 user@R2#set protocols mpls admin-groups orange 4 user@R2#set protocols mpls admin-groups brown 5 user@R2#set protocols mpls admin-groups black 6 user@R2#set protocols mpls admin-groups pink 7
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R2#set protocols mpls label-range static-label-range 1000 70000
-
Configure as políticas do grupo administrativo MPLS para interfaces.
[edit] user@R2#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R2#set protocols mpls interface ge-0/0/0.1 admin-group yellow user@R2#set protocols mpls interface ge-0/0/2.0 admin-group green user@R2#set protocols mpls interface ge-0/0/3.0 admin-group red user@R2#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R2#set protocols mpls interface ge-0/0/1.0 admin-group brown user@R2#set protocols mpls interface all user@R2#set protocols mpls interface fxp0.0 disable
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.3.2/24; } family iso; family inet6 { address 2001:db8:1200:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.21.2/24; } family iso; family inet6 { address 2001:db8:1200:20::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.6.1/24; } family iso; family inet6 { address 2001:db8:2300:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.23.1/24; } family iso; family inet6 { address 2001:db8:2300:20::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.7.1/24; } family iso; family inet6 { address 2001:db8:2400:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.24.1/24; } family iso; family inet6 { address 2001:db8:2400:20::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.8.1/24; } family iso; family inet6 { address 2001:db8:2500:10::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.9.1/24; } family iso; family inet6 { address 2001:db8:2600:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.26.1/24; } family iso; family inet6 { address 2001:db8:2600:20::2/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.2.2.2/32; } family iso { address 49.0001.0002.0202.0200; } family inet6 { address 2001:db8:abcd::02:02:02:02/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.2.2.2/32 exact; } then { prefix-segment { index 1002; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_1 { term 1 { from { traffic-engineering; } then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.2.2.2; autonomous-system 65200; forwarding-table { export pplb; } } protocols { bgp { group RR1 { type internal; local-address 10.2.2.2; family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.2.2.2; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 2111; unprotected label 2101; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/0.1 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 2112; unprotected label 2102; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0303.0303 { ipv4-adjacency-segment { protected label 2311; unprotected label 2301; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0404.0404 { ipv4-adjacency-segment { protected label 2411; unprotected label 2401; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 2511; unprotected label 2501; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0606.0606 { ipv4-adjacency-segment { protected label 2611; unprotected label 2601; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/0.1 { admin-group yellow; } interface ge-0/0/2.0 { admin-group green; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/4.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group brown; } interface all; interface fxp0.0 { disable; } } }
Configurar R5 (roteador intermediário)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R5:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R5#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R5#set interfaces ge-0/0/0 description To_R1 user@R5#set interfaces ge-0/0/0 vlan-tagging user@R5#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 user@R5#set interfaces ge-0/0/0 unit 0 family iso user@R5#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1500:10::5/64 user@R5#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/0 unit 1 family inet address 192.168.22.2/24 user@R5#set interfaces ge-0/0/0 unit 1 family iso user@R5#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1500:20::5/64 user@R5#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/1 description To_R2 user@R5#set interfaces ge-0/0/1 vlan-tagging user@R5#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 user@R5#set interfaces ge-0/0/1 unit 0 family iso user@R5#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2500:10::5/64 user@R5#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/2 description To_R3 user@R5#set interfaces ge-0/0/2 vlan-tagging user@R5#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 user@R5#set interfaces ge-0/0/2 unit 0 family iso suser@R5#et interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3500:10::5/64 user@R5#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/2 unit 1 family inet address 192.168.35.2/24 user@R5#set interfaces ge-0/0/2 unit 1 family iso user@R5#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:3500:20::5/64 user@R5#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/3 description To_R4 user@R5#set interfaces ge-0/0/3 vlan-tagging user@R5#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 user@R5#set interfaces ge-0/0/3 unit 0 family iso user@R5#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:4500:10::5/64 user@R5#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/3 unit 1 family inet address 192.168.45.2/24 user@R5#set interfaces ge-0/0/3 unit 1 family iso user@R5#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:4500:20::5/64 user@R5#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/4 description To_R6 user@R5#set interfaces ge-0/0/4 vlan-tagging user@R5#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 user@R5#set interfaces ge-0/0/4 unit 0 family iso user@R5#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:5600:10::5/64 user@R5#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/4 unit 1 family inet address 192.168.56.1/24 user@R5#set interfaces ge-0/0/4 unit 1 family iso user@R5#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:5600:20::5/64 user@R5#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R5#set interfaces lo0 unit 0 family inet address 10.5.5.5/32 user@R5#set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 user@R5#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::05:05:05:05/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R5#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R5#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R5#set policy-options policy-statement nlri2bgp term 1 then accept user@R5#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R5#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R5#set policy-options policy-statement pplb then load-balance per-packet user@R5#set policy-options policy-statement prefix-sid term 1 from route-filter 10.5.5.5/32 exact user@R5#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 user@R5#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R5#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R5#set policy-options policy-statement ted2nlri term 1 then accept user@R5#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R5#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R5#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R5#set routing-options router-id 10.5.5.5 user@R5#set routing-options autonomous-system 65200
-
Definir políticas de exportação para a tabela de encaminhamento.
[edit] user@R5#set routing-options forwarding-table export pplb
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para os pares conectados.
[edit] user@R5#set protocols bgp group RR2 type internal user@R5#set protocols bgp group RR2 family inet unicast user@R5#set protocols bgp group RR2 family traffic-engineering unicast user@R5#set protocols bgp group RR2 neighbor 10.1.1.1 user@R5#set protocols bgp group RR2 neighbor 10.3.3.3 user@R5#set protocols bgp group RR2 neighbor 10.6.6.6 user@R5#set protocols bgp group RR2 neighbor 10.4.4.4 user@R5#set protocols bgp cluster 10.5.5.5
Configure o protocolo IS-IS nas interfaces.
[edit] user@R5#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 5111 user@R5#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 5101 user@R5#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 5211 user@R5#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 5201 user@R5#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 5311 user@R5#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 5301 user@R5#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 5411 user@R5#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 5401 user@R5#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 5611 user@R5#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 5601 user@R5#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface fxp0.0 disable user@R5#set protocols isis interface lo0.0 passive user@R5#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R5#set protocols isis level 1 disable user@R5#set protocols isis backup-spf-options use-post-convergence-lfa user@R5#set protocols isis backup-spf-options use-source-packet-routing user@R5#set protocols isis traffic-engineering l3-unicast-topology user@R5#set protocols isis traffic-engineering advertisement always user@R5#set protocols isis export prefix-sid
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R5#set protocols mpls admin-groups red 0 user@R5#set protocols mpls admin-groups blue 1 user@R5#set protocols mpls admin-groups green 2 user@R5#set protocols mpls admin-groups yellow 3 user@R5#set protocols mpls admin-groups orange 4 user@R5#set protocols mpls admin-groups brown 5 user@R5#set protocols mpls admin-groups black 6 user@R5#set protocols mpls admin-groups pink 7
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R5#set protocols mpls label-range static-label-range 1000 70000
-
Configure o MPLS com interface e inclua grupos administrativos
[edit] user@R5#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R5#set protocols mpls interface ge-0/0/1.0 admin-group red user@R5#set protocols mpls interface ge-0/0/2.0 admin-group green user@R5#set protocols mpls interface ge-0/0/3.0 admin-group brown
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.5.2/24; } family iso; family inet6 { address 2001:db8:1500:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.22.2/24; } family iso; family inet6 { address 2001:db8:1500:20::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.8.2/24; } family iso; family inet6 { address 2001:db8:2500:10::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.10.2/24; } family iso; family inet6 { address 2001:db8:3500:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.35.2/24; } family iso; family inet6 { address 2001:db8:3500:20::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R4; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.13.2/24; } family iso; family inet6 { address 2001:db8:4500:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.45.2/24; } family iso; family inet6 { address 2001:db8:4500:20::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.14.1/24; } family iso; family inet6 { address 2001:db8:5600:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.56.1/24; } family iso; family inet6 { address 2001:db8:5600:20::5/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.5.5.5/32; } family iso { address 49.0001.0005.0505.0500; } family inet6 { address 2001:db8:abcd::05:05:05:05/128; } } } } policy-options { policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.5.5.5/32 exact; } then { prefix-segment { index 1005; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.5.5.5; autonomous-system 65200; forwarding-table { export pplb; } } protocols { bgp { group RR2 { type internal; family inet { unicast; } family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.5.5.5; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 5111; unprotected label 5101; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 5211; unprotected label 5201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0303.0303 { ipv4-adjacency-segment { protected label 5311; unprotected label 5301; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0404.0404 { ipv4-adjacency-segment { protected label 5411; unprotected label 5401; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0606.0606 { ipv4-adjacency-segment { protected label 5611; unprotected label 5601; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/2.0 { admin-group green; } interface ge-0/0/3.0 { admin-group brown; } interface ge-0/0/4.0 { admin-group brown; } interface all; interface fxp0.0 { disable; } } }
Configure o R3 (roteador BN3)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R3:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R3#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R3#set interfaces ge-0/0/0 description To_R2 user@R3#set interfaces ge-0/0/0 vlan-tagging user@R3#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 user@R3#set interfaces ge-0/0/0 unit 0 family iso user@R3#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:2300:10::3/64 user@R3#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R3#set interfaces ge-0/0/0 unit 1 family inet address 192.168.23.2/24 user@R3#set interfaces ge-0/0/0 unit 1 family iso user@R3#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:2300:20::3/64 user@R3#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/0 unit 2 vlan-id 3 user@R3#set interfaces ge-0/0/0 unit 2 family inet address 192.168.30.2/24 user@R3#set interfaces ge-0/0/0 unit 2 family iso user@R3#set interfaces ge-0/0/0 unit 2 family inet6 address 2001:db8:2300:30::3/64 user@R3#set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/1 description To_R5 user@R3#set interfaces ge-0/0/1 vlan-tagging user@R3#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 user@R3#set interfaces ge-0/0/1 unit 0 family iso user@R3#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:3500:10::3/64 user@R3#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/1 unit 1 vlan-id 2 user@R3#set interfaces ge-0/0/1 unit 1 family inet address 192.168.35.1/24 user@R3#set interfaces ge-0/0/1 unit 1 family iso user@R3#set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:3500:20::3/64 user@R3#set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/2 description To_R6 user@R3#set interfaces ge-0/0/2 vlan-tagging user@R3#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 user@R3#set interfaces ge-0/0/2 unit 0 family iso user@R3#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3600:10::3/64 user@R3#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/3 description To_R7 user@R3#set interfaces ge-0/0/3 vlan-tagging user@R3#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 user@R3#set interfaces ge-0/0/3 unit 0 family iso user@R3#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:3700:10::3/6 user@R3#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R3#set interfaces ge-0/0/3 unit 1 family inet address 192.168.37.1/24 user@R3#set interfaces ge-0/0/3 unit 1 family iso user@R3#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:3700:20::3/6 user@R3#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R3#set interfaces lo0 unit 0 family inet address 10.3.3.3/32 user@R3#set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 user@R3#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::03:03:03:03/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R3#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R3#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R3#set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a user@R3#set policy-options policy-statement expresspol1 then accept user@R3#set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a user@R3#set policy-options policy-statement expresspol2 then accept user@R3#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R3#set policy-options policy-statement expresspolsr1 from route-filter 10.1.1.1/32 exact user@R3#set policy-options policy-statement expresspolsr1 then accept user@R3#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R3#set policy-options policy-statement nlri2bgp term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis user@R3#set policy-options policy-statement nlri2bgp_igp term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R3#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R3#set policy-options policy-statement pplb then load-balance per-packet user@R3#set policy-options policy-statement prefix-sid term 1 from route-filter 10.3.3.3/32 exact user@R3#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 user@R3#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R3#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R3#set policy-options policy-statement ted2nlri term 1 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject user@R3#set policy-options policy-statement ted2nlri_igp from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_igp from protocol isis user@R3#set policy-options policy-statement ted2nlri_igp then accept
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R3#set routing-options router-id 10.3.3.3 user@R3#set routing-options autonomous-system 65200
-
Definir o grupo RIB para copiar a tabela de roteamento inetcolor.0 a inet.3.
[edit] user@R3#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para peer e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R3#set protocols bgp group ibgp1 type internal user@R3#set protocols bgp group ibgp1 local-address 10.3.3.3 user@R3#set protocols bgp group ibgp1 family traffic-engineering unicast user@R3#set protocols bgp group ibgp1 export nlri2bgp_epe user@R3#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R3#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R3#set protocols bgp group ebgp1 type external user@R3#set protocols bgp group ebgp1 family traffic-engineering unicast user@R3#set protocols bgp group ebgp1 export nlri2bgp_stat user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown user@R3#set protocols bgp group ebgp1 vpn-apply-export
-
Definir um mecanismo para criar segmentos expressos automaticamente (dinâmicos) e inseri-los no banco de dados de TE para que eles possam ser anunciados por meio do BGP-LS. Neste exemplo, segmentos expressos são criados automaticamente para todos os túneis SR underlay. Isso é feito configurando um modelo com uma política e, em seguida, segmentos expressos são criados automaticamente com base nas políticas.
[edit] user@R3#set protocols express-segments segment-set set3sr membership-policy expresspolsr1 user@R3#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS nas interfaces.
[edit] user@R3#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 3211 user@R3#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 3201 user@R3#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R3#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 3511 user@R3#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 3501 user@R3#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R3#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 3611 user@R3#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 3601 user@R3#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R3#set protocols isis interface ge-0/0/3.0 passive user@R3#set protocols isis interface fxp0.0 disable user@R3#set protocols isis interface lo0.0 passive user@R3#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R3#set protocols isis level 1 disable user@R3#set protocols isis level 2 wide-metrics-only user@R3#set protocols isis backup-spf-options use-post-convergence-lfa user@R3#set protocols isis backup-spf-options use-source-packet-routing user@R3#set protocols isis traffic-engineering l3-unicast-topology user@R3#set protocols isis traffic-engineering advertisement always user@R3#set protocols isis export prefix-sid
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R3#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R3#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R3#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R3#set protocols mpls admin-groups red 0 user@R3#set protocols mpls admin-groups blue 1 user@R3#set protocols mpls admin-groups green 2 user@R3#set protocols mpls admin-groups yellow 3 user@R3#set protocols mpls admin-groups orange 4 user@R3#set protocols mpls admin-groups brown 5 user@R3#set protocols mpls admin-groups black 6 user@R3#set protocols mpls admin-groups pink 7
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R3#set protocols mpls label-range static-label-range 1000 70000
-
Configure o MPLS com interface e inclua grupos administrativos.
[edit] user@R3#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R3#set protocols mpls interface ge-0/0/1.0 admin-group green user@R3#set protocols mpls interface ge-0/0/2.0 admin-group red user@R3#set protocols mpls interface ge-0/0/3.0 admin-group [ red brown ] user@R3#set protocols mpls interface all user@R3#set protocols mpls interface fxp0.0 disable
-
Configure o LSP ST-TE do dispositivo R3 para o dispositivo R1.
[edit] user@R3#set protocols source-packet-routing no-chained-composite-next-hop user@R3#set protocols source-packet-routing segment-list R3-R2-R1 inherit-label-nexthops user@R3#set protocols source-packet-routing segment-list R3-R2-R1 auto-translate user@R3#set protocols source-packet-routing segment-list R3-R2-R1 hop1 ip-address 192.168.6.1 user@R3#set protocols source-packet-routing segment-list R3-R2-R1 hop2 ip-address 192.168.3.1 user@R3#set protocols source-packet-routing source-routing-path lsp3to1_sr to 10.1.1.1 user@R3#set protocols source-packet-routing source-routing-path lsp3to1_sr color 1000 user@R3#set protocols source-packet-routing source-routing-path lsp3to1_sr primary R3-R2-R1 user@R3#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
O resultado a seguir inclui também a configuração colorida de caminho underlay SR-TE.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.6.2/24; } family iso; family inet6 { address 2001:db8:2300:10::3/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.23.2/24; } family iso; family inet6 { address 2001:db8:2300:20::3/64; } family mpls { maximum-labels 8; } } unit 2 { vlan-id 3; family inet { address 192.168.30.2/24; } family iso; family inet6 { address 2001:db8:2300:30::3/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.10.1/24; } family iso; family inet6 { address 2001:db8:3500:10::3/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.35.1/24; } family iso; family inet6 { address 2001:db8:3500:20::3/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.11.1/24; } family iso; family inet6 { address 2001:db8:3600:10::3/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.12.1/24; } family iso; family inet6 { address 2001:db8:3700:10::3/6; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.37.1/24; } family iso; family inet6 { address 2001:db8:3700:20::3/6; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.3.3.3/32; } family iso { address 49.0001.0003.0303.0300; } family inet6 { address 2001:db8:abcd::03:03:03:03/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement expresspol1 { from { route-filter 10.1.1.1/32 exact { install-nexthop lsp lsp3to1_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.4.4.4/32 exact { install-nexthop lsp lsp3to4_a; } } then accept; } policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.1.1.1/32 exact; } then accept; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.3.3.3/32 exact; } then { prefix-segment { index 1003; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } policy-statement ted2nlri_igp { from { family traffic-engineering; protocol isis; } then accept; } } routing-options { router-id 10.3.3.3; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.3.3.3; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.12.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7137; next-hop 192.168.12.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } vpn-apply-export; } } express-segments { segment-set set3sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 3211; unprotected label 3201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 3511; unprotected label 3501; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0606.0606 { ipv4-adjacency-segment { protected label 3611; unprotected label 3601; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { passive; } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/1.0 { admin-group green; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R3-R2-R1 { inherit-label-nexthops; auto-translate; hop1 ip-address 192.168.6.1; hop2 ip-address 192.168.3.1; } source-routing-path lsp3to1_sr { to 10.1.1.1; color 1000; primary { R3-R2-R1; } } rib-group { ipv4-color { color-to-inet3; } } } }
Configure o R6 (roteador BN4)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R6:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R6#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R6#set interfaces ge-0/0/0 description To_R2 user@R6#set interfaces ge-0/0/0 vlan-tagging user@R6#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/0 unit 0 family inet address 192.168.9.2/24 user@R6#set interfaces ge-0/0/0 unit 0 family iso user@R6#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:2600:10::6/64 user@R6#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R6#set interfaces ge-0/0/0 unit 1 family inet address 26.26.20.6/24 user@R6#set interfaces ge-0/0/0 unit 1 family iso user@R6#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:2600:20::6/64 user@R6#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/1 description To_R3 user@R6#set interfaces ge-0/0/1 vlan-tagging user@R6#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/1 unit 0 family inet address 192.168.11.2/24 user@R6#set interfaces ge-0/0/1 unit 0 family iso user@R6#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:3600:10::6/64 user@R6#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/2 description To_R5 user@R6#set interfaces ge-0/0/2 vlan-tagging user@R6#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/2 unit 0 family inet address 192.168.14.2/24 user@R6#set interfaces ge-0/0/2 unit 0 family iso user@R6#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:5600:10::6/64 user@R6#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R6#set interfaces ge-0/0/2 unit 1 family inet address 56.56.20.6/24 user@R6#set interfaces ge-0/0/2 unit 1 family iso user@R6#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:5600:20::6/64 user@R6#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/3 description To_R7 user@R6#set interfaces ge-0/0/3 vlan-tagging user@R6#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/3 unit 0 family inet address 192.168.15.1/24 user@R6#set interfaces ge-0/0/3 unit 0 family iso user@R6#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:6700:10::6/64 user@R6#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R6#set interfaces ge-0/0/3 unit 1 family inet address 67.67.20.6/24 user@R6#set interfaces ge-0/0/3 unit 1 family iso user@R6#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:6700:20::6/64 user@R6#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R6#set interfaces lo0 unit 0 family inet address 10.6.6.6/32 user@R6#set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 user@R6#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::06:06:06:06/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
[edit] user@R6#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R6#set policy-options policy-statement expresspolsr1 from route-filter 10.4.4.4/32 exact user@R6#set policy-options policy-statement expresspolsr1 then accept user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R6#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R6#set policy-options policy-statement pplb then load-balance per-packet user@R6#set policy-options policy-statement prefix-sid term 1 from route-filter 10.6.6.6/32 exact user@R6#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1006 user@R6#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R6#set routing-options router-id 10.6.6.6 user@R6#set routing-options autonomous-system 65200
-
Definir o grupo RIB para copiar a tabela de roteamento inetcolor.0 a inet.3.
[edit] user@R6#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para peer e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R6#set protocols bgp group ibgp1 type internal user@R6#set protocols bgp group ibgp1 local-address 10.6.6.6 user@R6#set protocols bgp group ibgp1 family traffic-engineering unicast user@R6#set protocols bgp group ibgp1 export nlri2bgp_epe user@R6#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R6#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R6#set protocols bgp group ebgp1 type external user@R6#set protocols bgp group ebgp1 family traffic-engineering unicast user@R6#set protocols bgp group ebgp1 export nlri2bgp_stat user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 peer-as 65300 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 label 7167 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.15.2 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown
-
Definir um mecanismo para criar segmentos expressos automaticamente (dinâmicos) e inseri-los no banco de dados de TE para que eles possam ser anunciados por meio do BGP-LS. Neste exemplo, segmentos expressos são criados automaticamente para todos os túneis SR underlay. Isso é feito configurando um modelo com uma política e, em seguida, segmentos expressos são criados automaticamente com base nas políticas.
[edit] user@R6#set protocols express-segments segment-set set6sr membership-policy expresspolsr1 user@R6#set protocols express-segments traffic-engineering
-
Configure o protocolo IS-IS nas interfaces.
[edit] user@R6#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 6211 user@R6#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 6201 user@R6#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 6311 user@R6#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 6301 user@R6#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 6511 user@R6#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 6501 user@R6#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/3.0 passive user@R6#set protocols isis interface fxp0.0 disable user@R6#set protocols isis interface lo0.0 passive user@R6#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R6#set protocols isis level 1 disable user@R6#set protocols isis level 2 wide-metrics-only user@R6#set protocols isis backup-spf-options use-post-convergence-lfa user@R6#set protocols isis backup-spf-options use-source-packet-routing user@R6#set protocols isis traffic-engineering l3-unicast-topology user@R6#set protocols isis traffic-engineering advertisement always user@R6#set protocols isis export prefix-sid
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R6#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R6#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R6#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R6#set protocols mpls admin-groups red 0 user@R6#set protocols mpls admin-groups blue 1 user@R6#set protocols mpls admin-groups green 2 user@R6#set protocols mpls admin-groups yellow 3 user@R6#set protocols mpls admin-groups orange 4 user@R6#set protocols mpls admin-groups brown 5 user@R6#set protocols mpls admin-groups black 6 user@R6#set protocols mpls admin-groups pink 7
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R6#set protocols mpls label-range static-label-range 1000 70000
-
Configure o MPLS com interface e inclua grupos administrativos.
[edit] user@R6#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R6#set protocols mpls interface ge-0/0/1.0 admin-group red user@R6#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R6#set protocols mpls interface ge-0/0/3.0 admin-group [ red brown ] user@R6#set protocols mpls interface all user@R6#set protocols mpls interface fxp0.0 disable
-
Configure o LSP ST-TE do dispositivo R6 para o dispositivo R4.
[edit] user@R6#set protocols source-packet-routing no-chained-composite-next-hop user@R6#set protocols source-packet-routing segment-list R6-R5-R4 hop1 label 801005 user@R6#set protocols source-packet-routing segment-list R6-R5-R4 hop2 label 801004 user@R6#set protocols source-packet-routing source-routing-path lsp6to4_sr to 10.4.4.4 user@R6#set protocols source-packet-routing source-routing-path lsp6to4_sr color 1000 user@R6#set protocols source-packet-routing source-routing-path lsp6to4_sr primary R6-R5-R4 user@R6#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
O resultado a seguir inclui também a configuração colorida de caminho underlay SR-TE.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.9.2/24; } family iso; family inet6 { address 2001:db8:2600:10::6/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 26.26.20.6/24; } family iso; family inet6 { address 2001:db8:2600:20::6/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.11.2/24; } family iso; family inet6 { address 2001:db8:3600:10::6/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.14.2/24; } family iso; family inet6 { address 2001:db8:5600:10::6/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 56.56.20.6/24; } family iso; family inet6 { address 2001:db8:5600:20::6/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.15.1/24; } family iso; family inet6 { address 2001:db8:6700:10::6/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 67.67.20.6/24; } family iso; family inet6 { address 2001:db8:6700:20::6/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 6.6.6.6/32; } family iso { address 49.0001.0006.0606.0600; } family inet6 { address 2001:db8:abcd::06:06:06:06/128; } } } } policy-options { policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.4.4.4/32 exact; } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.6.6.6/32 exact; } then { prefix-segment { index 1006; node-segment; } } } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.6.6.6; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.6.6.6; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.15.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7167; next-hop 192.168.15.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set set6sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 6211; unprotected label 6201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0303.0303 { ipv4-adjacency-segment { protected label 6311; unprotected label 6301; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 6511; unprotected label 6501; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { post-convergence-lfa { node-protection; } } passive; } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R6-R5-R4 { hop1 label 801005; hop2 label 801004; } source-routing-path lsp6to4_sr { to 10.4.4.4; color 1000; primary { R6-R5-R4; } } rib-group { ipv4-color { color-to-inet3; } } } }
Configure o R7 (roteador PE2)
Procedimento passo a passo
O exemplo a seguir exige que você navegue por vários níveis na hierarquia de configuração. Para obter informações sobre como navegar na CLI, consulte Usando o Editor de CLI no modo de configuração no Guia do usuário da CLI.
Para configurar o dispositivo R7:
-
Configure o modo de serviços de rede como IP aprimorado. O IP aprimorado define os serviços de rede do roteador para um protocolo de Internet aprimorado e usa recursos aprimorados de modo.
[edit] user@R7#set chassis network-services enhanced-ip
Depois de configurar a
enhanced-ip
declaração e confirmar a configuração, a seguinte mensagem de aviso aparece solicitando que você reinicialize o roteador:'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
A reinicialização traz os FPCs no roteador.
-
Configure as interfaces para habilitar o transporte IP, MPLS e ISO.
user@R7#set interfaces ge-0/0/0 description To_R3 user@R7#set interfaces ge-0/0/0 vlan-tagging user@R7#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R7#set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 user@R7#set interfaces ge-0/0/0 unit 0 family iso user@R7#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:3700:10::7/64 user@R7#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R7#set interfaces ge-0/0/0 unit 1 family inet address 192.168.37.2/24 user@R7#set interfaces ge-0/0/0 unit 1 family iso user@R7#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:3700:20::7/64 user@R7#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/1 description To_R6 user@R7#set interfaces ge-0/0/1 vlan-tagging user@R7#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R7#set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 user@R7#set interfaces ge-0/0/1 unit 0 family iso user@R7#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:6700:10::7/64 user@R7#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/1 unit 1 vlan-id 2 user@R7#set interfaces ge-0/0/1 unit 1 family inet address 192.168.67.2/24 user@R7#set interfaces ge-0/0/1 unit 1 family iso user@R7#set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:6700:20::7/64 user@R7#set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8
-
Configure a interface de loopback para permitir endpoints de túnel e endpoints de serviço.
[edit] user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.7/32 user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.71/32 user@R7#set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 user@R7#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::07:07:07:07/128 user@R7#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::7:7:7:71/128
-
Definir políticas de importação e exportação. Por exemplo, configure políticas que exportam links de EPE TE do banco de dados de TE local para lsdist.0 políticas de importação no banco de lsdist.0 dados de TE local. Você pode configurar políticas para anunciar as rotas BGP para um peer.
Os roteamentos de filtro de rota são anunciados a partir de AS externo.
[edit] user@R7#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R7#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R7#set policy-options policy-statement direct from protocol direct user@R7#set policy-options policy-statement direct then accept user@R7#set policy-options policy-statement mpath then multipath-resolve user@R7#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R7#set policy-options policy-statement nlri2bgp term 1 then accept user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R7#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R7#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R7#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R7#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R7#set policy-options policy-statement payload_vpn_109 term 1 from route-filter 10.109.0.1/16 orlonger user@R7#set policy-options policy-statement payload_vpn_109 term 1 then community add color7000 user@R7#set policy-options policy-statement payload_vpn_109 term 1 then next-hop 10.7.7.7 user@R7#set policy-options policy-statement payload_vpn_109 term 1 then accept user@R7#set policy-options policy-statement payload_vpn_110 term 1 from route-filter 10.110.0.1/16 orlonger user@R7#set policy-options policy-statement payload_vpn_110 term 1 then community add color7001 user@R7#set policy-options policy-statement payload_vpn_110 term 1 then next-hop 10.7.7.7 user@R7#set policy-options policy-statement payload_vpn_110 term 1 then accept user@R7#set policy-options policy-statement pplb then load-balance per-packet user@R7#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement ted2nlri term 1 then accept user@R7#set policy-options community color7000 members color:0:7000 user@R7#set policy-options community color7001 members color:0:7001 user@R7#set policy-options resolution-map map1 mode ip-color
-
Configure opções de roteamento para identificar o roteador no domínio.
[edit] user@R7#set routing-options router-id 10.7.7.7 user@R7#set routing-options autonomous-system 65300 user@R7#set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 user@R7#set routing-options static route 10.100.100.101/32 resolve user@R7#set routing-options forwarding-table export pplb
-
Configure o BGP para habilitar o anúncio de rota BGP-LS para peer e definir os links EPE. Como o segmento expresso é um link de TE interno, essa configuração cria um link TE externo.
[edit] user@R7#set protocols bgp group ebgp1 type external user@R7#set protocols bgp group ebgp1 multihop ttl 100 user@R7#set protocols bgp group ebgp1 family inet unicast user@R7#set protocols bgp group ebgp1 family inet-vpn unicast user@R7#set protocols bgp group ebgp1 family traffic-engineering unicast user@R7#set protocols bgp group ebgp1 export [ nlri2bgp_epe payload_vpn_109 payload_vpn_110 ] user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 65200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group brown user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group brown user@R7#set protocols bgp group ebgp1 neighbor 10.100.100.101 local-address 10.7.7.71 user@R7#set protocols bgp group ebgp1 neighbor 10.100.100.101 peer-as 100 user@R7#set protocols bgp group ebgp1 vpn-apply-export user@R7#set protocols bgp group to-CE1 type external user@R7#set protocols bgp group to-CE1 local-address 192.168.50.1 user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet unicast user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet6 unicast user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 peer-as 65007 user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 local-as 65300
-
Configure o protocolo IS-IS.
[edit]user@R7#set protocols isis interface fxp0.0 disable user@R7#set protocols isis interface lo0.0 passive user@R7#set protocols isis level 1 disable user@R7#set protocols isis level 2 wide-metrics-only user@R7#set protocols isis traffic-engineering l3-unicast-topology user@R7#set protocols isis traffic-engineering advertisement always
-
Habilite a importação e exportação de parâmetros de banco de dados de engenharia de tráfego usando políticas.
[edit] user@R7#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R7#set protocols mpls traffic-engineering database import policy ted2nlri user@R7#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R7#set protocols mpls traffic-engineering database export l3-unicast-topology
-
Configure as políticas do grupo administrativo MPLS para a computação de caminhos LSP.
[edit] user@R7#set protocols mpls admin-groups red 0 user@R7#set protocols mpls admin-groups blue 1 user@R7#set protocols mpls admin-groups green 2 user@R7#set protocols mpls admin-groups yellow 3 user@R7#set protocols mpls admin-groups orange 4 user@R7#set protocols mpls admin-groups brown 5 user@R7#set protocols mpls admin-groups black 6 user@R7#set protocols mpls admin-groups pink 7
-
Configure a faixa de rótulo MPLS para atribuir rótulos estáticos para os links EPE.
[edit] user@R7#set protocols mpls label-range static-label-range 1000 70000
-
Configure o MPLS com interface e inclua grupos administrativos.
[edit] user@R7#set protocols mpls interface ge-0/0/1.0 admin-group [ red brown ] user@R7#set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ] user@R7#set protocols mpls interface all user@R7#set protocols mpls interface fxp0.0 disable
-
Configure as políticas SR-TE no roteador de entrada para habilitar a política SR-TE de ponta a ponta.
[edit] user@R7#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R7#set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 user@R7#set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 user@R7#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
Resultados
A partir do modo de configuração, confirme sua configuração inserindo os show chassis
show routing-options
show interfaces
show policy-options
comandos e show protocols
os comandos. Se a saída não exibir a configuração pretendida, repita as instruções neste exemplo para corrigir a configuração.
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.12.2/24; } family iso; family inet6 { address 2001:db8:3700:10::7/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.37.2/24; } family iso; family inet6 { address 2001:db8:3700:20::7/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.15.2/24; } family iso; family inet6 { address 2001:db8:6700:10::7/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.67.2/24; } family iso; family inet6 { address 2001:db8:6700:20::7/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.7.7.7/32; address 10.7.7.71/32; } family iso { address 49.0001.0007.0707.0700; } family inet6 { address 2001:db8:abcd::07:07:07:07/128; address 2001:db8:abcd::7:7:7:71/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement direct { from protocol direct; then accept; } policy-statement mpath { then multipath-resolve; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then accept; } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement payload_vpn_109 { term 1 { from { route-filter 109.0.0.1/16 orlonger; } then { community add color7000; next-hop 10.7.7.7; accept; } } } policy-statement payload_vpn_110 { term 1 { from { route-filter 10.110.0.1/16 orlonger; } then { community add color7001; next-hop 10.7.7.7; accept; } } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } community color7000 members color:0:7000; community color7001 members color:0:7001; resolution-map map1 { mode ip-color; } } routing-options { router-id 10.7.7.7; autonomous-system 65300; static { route1 0.100.100.101/32 { next-hop 10.100.100.100; resolve; } } forwarding-table { export pplb; } } protocols { bgp { group ebgp1 { type external; multihop { ttl 100; } family inet { unicast; } family inet-vpn { unicast; } family traffic-engineering { unicast; } export [ nlri2bgp_epe payload_vpn_109 payload_vpn_110 ]; neighbor 192.168.12.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR3 { label 8173; next-hop 192.168.12.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.15.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR6 { label 8176; next-hop 192.168.15.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 10.100.100.101 { local-address 10.7.7.71; peer-as 65100; } vpn-apply-export; } group to-CE1 { type external; local-address 192.168.50.1; neighbor 192.168.50.2 { family inet { unicast; } family inet6 { unicast; } peer-as 65007; local-as 65300; } } } isis { interface fxp0.0 { disable; } interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; traffic-engineering { l3-unicast-topology; advertisement always; } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/1.0 { admin-group [ red brown ]; } interface ge-0/0/0.0 { admin-group [ red brown ]; } interface all; interface fxp0.0 { disable; } } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } source-routing-path computelsp1 { to 10.100.100.100; install 10.100.100.101; primary { p1 { compute { compute1; } } } } } }
Verificação
Para confirmar que a configuração está funcionando corretamente, execute as seguintes tarefas:
- Verifique o segmento Express
- Verifique os anúncios do segmento Express
- Verifique as informações de topologia de TE
Verifique o segmento Express
Propósito
Verifique se os segmentos expressos foram criados corretamente.
Ação
A partir do modo operacional, execute os seguintes comandos:
-
show express-segments detail
— Verifique se os segmentos expressos são criados. -
show ted database topology-type express-segments detail
— Verifique se os segmentos expressos recém-criados estão inseridos no banco de dados de TE. -
show route table mpls.0 protocol express-segments
— Verifique se as entradas de encaminhamento foram criadas.
user@R1>show express-segments detail Name: set1sr-10.3.3.3 To: 10.3.3.3, Type: Dynamic (Set: set1sr) Label: 16 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 5d 20:37:08) LinkAttributes: LocalID: 2147483649 TE-Metric: 20, IGP-Metric: 20 BW: 0bps UnderlayPaths: 1 SRTE LSP: lsp1to3_sr TE-Metric: 0, IGP-Metric: 0 BW: 0bps
No R1
user@R1>show ted database topology-type express-segments detail TED database: 18 ISIS nodes 7 INET nodes 0 INET6 nodes NodeID: R1.00(10.1.1.1) Type: Rtr, Age: 774 secs, LinkIn: 4, LinkOut: 6 Protocol: EXPRESS-SEG(0) To: R3.00(10.3.3.3), Local: 10.1.1.1, Remote: 10.3.3.3 Local interface index: 2147483649, Remote interface index: 0 Link name: set1sr-10.3.3.3 NodeID: R3.00(10.3.3.3) Type: Rtr, Age: 580 secs, LinkIn: 4, LinkOut: 3 Protocol: EXPRESS-SEG(0)
No R1
user@R1>show route table mpls.0 protocol express-segments
mpls.0: 33 destinations, 33 routes (33 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
16 *[EXPRESS-SEG/6] 5d 14:13:37, metric 1
> to 192.168.3.2 via ge-0/0/2.0, Swap 801003
to 192.168.21.2 via ge-0/0/2.1, Swap 801003
Significado
-
show express-segments detail
Na saída, você pode ver o nome do segmento expresso (set1sr-10.3.3.3), rótulo de segmento expresso (16) e LSP (lsp1to3_srunderlay). -
show ted database topology-type express-segments detail
Na saída, você pode ver que as entradas do segmento expresso estão inseridas no banco de dados de TE. Os segmentos expressos (links de TE virtuais) são criados dinamicamente. O protocolo usado é EXPRESS-SEG(0). -
show route table mpls.0 protocol express-segments
Na saída, você pode ver o rótulo do segmento expresso (16). Como o segmento expresso é uma construção que depende dos LSPs underlay, o rótulo do segmento expresso é trocado para os rótulos SR-TE underlay (801003).
Verifique os anúncios do segmento Express
Propósito
Verifique se o nó de origem anuncia segmentos expressos aos vizinhos LS eBGP/iBGP.
Ação
A partir do modo operacional, execute os seguintes comandos:
-
show route table lsdist.0
— Verifique se os segmentos expressos no RIB BGP-LS estão sendo anunciados. -
show route advertising-protocol bgp neighbor
— Verifique se os segmentos expressos são enviados aos vizinhos LS eBGP/iBGP.
user@R1>show route table lsdist.0 lsdist.0: 23 destinations, 40 routes (23 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[EXPRESS-SEG/6] 5d 14:50:56 Fictitious NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[EXPRESS-SEG/6] 5d 14:50:56 Fictitious NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:100 IPv10:4.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 14:51:38 Fictitious NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:50:53, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:50:53, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:7.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 14:51:38 Fictitious NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[EXPRESS-SEG/6] 5d 14:50:56 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4 4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:336 } Remote { AS:65200 IPv4 4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.10 0.10.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 14:51:38 Fictitious LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:342 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.10 0.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:50:53, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:50:53, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:341 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:333 } Remote { AS:200 IPv4:10.3.3. 3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.6.6. 6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0
No R1
user@R1>show route advertising-protocol bgp 10.2.2.2 lsdist.0: 23 destinations, 40 routes (23 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR1 Label: 7101, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR4 Label: 7104, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * Self 100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR0 Label: 8110, Flags: 0xd0, Weight: 0
Significado
-
Na saída, o
show route table lsdist.0
BGP anuncia as rotas na tabela de roteamento. A tabela de roteamento é criada a partir do banco de dados de TE. Você pode ver os links de segmentos expressos (EXPRESS-SEG/6) e os links EPE (BGP-LS-EPE:0 }/1216). -
show route advertising-protocol bgp 10.2.2.2
Na saída, você pode ver o que o R1 é publicidade. Os segmentos expressos são inseridos no banco de dados te, que é copiado para RIB. O BGP-LS anuncia o RIB para o roteador peer. No peer, as informações RIB recebidas são copiadas no banco de dados local. A política neste exemplo anuncia apenas segmentos expressos e segmentos de EPE.
Verifique as informações de topologia de TE
Propósito
Verifique se os nós de entrada recebem informações de topologia de TE por meio do EBGP/iBGP LS.
Ação
A partir do modo operacional, execute os seguintes comandos:
-
show route receive-protocol bgp neighbor
— Verifique se os segmentos expressos são recebidos de vizinhos LS EBGP/iBGP. -
show route table lsdist.0
— Verifique se os segmentos expressos estão no BGP-LS RIB. -
show ted database topology-type l3-unicast detail
— Verifique se os segmentos expressos são importados para o banco de dados TE do roteador de entrada. -
show spring-traffic-engineering lsp
— Verifique se a política de SR de ponta a ponta foi computada e instalada com sucesso.
No R0
user@R0>show route receive-protocol bgp 10.9.148.59 … inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) iso.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) mpls.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden) inet6.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden) lsdist.0: 32 destinations, 61 routes (32 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483649 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 * 192.168.1.2 65200 I Metric: 20 TE Metric: 20 Link name: set1sr-10.3.3.3 Label: 16, Flags: 0x60, Weight: 1 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:342 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR7 Label: 7137, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.2 65200 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR0 Label: 8140, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:341 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR7 Label: 7167, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR3 Label: 8173, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR6 Label: 8176, Flags: 0xd0, Weight: 0 lsdist.1: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) inetcolor.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
No R0
user@R0>show route table lsdist.0 lsdist.0: 32 destinations, 61 routes (32 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65100 ISO:0100.0a0a.0a0a.00 ISIS-L2:0 }/1216 *[IS-IS/18] 5d 18:02:43 Fictitious NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[BGP/170] 5d 16:22:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:22:49, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[BGP/170] 5d 16:22:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:22:49, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv10:4.4.4.4 STATIC:0 }/1216 *[BGP/170] 5d 17:35:34, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.6.6.6 STATIC:0 }/1216 *[BGP/170] 5d 17:35:34, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:26:54, localpref 100, from 7.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 16:23:39 Fictitious NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 17:39:46 Fictitious NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 18:02:07 Fictitious NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:03, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:02, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :3.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:22:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :10.1.1.1 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:22:49, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:2147483649 } Remote { AS:65200 IPv4 :10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:27:54, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :10.4.4.4 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv 4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 16:23:39 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:336 } Remote { AS:65200 IPv 4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 17:39:46 Fictitious LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100 0.10.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:342 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv10:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100 0.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:341 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.3.3. 3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.6.6. 6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 PREFIX { Node { AS:65100 ISO:0100.0a0a.0a0a.00 } { IPv4:10.100.100.100/32 } ISIS- L2:0 }/1216 *[IS-IS/18] 5d 18:02:43 Fictitious PREFIX { Node { AS:65100 ISO:0100.0a0a.0a0a.00 } { IPv4:10.100.100.101/32 } ISIS- L2:0 }/1216 *[IS-IS/18] 5d 18:02:43 Fictitious P
No R0
user@R0>show ted database topology-type l3-unicast detail TED database: 1 ISIS nodes 6 INET nodes 0 INET6 nodes NodeID: R0.00(10.100.100.100) Type: Rtr, Age: 356 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) Protocol: BGP-LS-EPE(0) To: 10.4.4.4, Local: 192.168.2.1, Remote: 192.168.1.2 Local interface index: 336, Remote interface index: 0 Link name: epe_adj1_toR4 Local bgp peer as: 65100, Remote bgp peer as: 65200 To: 10.1.1.1, Local: 192.168.1.1, Remote: 192.168.1.2 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR1 Local bgp peer as: 65100, Remote bgp peer as: 65200 Protocol: IS-IS(2) 10.100.100.100, 10.100.100.101 NodeID: 10.1.1.1 Type: Rtr, Age: 491222 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: R0.00(10.100.100.100), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(2) To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set1sr-10.3.3.3 Protocol: BGP-LS-EPE(0) NodeID: 10.3.3.3 Type: Rtr, Age: 491420 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 342, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(6) Protocol: Exported STATIC(2) To: 10.1.1.1, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set3sr-10.1.1.1 NodeID: 10.4.4.4 Type: Rtr, Age: 495789 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: R0.00(10.100.100.100), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(2) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set4sr-10.6.6.6 Protocol: BGP-LS-EPE(0) NodeID: 10.6.6.6 Type: Rtr, Age: 495537 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 341, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(6) Protocol: Exported STATIC(2) To: 10.4.4.4, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set6sr-10.4.4.4 NodeID: 10.7.7.7 Type: Rtr, Age: 491421 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) Protocol: Exported BGP(6) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 336, Remote interface index: 0 Link name: epe_adj1_toR6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR3
No R0
user@R0>show spring-traffic-engineering lsp To State LSPname 10.7.7.7 Up computelsp1 10.7.7.7-7000<c> Up ecomputelsp1 Total displayed LSPs: 2 (Up: 2, Down: 0)
No R0
user@R0>show spring-traffic-engineering lsp detail Name: computelsp1 Tunnel-source: Static configuration To: 10.7.7.7 State: Up Path: p1 Path Status: NA Outgoing interface: NA Auto-translate status: Disabled Auto-translate result: N/A Compute Status:Enabled , Compute Result:success , Compute-Profile Name:compute1 Total number of computed paths: 2 Computed-path-index: 1 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7101 source router-id: 10.100.100.100, destination router-id: 10.1.1.1 source interface-address: 192.168.1.1, destination interface-address: 192.168.1.2 computed segment : 2 (computed-adjacency-segment): label: 16 source router-id: 10.1.1.1, destination router-id: 10.3.3.3 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7137 source router-id: 10.3.3.3, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Computed-path-index: 2 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7104 source router-id: 10.100.100.100, destination router-id: 10.4.4.4 source interface-address: 192.168.2.1, destination interface-address: 192.168.12.1 computed segment : 2 (computed-adjacency-segment): label: 17 source router-id: 10.4.4.4, destination router-id: 10.6.6.6 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7167 source router-id: 10.6.6.6, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Name: ecomputelsp1 Tunnel-source: Static configuration To: 10.7.7.7-7000<c> State: Up Path: p1 Path Status: NA Outgoing interface: NA Auto-translate status: Disabled Auto-translate result: N/A Compute Status:Enabled , Compute Result:success , Compute-Profile Name:ecompute1 Total number of computed paths: 2 Computed-path-index: 1 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7101 source router-id: 10.100.100.100, destination router-id: 10.1.1.1 source interface-address: 192.168.1.1, destination interface-address: 192.168.1.2 computed segment : 2 (computed-adjacency-segment): label: 16 source router-id: 10.1.1.1, destination router-id: 10.3.3.3 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7137 source router-id: 10.3.3.3, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Computed-path-index: 2 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7104 source router-id: 10.100.100.100, destination router-id: 10.4.4.4 source interface-address: 192.168.2.1, destination interface-address: 192.168.12.1 computed segment : 2 (computed-adjacency-segment): label: 17 source router-id: 10.4.4.4, destination router-id: 10.6.6.6 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7167 source router-id: 10.6.6.6, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Total displayed LSPs: 2 (Up: 2, Down: 0)
Significado
-
show route receive-protocol bgp 192.168.1.2
Na saída, ela mostra as rotas que foram recebidas pelo roteador de entrada (R0) do vizinho BGP, que descreve o segmento express (links de TE virtuais). -
show route table lsdist.0
Na saída, ela mostra as rotas que foram recebidas pelo roteador de entrada (R0) e se elas estão inseridas na lsdist.0 RIB. Ele também mostra se o lsdist.0 RIB é copiado no banco de dados te local. -
show ted database topology-type l3-unicast detail
Na saída, as rotas são copiadas no banco de dados local de TE. Este set1sr-10.3.3.3 é um segmento expresso com ponto final como 3,3,3,3 e é criado com sucesso na R1. A R1 anunciou o segmento expresso e o R0 o inseriu no banco de dados local de TE. Você também pode ver os segmentos de EPE (epe_adj1_toR7). -
show spring-traffic-engineering lsp
Na saída, você pode ver que as políticas SR estão ativas. Isso mostra que agora você é capaz de computar uma política SR de ponta a ponta multi domínio (R0 a R7). -
show spring-traffic-engineering lsp detail
Na saída, você pode ver as etiquetas selecionadas. computelsp1 No LSP, o rótulo 7101 é um segmento de EPE, 16 é o segmento expresso, e 7137 também é um segmento de EPE. Isso mostra que agora você é capaz de computar uma política SR de ponta a ponta multi domínio (R0 a R7).