Selecciona tu plataforma
Configuraciones de referencia
Crea listas de prefijos, políticas de exportación y dos vecinos por familia. Ajusta la interfaz, ASN local y prefijos.
Interfaz de peering
interface Ethernet<INTERFAZ>
description STIX_Peering
no switchport
no cdp enable
no ip redirects
ip address <IP_STIX_V4>/24
ipv6 address <IP_STIX_V6>/64
ipv6 nd suppress-ra
no shutdown
Filtros y BGP
ip prefix-list STIX-OUT-V4 seq 10 permit <PREFIJO_V4>
ipv6 prefix-list STIX-OUT-V6 seq 10 permit <PREFIJO_V6>
route-map STIX-OUT-V4 permit 10
match ip address prefix-list STIX-OUT-V4
route-map STIX-OUT-V6 permit 10
match ipv6 address prefix-list STIX-OUT-V6
router bgp <TU_ASN>
log-neighbor-changes
no enforce-first-as
neighbor 45.68.40.1 remote-as 64153
neighbor 45.68.40.1 description STIX_RS1_IPV4
neighbor 45.68.40.2 remote-as 64153
neighbor 45.68.40.2 description STIX_RS2_IPV4
neighbor 2801:1f5::1 remote-as 64153
neighbor 2801:1f5::1 description STIX_RS1_IPV6
neighbor 2801:1f5::2 remote-as 64153
neighbor 2801:1f5::2 description STIX_RS2_IPV6
address-family ipv4 unicast
neighbor 45.68.40.1 activate
neighbor 45.68.40.1 send-community both
neighbor 45.68.40.1 route-map STIX-OUT-V4 out
neighbor 45.68.40.2 activate
neighbor 45.68.40.2 send-community both
neighbor 45.68.40.2 route-map STIX-OUT-V4 out
address-family ipv6 unicast
neighbor 2801:1f5::1 activate
neighbor 2801:1f5::1 send-community both
neighbor 2801:1f5::1 route-map STIX-OUT-V6 out
neighbor 2801:1f5::2 activate
neighbor 2801:1f5::2 send-community both
neighbor 2801:1f5::2 route-map STIX-OUT-V6 out
Verificar: show bgp sessions · show bgp ipv4 unicast summary · show bgp ipv6 unicast summary
MT
MikroTik
RouterOS v7
IPv4 + IPv6Plantilla para RouterOS 7 usando filter rules y conexiones BGP. Añade una regla de aceptación por cada prefijo propio.
Direcciones y filtros
/ip/address/add address=<IP_STIX_V4>/24 interface=<INTERFAZ> comment="STIX IPv4"
/ipv6/address/add address=<IP_STIX_V6>/64 interface=<INTERFAZ> advertise=no comment="STIX IPv6"
/routing/filter/rule/add chain=STIX-OUT-V4 rule="if (dst == <PREFIJO_V4>) { accept }"
/routing/filter/rule/add chain=STIX-OUT-V4 rule="reject"
/routing/filter/rule/add chain=STIX-OUT-V6 rule="if (dst == <PREFIJO_V6>) { accept }"
/routing/filter/rule/add chain=STIX-OUT-V6 rule="reject"
Conexiones BGP
/routing/bgp/connection/add name=STIX-RS1-v4 as=<TU_ASN> remote.address=45.68.40.1 remote.as=64153 local.role=ebgp output.filter-chain=STIX-OUT-V4
/routing/bgp/connection/add name=STIX-RS2-v4 as=<TU_ASN> remote.address=45.68.40.2 remote.as=64153 local.role=ebgp output.filter-chain=STIX-OUT-V4
/routing/bgp/connection/add name=STIX-RS1-v6 as=<TU_ASN> remote.address=2801:1f5::1 remote.as=64153 local.role=ebgp output.filter-chain=STIX-OUT-V6
/routing/bgp/connection/add name=STIX-RS2-v6 as=<TU_ASN> remote.address=2801:1f5::2 remote.as=64153 local.role=ebgp output.filter-chain=STIX-OUT-V6
Verificar: /routing/bgp/session/print detail · /routing/route/print where bgp
JN
Juniper
Junos OS
IPv4 + IPv6Define prefijos propios, una política de exportación con rechazo final y grupos externos separados por familia.
Interfaz y políticas
set interfaces <INTERFAZ> description STIX_Peering
set interfaces <INTERFAZ> unit 0 family inet address <IP_STIX_V4>/24
set interfaces <INTERFAZ> unit 0 family inet6 address <IP_STIX_V6>/64
set policy-options prefix-list STIX-OUT-V4 <PREFIJO_V4>
set policy-options prefix-list STIX-OUT-V6 <PREFIJO_V6>
set policy-options policy-statement STIX-OUT-V4 term OWN from prefix-list STIX-OUT-V4
set policy-options policy-statement STIX-OUT-V4 term OWN then accept
set policy-options policy-statement STIX-OUT-V4 term REJECT then reject
set policy-options policy-statement STIX-OUT-V6 term OWN from prefix-list STIX-OUT-V6
set policy-options policy-statement STIX-OUT-V6 term OWN then accept
set policy-options policy-statement STIX-OUT-V6 term REJECT then reject
Grupos BGP
set routing-options autonomous-system <TU_ASN>
set protocols bgp group STIX-RS-v4 type external
set protocols bgp group STIX-RS-v4 peer-as 64153
set protocols bgp group STIX-RS-v4 family inet unicast
set protocols bgp group STIX-RS-v4 export STIX-OUT-V4
set protocols bgp group STIX-RS-v4 neighbor 45.68.40.1
set protocols bgp group STIX-RS-v4 neighbor 45.68.40.2
set protocols bgp group STIX-RS-v6 type external
set protocols bgp group STIX-RS-v6 peer-as 64153
set protocols bgp group STIX-RS-v6 family inet6 unicast
set protocols bgp group STIX-RS-v6 export STIX-OUT-V6
set protocols bgp group STIX-RS-v6 neighbor 2801:1f5::1
set protocols bgp group STIX-RS-v6 neighbor 2801:1f5::2
Verificar: show bgp summary · show route advertising-protocol bgp <VECINO>