PDA

Ver la versión completa : Sesion BGP ipv6 para clientes Residenciales



JuanJose
21/03/2025, 11:59
Sesion BGP ipv6 para clientes residenciales
Es un protocolo de enrutamiento utilizado para intercambiar información de enrutamiento entre diferentes sistemas autónomos (AS) en Internet. Un sistema autónomo es un conjunto de redes y routers bajo el control de una única entidad administrativa, como un proveedor de servicios de Internet (ISP) o una organización.

Descripción
Vamos a crear un laboratorio en EVE-ng de acuerdo a la topología para simular una red con BGP, configurando los ASN en cada RB para que se pueda establecer el pering.

3933


1 Script de Router Alestra

/interface bridge
add name=lo interface=ether4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=100 router-id=10.20.30.1
/ip dhcp-client
add disabled=no interface=ether1
/ipv6 address
add address=2001:4860:4860::8888/128 advertise=no comment="DNS GOOGLE" \
interface=lo
add address=3000:aba:1010:1010:1010:2020:101:1 advertise=no interface=ether2
/routing bgp peer
add address-families=ipv6 default-originate=always name=CPE_BM \
remote-address=3000:aba:1010:1010:1010:2020:101:2 remote-as=200
/system identity
set name=CarrierAlestra
/tool romon
set enabled=yes


2 Script de Router Borde Megabit

/interface bridge
add name=lo
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=200 router-id=10.20.30.2
/ip dhcp-client
add disabled=no interface=ether1
/ipv6 address
add address=3000:aba:1010:1010:1010:2020:101:2 advertise=no interface=ether2
add address=2906:666:3010:aaaa:bbbb:cccc:ddd:1 advertise=no interface=ether3
/ipv6 route
add distance=1 dst-address=2906:666:3020::/44 gateway=\
2906:666:3010:aaaa:bbbb:cccc:ddd:2
add distance=1 dst-address=2906:666:3030::/44 gateway=\
2906:666:3010:aaaa:bbbb:cccc:ddd:2
/routing bgp network
add network=2906:666:3000::/36 synchronize=no
/routing bgp peer
add address-families=ipv6 name=WAN_IPv6 remote-address=\
3000:aba:1010:1010:1010:2020:101:1 remote-as=100
/system identity
set name=BordeMegabit
/tool romon
set enabled=yes




3 Script de Router EncoreUrbi

/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ipv6 dhcp-server
add address-pool=POOL_CLIENTES interface=ether6 name=server1
/ipv6 pool
add name=POOL_CLIENTES prefix=2906:666:3030::/44 prefix-length=64
/ip dhcp-client
add disabled=no interface=ether1
/ip dns
set servers=2001:4860:4860::8888,2001:4860:4860::8844
/ipv6 address
add address=2906:666:3010:aaaa:bbbb:cccc:ddd:2 advertise=no interface=ether1
add address=::1000:10ff:fe09:1115 from-pool=POOL_CLIENTES interface=ether6
/ipv6 nd
set [ find default=yes ] other-configuration=yes
/ipv6 route
add distance=1 gateway=2906:666:3010:aaaa:bbbb:cccc:ddd:1
/system identity
set name=EncoreUrbi
/tool romon
set enabled=yes


Laboratorio en EVE-NG

3935


Laboratorio EVE-NG

JuanJose
30/03/2025, 21:06
El siguiente ejemplo es entregando un /56 a la onu para que esta entregue al cliente final un /64.
3938

1Script de Router Alestra

/interface bridge
add name=lo
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=100 router-id=10.20.30.1
/ip dhcp-client
add disabled=no interface=ether1
/ipv6 address
add address=2001:4860:4860::8888/128 advertise=no comment="DNS GOOGLE" \
interface=lo
add address=3000:aba:1010:1010:1010:2020:101:1 advertise=no interface=ether2
/routing bgp peer
add address-families=ipv6 default-originate=always name=CPE_BM \
remote-address=3000:aba:1010:1010:1010:2020:101:2 remote-as=200
/system identity
set name=CarrierAlestra
/tool romon
set enabled=yes


2 Script de Router Borde Megabit

/interface bridge
add name=lo
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing bgp instance
set default as=200 router-id=10.20.30.2
/ip dhcp-client
add disabled=no interface=ether1
/ipv6 address
add address=3000:aba:1010:1010:1010:2020:101:2 advertise=no interface=ether2
add address=2906:666:3010:aaaa:bbbb:cccc:ddd:1 advertise=no interface=ether3
/ipv6 route
add distance=1 dst-address=2906:666:3020::/44 gateway=\
2906:666:3010:aaaa:bbbb:cccc:ddd:2
add distance=1 dst-address=2906:666:3030::/44 gateway=\
2906:666:3010:aaaa:bbbb:cccc:ddd:2
/routing bgp network
add network=2906:666:3000::/36 synchronize=no
/routing bgp peer
add address-families=ipv6 name=WAN_IPv6 remote-address=\
3000:aba:1010:1010:1010:2020:101:1 remote-as=100
/system identity
set name=BordeMegabit
/tool romon
set enabled=yes
3Script de Router EncoreUrbi

/interface vlan
add interface=ether6 name=vlan910 vlan-id=910
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ipv6 dhcp-server
add address-pool=POOL_CLIENTES disabled=yes interface=ether6 name=server1
/ipv6 pool
add name=POOL_CLIENTES prefix=2906:666:3030::/44 prefix-length=56
/ppp profile
set *0 dhcpv6-pd-pool=POOL_CLIENTES
/interface pppoe-server server
add disabled=no interface=ether6 service-name=910
/ip dhcp-client
add disabled=no interface=ether1
/ip dns
set servers=2001:4860:4860::8888,2001:4860:4860::8844
/ipv6 address
add address=2906:666:3010:aaaa:bbbb:cccc:ddd:2 advertise=no interface=ether1
add address=::1000:10ff:fe09:1115 from-pool=POOL_CLIENTES interface=ether6
/ipv6 nd
set [ find default=yes ] other-configuration=yes
/ipv6 route
add distance=1 gateway=2906:666:3010:aaaa:bbbb:cccc:ddd:1
/ppp secret
add name=123 password=123 service=pppoe
/system identity
set name=EncoreUrbi
/tool romon
set enabled=yes
4Script de Router Cliente (simulacion de la onu)

/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1 \
password=123 use-peer-dns=yes user=123
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ipv6 dhcp-server
add address-pool=LAN interface=ether2 name=server1
/ip dhcp-client
add disabled=no interface=ether1
/ip dns
set servers=2001:4860:4860::8888,2001:4860:4860::8844
/ip firewall nat
add action=masquerade chain=srcnat disabled=yes out-interface=*5
/ipv6 address
add address=::5200:ff:fe02:1 eui-64=yes from-pool=LAN interface=ether2
/ipv6 dhcp-client
add interface=pppoe-out1 pool-name=LAN request=prefix
/ipv6 nd
set [ find default=yes ] other-configuration=yes
/system identity
set name=Cliente
/tool romon
set enabled=yes




LABORATORIO EN EVE-NG
3939