Estou usando caixas de quagga e FreeBSD para conseguir isso: link . A única alteração é que o provedor upstream está enviando o bgp completo em vez da rota padrão.
Eu tenho tudo configurado e funcionando sem vida corretamente. No entanto, estou tendo problemas com algumas coisas:
quando a conexão entre o R101 e o R103 cai, o R101 não envia tráfego pelo link R102-R104. Isso porque o R101 não possui rotas R102 além da que estou anunciando. Como devo configurar o quagga para redistribuir rotas obtidas via peer externo sobre a sessão BGP interna?
Para anunciar minhas redes, o Quagga funciona até o momento em que eu reinicio o R101. Uma vez que o R! 01 retorna e a sessão BGP interna é restabelecida, o R102 pára de anunciar qualquer coisa para o R101, mas anuncia para o R104. Isso é normal? Depois de reiniciar o quagga no R102, a publicidade para o R101 funciona corretamente.
Configuração do Quagga do R101:
! hostname Router log file /var/log/quagga.log log stdout hostname bgpd bgp config-type cisco ! debug bgp updates in ! password zebra enable password zebra ! interface bge0 ipv6 nd suppress-ra no link-detect ! interface bge1 ipv6 nd suppress-ra no link-detect ! interface igb0 ipv6 nd suppress-ra no link-detect ! interface igb1 ipv6 nd suppress-ra no link-detect ! interface igb2 ipv6 nd suppress-ra no link-detect ! interface igb3 ipv6 nd suppress-ra no link-detect ! interface lagg0 ipv6 nd suppress-ra no link-detect ! interface lo0 no link-detect ! interface lo1 ipv6 nd suppress-ra no link-detect ! interface pfsync0 ipv6 nd suppress-ra no link-detect ! interface vlan3 ipv6 nd suppress-ra no link-detect ! interface vlan4 ipv6 nd suppress-ra no link-detect ! interface vlan5 ipv6 nd suppress-ra no link-detect ! interface vlan101 ipv6 nd suppress-ra no link-detect ! interface vlan106 ipv6 nd suppress-ra no link-detect ! interface vlan107 ipv6 nd suppress-ra no link-detect ! interface vlan109 ipv6 nd suppress-ra no link-detect ! router bgp 1 no synchronization bgp router-id 0.0.0.1 bgp log-neighbor-changes network 1.0.0.0 network 2.0.0.0 neighbor 4.4.4.1 remote-as 2 neighbor 4.4.4.1 description "R101 uplink" neighbor 4.4.4.1 update-source 4.4.4.2 neighbor 4.4.4.1 send-community both neighbor 4.4.4.1 route-map R1-MAP out neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 description "R101 BGP interconnect" neighbor 1.1.1.1 update-source 1.1.1.2 neighbor 1.1.1.1 next-hop-self neighbor 1.1.1.1 send-community both neighbor 1.1.1.1 soft-reconfiguration inbound maximum-paths 2 no auto-summary ! ip prefix-list 1 seq 5 permit 2.0.0.0/8 ip prefix-list 2 seq 5 permit 1.0.0.0/8 ! route-map R1-MAP permit 10 match ip address prefix-list 1 set as-path prepend 1 1 1 ! route-map R1-MAP permit 20 match ip address prefix-list 2 ! ip forwarding ! line vty ! end
R102 configuração completa:
hostname Router hostname bgpd log file /var/log/quagga.log log stdout bgp config-type cisco ! password zebra enable password zebra ! interface bge0 ipv6 nd suppress-ra no link-detect ! interface bge1 ipv6 nd suppress-ra no link-detect ! interface igb0 ipv6 nd suppress-ra no link-detect ! interface igb1 ipv6 nd suppress-ra no link-detect ! interface igb2 ipv6 nd suppress-ra no link-detect ! interface igb3 ipv6 nd suppress-ra no link-detect ! interface lagg0 ipv6 nd suppress-ra no link-detect ! interface lo0 no link-detect ! interface lo1 no link-detect ! interface pfsync0 ipv6 nd suppress-ra no link-detect ! interface vlan3 ipv6 nd suppress-ra no link-detect ! interface vlan4 ipv6 nd suppress-ra no link-detect ! interface vlan5 ipv6 nd suppress-ra no link-detect ! interface vlan101 ipv6 nd suppress-ra ipv6 nd suppress-ra no link-detect ! interface vlan106 ipv6 nd suppress-ra no link-detect ! interface vlan107 ipv6 nd suppress-ra no link-detect ! interface vlan109 ipv6 nd suppress-ra no link-detect ! router bgp 1 no synchronization bgp router-id 0.0.0.2 bgp log-neighbor-changes network 1.0.0.0 network 2.0.0.0 neighbor 3.3.3.1 remote-as 2 neighbor 3.3.3.1 description "R102 uplink" neighbor 3.3.3.1 update-source 3.3.3.2 neighbor 3.3.3.1 send-community both neighbor 3.3.3.1 route-map R102-MAP out neighbor 1.1.1.2 remote-as 1 neighbor 1.1.1.2 description "R102 BGP interconnect" neighbor 1.1.1.2 update-source 1.1.1.1 neighbor 1.1.1.2 next-hop-self neighbor 1.1.1.2 send-community both neighbor 1.1.1.2 soft-reconfiguration inbound no auto-summary ! ip prefix-list 1 seq 5 permit 1.0.0.0/8 ip prefix-list 2 seq 5 permit 2.0.0.0/8 ! route-map R102-MAP permit 10 match ip address prefix-list 1 set as-path prepend 1 1 1 ! route-map R102-MAP permit 20 match ip address prefix-list 2 ! ip forwarding ! line vty ! end
Tags networking freebsd