RR получает маршруты от клиентов и отражает их другим клиентам. Клиенты не нужны full-mesh между собой - только сессия с RR.
Роли:
RR (Route Reflector) - отражает маршруты
RR Client - подключен к RR
Non-client - обычный iBGP-сосед
Атрибуты:
ORIGINATOR_ID - router-id источника маршрута
CLUSTER_LIST - список cluster-id пройденных RR
Защита от петель: если свой router-id в ORIGINATOR_ID или cluster-id в CLUSTER_LIST - маршрут отбрасывается.
Juniper
Text Only
# На RR
set protocols bgp group RR-CLIENTS type internal
set protocols bgp group RR-CLIENTS cluster 1.1.1.1
set protocols bgp group RR-CLIENTS neighbor 10.0.0.2
set protocols bgp group RR-CLIENTS neighbor 10.0.0.3
AS разбивается на sub-AS. Между sub-AS - eBGP-подобное поведение, но AS_PATH не удлиняется снаружи.
Juniper
Text Only
set routing-options autonomous-system 65000
set routing-options confederation 65000 members 65001
set routing-options confederation 65000 members 65002
set protocols bgp group CONFED type external
set protocols bgp group CONFED peer-as 65002
set protocols bgp group CONFED neighbor 10.0.0.2
Группировка соседей с одинаковыми политиками. Упрощает конфиг и снижает нагрузку на CPU.
Juniper
Text Only
set protocols bgp group UPSTREAM type external
set protocols bgp group UPSTREAM import IMPORT-POLICY
set protocols bgp group UPSTREAM export EXPORT-POLICY
set protocols bgp group UPSTREAM neighbor 10.0.0.1 peer-as 65001
set protocols bgp group UPSTREAM neighbor 10.0.0.2 peer-as 65002
Huawei
Text Only
bgp 65000
group UPSTREAM external
peer UPSTREAM as-number 65001
peer 10.0.0.1 group UPSTREAM
peer 10.0.0.2 group UPSTREAM
#
ipv4-family unicast
peer UPSTREAM enable
peer UPSTREAM route-policy IMPORT-POLICY import
Автоматическое принятие BGP-сессий из диапазона IP.
Juniper
Text Only
set protocols bgp group DYNAMIC-PEERS type external
set protocols bgp group DYNAMIC-PEERS peer-as 65001
set protocols bgp group DYNAMIC-PEERS allow 10.0.0.0/24