Para parceiros
O conjunto de documentação deste produto faz o possível para usar uma linguagem imparcial. Para os fins deste conjunto de documentação, a imparcialidade é definida como uma linguagem que não implica em discriminação baseada em idade, deficiência, gênero, identidade racial, identidade étnica, orientação sexual, status socioeconômico e interseccionalidade. Pode haver exceções na documentação devido à linguagem codificada nas interfaces de usuário do software do produto, linguagem usada com base na documentação de RFP ou linguagem usada por um produto de terceiros referenciado. Saiba mais sobre como a Cisco está usando a linguagem inclusiva.
A Cisco traduziu este documento com a ajuda de tecnologias de tradução automática e humana para oferecer conteúdo de suporte aos seus usuários no seu próprio idioma, independentemente da localização. Observe que mesmo a melhor tradução automática não será tão precisa quanto as realizadas por um tradutor profissional. A Cisco Systems, Inc. não se responsabiliza pela precisão destas traduções e recomenda que o documento original em inglês (link fornecido) seja sempre consultado.
Este documento descreve como criar uma rota preferida ao influenciar as métricas do Enhanced Interior Gateway Routing Protocol (EIGRP). Dada a topologia mostrada no diagrama da rede, este documento descreve diversas maneiras de influenciar o tráfego IP dos clientes aos servidores para que o caminho R1>R2>R3 seja preferido. O objetivo é fazer o caminho R1>R2>R4 em um backup que somente é usado no caso de uma falha em R3.
Este documento requer um conhecimento básico de roteamento de IP e roteamento de EIGRP. Para obter mais informações sobre o IP Routing e EIGRP, consulte estes documentos:
As informações neste documento são baseadas nestas versões de software e hardware.
O EIGRP é suportado no Cisco IOS® Software Release 9.21 e posterior. As informações neste documento são baseadas no Cisco IOS Software Release 12.3(3).
O EIGRP pode ser configurado em todos os roteadores (como a série Cisco 2500 e a série Cisco 2600) e em todos os switches da camada 3.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Para obter mais informações sobre convenções de documento, consulte .
Há vários métodos para definir uma rota preferencial influenciando as métricas do EIGRP. Este documento descreve estes métodos e detalha suas vantagens e desvantagens. Este documento descreve também o efeito de modificar a largura de banda, embora fazer isso não seja uma maneira viável de alterar o caminho nesse exemplo.
Clique no diagrama de rede para exibi-lo em uma janela separada do navegador para uso como referência mais adiante neste documento.
Dois dos comandos usados neste documento para verificar o comportamento do EIGRP são os comandos show ip eigrp topology e show ip eigrp topology network-ip subnet-mask.
Se você tiver a saída de um comando show ip eigrp topology ou de um comando show ip eigrp topology network-ip subnet-mask do dispositivo Cisco, você poderá usar o Cisco CLI Analyzer (somente clientes registrados) para exibir possíveis problemas e correções. Para usar o Cisco CLI Analyzer
(somente clientes registrados), você deve estar conectado e ter o JavaScript habilitado em seu navegador da Web.
As atualizações do EIGRP contêm cinco métricas: largura de banda mínima, atraso, carga, confiabilidade e MTU (Maximum Transmission Unit, unidade de transmissão máxima). Dessas cinco métricas, por padrão, somente a largura de banda mínima e o atraso são usados para calcular o melhor caminho. Ao contrário da maioria das métricas, a largura de banda mínima é definida como a largura de banda mínima de todo o caminho e não reflete quantos saltos ou links de largura de banda baixa estão no caminho. Atraso é um valor cumulativo que aumenta pelo valor de atraso de cada segmento no caminho. Para obter mais informações sobre métricas do EIGRP, consulte o white paper Enhanced Interior Gateway Routing Protocol.
Essas configurações podem ser usadas para definir uma rota preferida.
R1# show run Current configuration: 640 bytes ! version 12.3 ! hostname R1 ! interface Serial0 no ip address encapsulation frame-relay !--- Enables Frame Relay encapsulation. ! interface Serial0.201 point-to-point !--- Enables a point-to-point link on the sub-interface. ip address 10.1.1.1 255.255.255.0 frame-relay interface-dlci 201 !--- Assigns a data-link connection identifier (DLCI)
!--- to a Frame Relay sub-interface. ! router eigrp 1 network 10.0.0.0 ! end
Observação: o switch Frame Relay está oculto no diagrama de rede.
R1# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - ISIS level-1, L2 - ISIS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets D 10.1.3.0 [90/2221056] via 10.1.1.2, 00:07:08, Serial0.201 D 10.1.2.0 [90/2195456] via 10.1.1.2, 00:07:08, Serial0.201 C 10.1.1.0 is directly connected, Serial0.201 R1# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2221056 Routing Descriptor Blocks: 10.1.1.2 (Serial0.201), from 10.1.1.2, Send flag is 0x0 Composite metric is (2221056/307200), Route is Internal Vector metric: Minimum bandwidth is 1544 Kbit Total delay is 22000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 2
R2# show run Current configuration: 618 bytes ! version 12.3 ! hostname R2 ! interface Ethernet0 ip address 10.1.2.2 255.255.255.0 no ip directed-broadcast ! ! interface Serial0 no ip address encapsulation frame-relay ! interface Serial0.101 point-to-point ip address 10.1.1.2 255.255.255.0 frame-relay interface-dlci 101 ! router eigrp 1 network 10.0.0.0 ! end R2# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - ISIS level-1, L2 - ISIS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets D 10.1.3.0 [90/307200] via 10.1.2.4, 00:03:47, Ethernet0 [90/307200] via 10.1.2.3, 00:03:48, Ethernet0 C 10.1.2.0 is directly connected, Ethernet0 C 10.1.1.0 is directly connected, Serial0.101
Observação: R2 tem dois caminhos de mesmo custo para 10.1.3.0/24 através de R3 (10.1.2.3) e R4 (10.1.2.4).
R2# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 2 Successor(s), FD is 307200 Routing Descriptor Blocks: 10.1.2.3 (Ethernet0), from 10.1.2.3, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1 10.1.2.4 (Ethernet0), from 10.1.2.4, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1
Observação: ambos os caminhos têm a mesma Métrica Composta (Distância/Distância Relatada). A Feasible Distance (FD) (Distância Factível) de R1 está anunciada, tornando-se a Reported Distance (Distância Informada) de R1.
R3# show run Current configuration: 556 bytes ! version 12.3 ! hostname R3 ! interface Ethernet0/0 ip address 10.1.2.3 255.255.255.0 no ip directed-broadcast ! interface Ethernet0/1 ip address 10.1.3.3 255.255.255.0 no ip directed-broadcast ! router eigrp 1 network 10.0.0.0 ! end R3# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - ISIS level-1, L2 - ISIS level-2, ia - ISIS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets C 10.1.3.0 is directly connected, Ethernet0/1 C 10.1.2.0 is directly connected, Ethernet0/0 D 10.1.1.0 [90/20537600] via 10.1.2.2, 00:16:14, Ethernet0/0 R3# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 281600 Routing Descriptor Blocks: 0.0.0.0 (Ethernet0/1), from Connected, Send flag is 0x0 Composite metric is (281600/0), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 1000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 0 10.1.2.4 (Ethernet0/0), from 10.1.2.4, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1 R3# show interface ethernet0/1 Ethernet0/1 is up, line protocol is up Hardware is AmdP2, address is 0050.7329.52e1 (bia 0050.7329.52e1) Internet address is 10.1.3.3/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:02, output 00:00:01, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 291 packets input, 28402 bytes, 0 no buffer Received 283 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 500 packets output, 50876 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
R4# show run Current configuration: 549 bytes ! version 12.3 ! hostname R4 ! interface Ethernet0/0 ip address 10.1.2.4 255.255.255.0 no ip directed-broadcast ! interface Ethernet0/1 ip address 10.1.3.4 255.255.255.0 no ip directed-broadcast ! router eigrp 1 network 10.0.0.0 ! end R4# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - ISIS level-1, L2 - ISIS level-2, IA - ISIS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets C 10.1.3.0 is directly connected, Ethernet0/1 C 10.1.2.0 is directly connected, Ethernet0/0 D 10.1.1.0 [90/20537600] via 10.1.2.2, 00:17:08, Ethernet0/0 R4# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 281600 Routing Descriptor Blocks: 0.0.0.0 (Ethernet0/1), from Connected, Send flag is 0x0 Composite metric is (281600/0), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 1000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 0 10.1.2.3 (Ethernet0/0), from 10.1.2.3, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1
Como as alterações na métrica de atraso são propagadas para todos os roteadores downstream, a alteração do parâmetro de atraso da interface é o método preferido de influenciar a seleção de caminho para estes dois cenários:
O segmento Ethernet 10.1.3.0/24 contém somente servidores e não há outras sub-redes atrás da sub-rede 10.1.3.0/24. (Esta configuração é ideal para um server farm).
Você deseja influenciar a seleção de caminho para todas as rotas aprendidas via vizinhos do EIGRP no segmento 10.1.3.0/24.
Verifique o atraso na interface antes de fazer alterações.
Atualmente, ele é definido como R3, como mostrado aqui.
R4# show interface ethernet0/1 Ethernet0/1 is up, line protocol is up Hardware is AmdP2, address is 0050.7329.5321 (bia 0050.7329.5321) Internet address is 10.1.3.4/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:02, output 00:00:02, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 284 packets input, 27914 bytes, 0 no buffer Received 276 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 482 packets output, 49151 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
Altere o valor de atraso no segmento 10.1.3.0/24.
Você deve ter cuidado ao selecionar o novo atraso. Evite aumentar o retardo até um ponto no qual R2 não vê mais a rota como um sucessor possível.
R4# configure terminal Enter configuration commands, one per line. End with CNTL/Z. R4(config)# interface ethernet0/1 R4(config-if)# delay 120 !--- Delay is entered in tens of microseconds. R4(config-if)# end R4#
Confirme se o atraso mudou para 1200 microssegundos para esta interface.
R4# show interface ethernet0/1 Hardware is AmdP2, address is 0050.7329.5321 (bia 0050.7329.5321) Internet address is 10.1.3.4/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1200 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:03, output 00:00:00, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 345 packets input, 33508 bytes, 0 no buffer Received 333 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 575 packets output, 57863 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
Confirme se R2 tem apenas uma rota 'melhor' para 10.1.3.0 via R3.
R2# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - ISIS level-1, L2 - ISIS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets D 10.1.3.0 [90/307200] via 10.1.2.3, 00:02:43, Ethernet0 C 10.1.2.0 is directly connected, Ethernet0 C 10.1.1.0 is directly connected, Serial0.101 R2# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 307200 Routing Descriptor Blocks: 10.1.2.3 (Ethernet0), from 10.1.2.3, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1 10.1.2.4 (Ethernet0), from 10.1.2.4, Send flag is 0x0 Composite metric is (312320/286720), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2200 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1
O comando show ip eigrp topology mostra que a métrica de retardo anunciada por R4 foi aumentada em 200 (para 2200 microssegundos), conforme o esperado. Esse aumento faz com que as duas rotas tenham custos diferentes e impede o balanceamento de carga do R2.
Observação: como a distância anunciada por R4 (286720) é menor que a distância anunciada por R2 (a distância viável, 307200), o caminho é considerado livre de loops. Como o caminho anunciado por R4 é considerado sem loops, é um sucessor viável e é instalado imediatamente se R3 parar de anunciar uma rota para 10.1.3.0/24.
R1# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - ISIS level-1, L2 - ISIS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets D 10.1.3.0 [90/2221056] via 10.1.1.2, 00:25:27, Serial0.201 D 10.1.2.0 [90/2195456] via 10.1.1.2, 00:25:27, Serial0.201 C 10.1.1.0 is directly connected, Serial0.201 R1# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2221056 Routing Descriptor Blocks: 10.1.1.2 (Serial0.201), from 10.1.1.2, Send flag is 0x0 Composite metric is (2221056/307200), Route is Internal Vector metric: Minimum bandwidth is 1544 Kbit Total delay is 22000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 2
A Métrica Composta em R2 pode ser modificada usando-se uma lista de deslocamento no roteador R4. Um valor de 20 na lista de deslocamento em R4 aumenta a Métrica Composta para o caminho R2-R4 em 20 em R2. Portanto, o caminho R2-R4 torna-se um caminho de backup para R2-R3. Uma lista de deslocamento é o método preferencial se:
Você só quer influenciar um caminho específico sendo anunciado.
Roteadores adicionais são conectados à sub-rede 10.1.3.0/24 e você não deseja influenciar os caminhos originados pelos roteadores.
Configure uma lista de deslocamento em R4 que aumente (em 20) o atraso para qualquer rota iniciando com 10.1.3.x.
R4# configure terminal Enter configuration commands, one per line. End with CNTL/Z. R4(config)# access-list 99 permit 10.1.3.0 0.0.0.255 R4(config)# router eigrp 1 R4(config-router)# offset-list 99 out 20 e0/0 R4(config-router)# end R4#
Você pode ver nesta saída que a lista de deslocamento não altera nada na tabela de topologia do EIGRP em R4.
A métrica muda somente quando a rota é anunciada.
R4# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 281600 Routing Descriptor Blocks: 0.0.0.0 (Ethernet0/1), from Connected, Send flag is 0x0 Composite metric is (281600/0), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 1000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 0 10.1.2.3 (Ethernet0/0), from 10.1.2.3, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1
Em R2, confirme se a rota através de R3 (10.1.2.3) é novamente o único melhor caminho.
R2# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - ISIS level-1, L2 - ISIS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets D 10.1.3.0 [90/307200] via 10.1.2.3, 00:00:20, Ethernet0 C 10.1.2.0 is directly connected, Ethernet0 C 10.1.1.0 is directly connected, Serial0.101
A tabela de topologia EIGRP reflete o aumento no retardo de R4 (10.1.2.4).
Distância viável R4 (281600) + lista de deslocamento R4 (20) = distância relatada de R4 (281620).
Observação: um defeito cosmético no Cisco IOS Software Release 12.0(7) evita que o aumento de atraso seja refletido com precisão na seção Total Delay da saída mostrada aqui.
DDTS | Descrição |
---|---|
CSCdp36097 (apenas clientes registrados) | EIGRP: lista de compensação adiciona valor de atraso incorreto |
R2# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 307200 Routing Descriptor Blocks: 10.1.2.3 (Ethernet0), from 10.1.2.3, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1 10.1.2.4 (Ethernet0), from 10.1.2.4, Send flag is 0x0 Composite metric is (307220/281620), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1
Também é possível alterar o processo de seleção de caminho alterando a distância administrativa, em R2, da rota aprendida de R4. Esse método é menos ideal que os outros. Ele pode aumentar o potencial de loops de roteamento pelos motivos listados aqui:
A distância administrativa é geralmente usada para determinar o método pelo qual uma rota foi aprendida. Se definido incorretamente, o roteador individual não pode escolher uma rota redistribuída em vez do melhor caminho real.
A distância administrativa não é propagada para outros roteadores. Os protocolos de roteamento dependem do fato de todos os roteadores escolherem o mesmo caminho devido ao mesmo conjunto de parâmetros. Alterar parâmetros em um único roteador pode levar a loops de roteamento.
Altere a configuração de R2 para que, quando uma atualização de roteamento de R4 (10.1.2.4) para a sub-rede 10.1.3.0/24 for ouvida, a distância administrativa seja aumentada para 91.
91 é escolhido porque é 1 maior do que a distância administrativa EIGRP para internos (que é de 90). A distância administrativa padrão para os externos do EIGRP (rotas redistribuídas no EIGRP) é 170. Consulte o documento para obter os valores padrão de todos os protocolos de roteamento.
R2# configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)# access-list 99 permit 10.1.3.0 0.0.0.255 R2(config)# router eigrp 1 R2(config-router)# distance 91 10.1.2.4 0.0.0.0 99 R2(config-router)# end R2#
Nesse ponto, talvez seja necessário emitir o comando clear ip route para que as alterações entrem em vigor.
Observação: agora há apenas um caminho para 10.1.3.0/24 até R3 (10.1.2.3).
R2# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - ISIS, L1 - ISIS level-1, L2 - ISIS level-2, * - candidate default U - per-user static route, o - ODR Gateway of last resort is not set 10.0.0.0/24 is subnetted, 3 subnets D 10.1.3.0 [90/307200] via 10.1.2.3, 00:05:28, Ethernet0 C 10.1.2.0 is directly connected, Ethernet0 C 10.1.1.0 is directly connected, Serial0.101
Observação: nada na tabela de topologia do EIGRP mudou.
R2# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 307200 Routing Descriptor Blocks: 10.1.2.3 (Ethernet0), from 10.1.2.3, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1 10.1.2.4 (Ethernet0), from 10.1.2.4, Send flag is 0x0 Composite metric is (307200/281600), Route is Internal Vector metric: Minimum bandwidth is 10000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1
Para ilustrar um possível problema que esse método pode causar se não for usado cuidadosamente, imagine que R1 e R2 estejam em execução em Open Shortest Path First (OSPF), com uma distância administrativa de 110, para a rede 11.0.0.0/8. Imagine também que R4 tem uma rota estática para 11.1.1.0/24 que aponta para R2 (10.1.2.2). R4 está redistribuindo rotas estáticas no EIGRP para que alguns roteadores novos em 10.1.3.0/24 possam chegar a 11.1.1.0/24.
Normalmente, R2 recebe a rota externa EIGRP para 11.1.1.0/24 de R4 com uma distância administrativa de 170. Como essa distância é maior que a da rota OSPF (110), ela não está instalada.
Essa saída é um exemplo do comando distance usado acima quando configurado incorretamente.
R2# configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)# access-list 99 permit 11.1.1.0 0.0.0.255 R2(config)# router eigrp 1 R2(config-router)# distance 91 10.1.2.4 0.0.0.0 99 R2(config-router)# end R2#
Essa configuração cria um loop de roteamento entre R2 e R4 para a sub-rede 11.1.1.0/24. R2 agora prefere a rota 11.1.1.0/24 anunciada por R4. Isso se deve ao fato de a distância administrativa (91) ser menor do que a distância administrativa da rota OSPF (110).
Não se aconselha utilizar a largura de banda para influenciar os caminhos do EIGRP, por duas razões:
Alterar a largura de banda pode ter impacto além de afetar as métricas do EIGRP. Por exemplo, a qualidade de serviço (QoS) também examina a largura de banda em uma interface.
Os limites do EIGRP para usar 50% da largura de banda configurada. Diminuir a largura de banda pode causar problemas, como impedir que os vizinhos do EIGRP obtenham pacotes de saudação devido à limitação.
A alteração do retardo não afeta outros protocolos nem faz com que o EIGRP controle novamente.
Verifique a tabela de topologia do EIGRP para R1 antes de fazer alterações.
R1# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2221056 Routing Descriptor Blocks: 10.1.1.2 (Serial0.201), from 10.1.1.2, Send flag is 0x0 Composite metric is (2221056/307200), Route is Internal Vector metric: Minimum bandwidth is 1544 Kbit Total delay is 22000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 2
Verifique os valores iniciais da interface ethernet0 em R2.
R2# show interface ethernet0 Ethernet0 is up, line protocol is up Hardware is Lance, address is 0010.7b3c.6786 (bia 0010.7b3c.6786) Internet address is 10.1.2.2/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:01, output 00:00:02, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 1938 packets input, 165094 bytes, 0 no buffer Received 1919 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected 1482 packets output, 124222 bytes, 0 underruns 0 output errors, 0 collisions, 18 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
Diminua a largura de banda para ver o impacto em R1.
R2# configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)# interface ethernet0 R2(config-if)# bandwidth 5000 R2(config-if)# end R2#
Confirme a alteração.
R2# show interface ethernet0 Ethernet0 is up, line protocol is up Hardware is Lance, address is 0010.7b3c.6786 (bia 0010.7b3c.6786) Internet address is 10.1.2.2/24 MTU 1500 bytes, BW 5000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:02, output 00:00:01, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 1995 packets input, 169919 bytes, 0 no buffer Received 1969 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 input packets with dribble condition detected 1525 packets output, 127831 bytes, 0 underruns 0 output errors, 0 collisions, 18 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
Confirme se ele também foi alterado na tabela de topologia do EIGRP.
R2# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 2 Successor(s), FD is 563200 Routing Descriptor Blocks: 10.1.2.4 (Ethernet0), from 10.1.2.4, Send flag is 0x0 Composite metric is (563200/281600), Route is Internal Vector metric: Minimum bandwidth is 5000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1 10.1.2.3 (Ethernet0), from 10.1.2.3, Send flag is 0x0 Composite metric is (563200/281600), Route is Internal Vector metric: Minimum bandwidth is 5000 Kbit Total delay is 2000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1
Verifique o impacto de R1 na tabela de topologia do EIGRP.
R1# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 2221056 Routing Descriptor Blocks: 10.1.1.2 (Serial0.201), from 10.1.1.2, Send flag is 0x0 Composite metric is (2221056/563200), Route is Internal Vector metric: Minimum bandwidth is 1544 Kbit Total delay is 22000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 2
Não há alteração, pois a conexão do Frame Relay entre R1 e R2 ainda é o link de velocidade mais baixa. Você só verá alguma alteração se diminuir essa largura de banda na interface ethernet0 para R2 para um valor menor que 1544.
Diminua a largura de banda na interface ethernet0 para R2 para 1000.
R2# configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2(config)# interface ethernet 0 R2(config-if)# bandwidth 1000 R2(config-if)# end R2#
Verifique o impacto de R1 na tabela de topologia do EIGRP.
R1# show ip eigrp topology 10.1.3.0 255.255.255.0 IP-EIGRP (AS 1): Topology entry for 10.1.3.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 312320 Routing Descriptor Blocks: 10.1.1.2 (Serial0.201), from 10.1.1.2, Send flag is 0x0 Composite metric is (3123200/2611200), Route is Internal Vector metric: Minimum bandwidth is 1000 Kbit Total delay is 22000 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 2