[GTER] 4 BGP DA MESMA OPERADORA
edsonmendes at prodatanet.com.br
edsonmendes at prodatanet.com.br
Thu Aug 22 18:28:51 -03 2013
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 ubuntu + 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.
Se alguém puder ajudar, agradeço muito.
More information about the gter
mailing list