BGPJuniper
From Livre IPv6
| |
BGP Cisco | Table des matières | Utilisation d'un ordinateur comme routeur | |
Le premier groupe est un «peering» interne (type internal et peer-as=local-as) et le second groupe est un «peering» externe (type external et peer-as<>local-as).
protocols {
bgp {
damping;
group VTHDv6-CORE {
type internal;
local-preference 300;
local-address 2001:688:1F80:ABCD::1;
export FTRDv6;
peer-as 20603;
local-as 20603;
neighbor 2001:688:1F80:ABCD::2;
}
group AS5511 {
type external;
description opentransit;
local-address 2001:688:0:EF01::1;
import de_AS5511;
export vers_5511;
peer-as 5511;
local-as 20603;
neighbor 2001:688:0:EF01::2;
}
}
}
Les règles d'importations/exportations de routes sont les suivantes :
policy-options {
policy-statement FTRDv6 {
term VTHDv6 {
from {
route-filter 2001:688:1F88::/48 exact;
route-filter 2001:688:1F8B::/48 exact;
}
then accept;
}
}
policy-statement vers_5511 {
term VTHDv6 {
from {
protocol [ bgp static ];
rib inet6.0;
family inet6;
route-filter 2001:688:1F80::/42 exact accept;
route-filter 2001:688:1FF8::/45 exact accept;
}
then accept;
}
term else {
then reject;
}
}
policy-statement de_AS5511 {
from neighbor 2001:688:0:EF01::2;
then {
local-preference add 250;
}
}
}
Configuration des règles de filtrage et d'agrégation
routing-options {
rib inet6.0 {
aggregate {
route 2001:688:1F80:2000::/60;
route 2001:688:1F80::/42;
}
}
}
| |
BGP Cisco | Table des matières | Utilisation d'un ordinateur comme routeur | |
