Ex.: router bgp 1234 bgp router-id seu router_id neighbor xyz peer-group neighbor xyz remote-as 65535 neighbor xyz ebgp-multihop neighbor xyz etc
neighbor ip_do_peer_1 peer-group xyz neighbor ip_do_peer_2 peer-group xyz ! On Fri, Aug 23, 2013 at 05:18:29PM -0300, Marco Aurelio wrote: > Caro André, > > Seria possível vc me mandar um exemplo de peer-group ? > > Desde já agradeço a atenção recebida. > > Marco Aurélio Ventura da Silva > [email protected] > Prodata Informática e Cadastro LTDA > (33)3322-4444 > > > Em 23 de agosto de 2013 17:06, André Gustavo N. <[email protected]> escreveu: > > > Boa tarde marcos > > > > Primeira coisa, se todos os seus peers, usam configs semelhantes, melhor > > você criar um peer-group, configurar tudo nele, e adicionar os peers a esse > > peer-group. > > > > Sim, você pode anunciar como você disse, mas uma das maneiras de > > influenciar o tráfego de entrada é anunciar prefixos mais específicos em > > alguns links. Se você vai anunciar as mesmas coisas para os 4 peers, é > > desnecessário criar uma prefix-list para cada também. > > > > Prepend é outra maneira de influenciar o tráfego de entrada, mas se você > > setar todos iguais, não vai fazer diferença. > > > > localpref é um jeito de escolher a saída, mas novamente, se estiverem > > todos iguais, não faz sentido também... > > > > Para anunciar pro seu peer, você escolhe, tem gente que faz com > > distribute-list, outros com route-map... > > > > On Fri, Aug 23, 2013 at 03:25:43PM -0300, Marco Aurelio wrote: > > > Olá pessoal, precisando da ajuda de vocês, pois estou meio perdido nessa > > > configurações. > > > > > > Sou iniciante no assunto, já peço desculpas se estiver no cominho errado. > > > > > > Meu cenário é este ... > > > > > > OPERADORA MEU PROVEDOR AS 1234 > > > 10.1/30 --- LINK1 18881 -----> RECEBENDO UM /30 -------------- > > > 192.168.10.2/30 > > > 20.1/30 --- LINK2 18881 -----> RECEBENDO UM /30 -------------- > > > 192.168.20.2/30 > > > 30.1/30 --- LINK3 18881 -----> RECEBENDO UM /30 -------------- > > > 192.168.30.2/30 > > > 40.1/30 --- LINK4 18881 -----> RECEBENDO UM /30 -------------- > > > 192.168.40.2/30 > > > > > > São 4 links da mesma operadora, porém não posso somar os links, preciso > > > fechar 4 sessões bgp, são 4 placas de redes recebendo os ips em uma > > máquina > > > apenas. > > > > > > Utilizo quagga, minha configuração está da seguinte forma. > > > > > > Ja possuo meu próprio as /22, no exemplo ele é o 192.168.0.0/22 > > > > > > ------------------------------- > > > bgp multiple-instance > > > ! > > > router bgp 1234 > > > bgp router-id 10.0.0.1 > > > bgp log-neighbor-changes > > > > > > !no bgp default ipv4-unicast > > > > > > network 192.168.0.0/22 ---> DUVIDA, posso divulgar o /22 nas quatro > > sessões > > > bgp, ou vou ter que quebrar esse /22 em quatro /254 ?? > > > > > > redistribute connected > > > ! redistribute static > > > redistribute ospf > > > > > > neighbor 192.168.10.1 remote-as 18881 > > > neighbor 192.168.10.1 next-hop-self > > > neighbor 192.168.10.1 description GW1 > > > neighbor 192.168.10.1 soft-reconfiguration inbound > > > neighbor 192.168.10.1 ebgp-multihop 4 > > > neighbor 192.168.10.1 update-source 192.168.10.2 > > > neighbor 192.168.10.1 prefix-list gw1_p_out out > > > neighbor 192.168.10.1 route-map gw1in in > > > neighbor 192.168.10.1 route-map gw1out out > > > neighbor 192.168.10.1 default-originate > > > neighbor 192.168.10.1 activate > > > > > > neighbor 192.168.20.1 remote-as 18881 > > > neighbor 192.168.20.1 next-hop-self > > > neighbor 192.168.20.1 description GW2 > > > neighbor 192.168.20.1 soft-reconfiguration inbound > > > neighbor 192.168.20.1 ebgp-multihop 4 > > > neighbor 192.168.20.1 update-source 192.168.20.2 > > > neighbor 192.168.20.1 prefix-list gw2_p_out out > > > neighbor 192.168.20.1 route-map gw2in in > > > neighbor 192.168.20.1 route-map gw2out out > > > neighbor 192.168.20.1 default-originate > > > neighbor 192.168.20.1 activate > > > > > > neighbor 192.168.30.1 remote-as 18881 > > > neighbor 192.168.30.1 next-hop-self > > > neighbor 192.168.30.1 description GW3 > > > neighbor 192.168.30.1 soft-reconfiguration inbound > > > neighbor 192.168.30.1 ebgp-multihop 4 > > > neighbor 192.168.30.1 update-source 192.168.30.2 > > > neighbor 192.168.30.1 prefix-list gw3_p_out out > > > neighbor 192.168.30.1 route-map gw3in in > > > neighbor 192.168.30.1 route-map gw3out out > > > neighbor 192.168.30.1 default-originate > > > neighbor 192.168.30.1 activate > > > > > > > > > neighbor 192.168.40.1 remote-as 18881 > > > neighbor 192.168.40.1 next-hop-self > > > neighbor 192.168.40.1 description GW4 > > > neighbor 192.168.40.1 soft-reconfiguration inbound > > > neighbor 192.168.40.1 ebgp-multihop 4 > > > neighbor 192.168.40.1 update-source 192.168.40.2 > > > neighbor 192.168.40.1 prefix-list gw4_p_out out > > > neighbor 192.168.40.1 route-map gw4in in > > > neighbor 192.168.40.1 route-map gw4out out > > > neighbor 192.168.40.1 default-originate > > > neighbor 192.168.40.1 activate > > > > > > > > > Acho que me confundi com esses configuração daki pra baixo, estou > > tentando > > > priorizar as classes /24 sair pelos determinados gw`s, não sei se isso > > vai > > > funcionar, pois coloquei o local-preference igual, minha intenção foi > > > igualar os 4 links > > > > > > !GW1 > > > ip prefix-list gw1_p_out seq 5 permit 192.168.0.0/24 > > > route-map gw1out permit 5 > > > match ip address prefix-list gw1_p_out > > > set as-path prepend 1234 > > > route-map gw1in permit 5 > > > set local-preference 100 > > > > > > !GW2 > > > ip prefix-list gw2_p_out seq 10 permit 192.168.1.0/24 > > > route-map gw2out permit 10 > > > match ip address prefix-list gw2_p_out > > > set as-path prepend 1234 > > > route-map gw2in permit 10 > > > set local-preference 100 > > > > > > !GW3 > > > ip prefix-list gw3_p_out seq 10 permit 192.168.2.0/24 > > > route-map gw3out permit 10 > > > match ip address prefix-list gw3_p_out > > > set as-path prepend 1234 > > > route-map gw3in permit 10 > > > set local-preference 100 > > > > > > !GW4 > > > ip prefix-list gw4_p_out seq 10 permit 192.168.2.0/24 > > > route-map gw4out permit 10 > > > match ip address prefix-list gw4_p_out > > > set as-path prepend 1234 > > > route-map gw4in permit 10 > > > set local-preference 100 > > > > > > Preciso receber esses 4 links, serão 4 sessões de bgp full, em uma > > máquina > > > apenas e divulgar meu asn 192.168.0.0/22 nos quatro bgp, balanceando > > esses > > > links igualmente. > > > > > > Obs: são quatro links de 50m cada. > > > > > > Se alguém puder ajudar, agradeço muito. > > > > > > Marco Aurélio Ventura da Silva > > > [email protected] > > > Prodata Informática e Cadastro LTDA > > > (33)3322-4444 > > > ------------------------- > > > Histórico: http://www.fug.com.br/historico/html/freebsd/ > > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > > ------------------------- > > Histórico: http://www.fug.com.br/historico/html/freebsd/ > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > > > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
signature.asc
Description: Digital signature
------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

