Para parceiros
Este documento descreve como configurar a redistribuição mútua entre o Enhanced Interior Gateway Routing Protocol (EIGRP) e o Border Gateway Protocol (BGP).
Conhecimento básico do EIGRP
Conhecimento básico do BGP
As configurações neste documento são baseadas no Cisco 7200 Series Router com Cisco IOS® Software Release 15.0(1).
Consulte as Convenções de Dicas Técnicas da Cisco para obter mais informações sobre convenções de documentos.
Neste exemplo, os roteadores R1 e R2 se comunicam entre si usando o EIGRP. Os roteadores R2 e R3 usam eBGP. Para redistribuir mutuamente as rotas do eBGP no EIGRP, use o comando redistribute bgp com métricas do EIGRP. Da mesma forma, para redistribuir rotas EIGRP no BGP, use o comando redistribute eigrp AS number.
Observação: use a Command Lookup Tool (somente clientes registrados) para encontrar mais informações sobre os comandos usados neste documento.
Este documento utiliza a seguinte configuração de rede:
Este documento utiliza as seguintes configurações:
Roteador R1 |
---|
! hostname R1 ! ip cef ! ! interface Loopback0 ip address 30.30.30.30 255.255.255.255 ! interface FastEthernet0/0 ip address 192.168.1.101 255.255.255.0 duplex auto speed auto ! router eigrp 100 network 30.0.0.0 network 192.168.1.0 no auto-summary ! end |
Roteador R2 |
---|
! hostname R2 ! ip cef ! ! interface Loopback0 ip address 10.10.10.10 255.255.255.255 ! interface Loopback1 ip address 20.20.20.20 255.255.255.255 ! interface FastEthernet0/0 ip address 192.168.1.100 255.255.255.0 duplex auto speed auto ! interface Serial0/0 ip address 172.16.100.50 255.255.255.0 serial restart-delay 0 clock rate 2000000 ! router eigrp 100 redistribute static redistribute bgp 1000 metric 100 1 255 1 1500 network 10.0.0.0 network 192.168.1.0 no auto-summary ! router bgp 1000 no synchronization bgp log-neighbor-changes network 20.20.20.20 mask 255.255.255.255 redistribute connected redistribute static redistribute eigrp 100 neighbor 172.16.100.51 remote-as 2000 neighbor 172.16.100.51 next-hop-self no auto-summary ! end |
Roteador R3 |
---|
! hostname R3 ! ip cef ! interface Loopback0 ip address 22.22.22.22 255.255.255.255 ! interface Serial0/0 ip address 172.16.100.51 255.255.255.0 serial restart-delay 0 clock rate 2000000 ! router bgp 2000 no synchronization bgp log-neighbor-changes network 22.22.22.22 mask 255.255.255.255 network 172.16.100.0 mask 255.255.255.0 neighbor 172.16.100.50 remote-as 1000 neighbor 172.16.100.50 default-originate default-information originate !--- Default route is configured! no auto-summary ! end |
Use esta seção para confirmar se a sua configuração funciona corretamente.
A Output Interpreter Tool ( somente clientes registrados) (OIT) oferece suporte a determinados comandos show. Use a OIT para visualizar uma análise da saída do comando show.
Para verificar se o EIGRP está recebendo as rotas redistribuídas, use o comando show ip route eigrp.
show ip route eigrp |
---|
No roteador R1 R1#show ip route eigrp 20.0.0.0/32 is subnetted, 1 subnets D EX 20.20.20.20 [170/25625856] via 192.168.1.100, 01:00:33, FastEthernet0/0 22.0.0.0/32 is subnetted, 1 subnets D EX 22.22.22.22 [170/25625856] via 192.168.1.100, 00:59:49, FastEthernet0/0 10.0.0.0/32 is subnetted, 1 subnets D 10.10.10.10 [90/409600] via 192.168.1.100, 00:55:17, FastEthernet0/0 D*EX 0.0.0.0/0 [170/25625856] via 192.168.1.100, 00:46:24, FastEthernet0/0 !--- Shows the default route from router R3. !--- EX indicates that the routes are EIGRP external routes. |
Para verificar se as rotas EIGRP são redistribuídas corretamente no BGP, use o comando show ip route bgp no roteador R3.
show ip route bgp |
---|
No roteador R3 R3#show ip route bgp show ip route bgp 20.0.0.0/32 is subnetted, 1 subnets B 20.20.20.20 [20/0] via 172.16.100.50, 01:03:02 10.0.0.0/32 is subnetted, 1 subnets B 10.10.10.10 [20/0] via 172.16.100.50, 01:03:02 B 192.168.1.0/24 [20/0] via 172.16.100.50, 01:03:02 30.0.0.0/32 is subnetted, 1 subnets B 30.30.30.30 [20/409600] via 172.16.100.50, 00:59:06 !--- The output indicates that the EIGRP routes are !--- redistributed in BGP. |
Revisão | Data de publicação | Comentários |
---|---|---|
1.0 |
02-May-2012 |
Versão inicial |