Escolar Documentos
Profissional Documentos
Cultura Documentos
brasil
192.168.8.0/24
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential Tutorial BGP - GTER www.juniper.net 22
Gerando rotas BGP
Agregado
Aloca blocos por equipamento
Reduz nmero de rotas
Rota estvel
Estticas
Caso no seja possvel o agregado
Procedimento muito utilizado
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential Tutorial BGP - GTER www.juniper.net 33
Configurao Bsica iBGP
mexico chile
bgp { bgp {
group iBGP { group iBGP {
type internal; type internal;
local-address 10.0.0.4; local-address 10.0.0.5;
neighbor 10.0.0.5; neighbor 10.0.0.4;
neighbor 10.0.0.2; neighbor 10.0.0.2;
} }
} }
routing-options { routing-options {
autonomous-system 65000; autonomous-system 65000;
} }
brasil
bgp {
group iBGP {
type internal;
local-address 10.0.0.2;
neighbor 10.0.0.4;
neighbor 10.0.0.5;
}
}
routing-options {
autonomous-system 65000;
}
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential Tutorial BGP - GTER www.juniper.net 44
Injeo de um agregado no iBGP
policy-statement distribui-agregado {
192.168.1.0/24 Injetar agregado term agregado {
192.168.0.0/21 from protocol aggregate;
then accept;
}
192.168.2.0/24 }
bgp {
mexico group iBGP {
type internal;
local-address 10.0.0.4;
export distribui-agregado;
neighbor 10.0.0.5;
routing-options { neighbor 10.0.0.2;
/* rotas estticas */ }
static { }
route 192.168.1.0/24 next-hop 10.1.1.2;
route 192.168.2.0/24 next-hop 10.1.2.2;
}
/* rota agregada */
aggregate {
route 192.168.0.0/21;
}
}
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential Tutorial BGP - GTER www.juniper.net 55
Injeo de rotas individuais no iBGP
routing-options {
/* rotas estaticas */
static {
route 192.168.8.0/24 next-hop 10.1.3.2;
route 192.168.9.0/24 next-hop 10.1.4.2;
}
}
policy-statement rotas-iBGP {
term rotas-especificas {
from {
protocol static;
route-filter 192.168.8.0/21 orlonger;
brasil
}
192.168.8.0/24 then {
next-hop self;
accept;
}
192.168.9.0/24 }
}
bgp {
Injetar rotas group iBGP {
estticas type internal;
local-address 10.0.0.2;
export rotas-iBGP;
neighbor 10.0.0.4;
neighbor 10.0.0.5;
}
}
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential Tutorial BGP - GTER www.juniper.net 66
Visualizao das rotas
10.0.0.5
PONTO DE
chile OBSERVAO
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential Tutorial BGP - GTER www.juniper.net 77
Assinante Single Homed
192.168.1.0/24
10.0.6.5
192.168.2.0/24 10.0.0.4 10.0.0.5 10.0.0.3
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential Tutorial BGP - GTER www.juniper.net 99
Configurao eBGP
chile
argentina
bgp {
bgp {
group eBGP-argentina {
group eBGP-chile {
type external;
type external;
export anuncio-para-inet;
export simula-inet;
peer-as 65001;
neighbor 10.0.6.3; peer-as 65000;
} neighbor 10.0.6.5;
}
}
}
policy-statement anuncio-para-inet {
policy-statement simula-inet {
term bloco-local {
from { term distribui-estatica {
route-filter 192.168.0.0/20 exact; from protocol static;
} then accept;
then accept; }
} }
term rejeita { routing-options {
then reject; autonomous-system 65001;
}
}
}
10.0.6.5
10.0.0.5 10.0.0.3
chile argentina
AS 65001
10.0.6.3
Tutorial BGP - GTER 10
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net 10
Resultado no AS 65000
user@chile# run show route protocol bgp terse
brasil
Prefixos mais
especficos so
Anuncia preferenciais
192.168.0.0/21 e
192.168.0.0/20 ~50% do trfego em
cada enlace
Redundncia mantida
Tutorial BGP - GTER 16
Copyright 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net 16
Com balanceamento de carga
user@chile# run show route 192.168/16
brasil
AS 65002 utiliza os
Anuncia no-export
prefixo porm
192.168.0.0/21 e
192.168.0.0/20 No os repassa adiante
Anuncia
brasil 192.168.0.0/21 e no-export
192.168.0.0/20
Simula Rotas
Inet (estticas)
21.0.1.0/24
21.0.2.0/24
21.0.3.0/24
mexico chile
21.0.4.0/24
Bloco OSPF 21.0.5.0/24
192.168.0.0/20 AS 65000 AS 65002
21.0.6.0/24
21.0.7.0/24
brasil
argentina
Simula Rotas
Inet (estticas)
AS 65001 11.0.1.0/24
11.0.2.0/24
11.0.3.0/24
11.0.4.0/24
11.0.5.0/24
11.0.6.0/24
11.0.7.0/24
11.0.1.0/24
11.0.2.0/24
11.0.3.0/24
11.0.4.0/24
11.0.5.0/24
brasil argentina
11.0.6.0/24
11.0.7.0/24
11.0.x.0/24
(65000:120)
11.0.x.0/24
brasil
brasil
argentina Simula Rotas
Inet (estticas)
Enlace
11.0.1.0/24
Alternativo AS 65001 11.0.2.0/24
LOCAL-PREF 100 11.0.3.0/24
11.0.4.0/24
11.0.5.0/24
11.0.6.0/24
11.0.7.0/24