User Tag List

Gracias Gracias:  0
Me agrada Me agrada:  0
Me desagrada Me desagrada:  0
Resultados 1 al 4 de 4

Tema: Sesion BGP ipv4 con carrier, entregando IP publicas a cliente comercial Con 3 opcione

Ver modo hilado

Mensaje anterior Mensaje anterior   Próximo mensaje Próximo mensaje
  1. #2

    Fecha de ingreso
    07 Nov, 24
    Mensajes
    13
    Reconocimientos
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OPCION 2 Sesion BGP ipv4 con carrier, entregando IP publicas a cliente comercial

    Paso 1 Laboratorio

    se realiza la reestructura del laboratorio BGP, para entregar las IP'S atravez de rutas
    Nombre:  Diagrama Completo.drawio(4).jpg
Visitas: 355
Tamaño: 126.9 KB
    PASO 2 Reasignar las IPs del ROUTER BORDE
    Configure la ip que ira en la interfaz que conectara a ROUTER ENCORE ISP en cada una de las interfaces Ethernet de cada router
    Como puedes ver en la imagen tenemos La ip por defecto que nos da salida a internet hacia el ROUTER CARRIER ALESTRA y la IP que nos apoyara a conectarnos con nuestro
    ROUTER ENCORE ISP
    Por comando


    /ip address
    add address=100.200.20.2/30 comment="PTP AL ROUTER CARRIER ALESTRA" \
    interface=ether2 network=100.200.20.0
    add address=100.20.40.1/30 comment="PTP-ROUTER ENCORE ISP" interface=ether3 \
    network=100.20.40.0



    Por interfaz

    Nombre:  2.1IpadrresBorde.png
Visitas: 320
Tamaño: 213.9 KB
    PASO 3 RUTEO
    Agregamos la ruta que nos va ayudar a que podamos entregar nuestras IP's publicas a nuestros clientes desde el ROUTER ENCORE ISP
    Por comando
    /ip route
    add comment="Pool /24 Route Static" distance=1 dst-address=15.20.3.0/24 \
    gateway=100.20.40.2

    Por interfaz

    Nombre:  2.2RuteoBorde.png
Visitas: 331
Tamaño: 244.3 KB
    PASO 4 Anunciamos el prefijo que hara punto a punto con el encore
    Agregamos las redes que vamos anunciar en el apartado networks Los que vamos a declarar en nuestro router
    Por comando

    /routing bgp network
    add network=15.20.3.0/24 synchronize=no
    add network=100.20.40.0/30 synchronize=no




    Nombre:  2.3anunciar rutaBGP.png
Visitas: 335
Tamaño: 147.6 KB

    Nota

    Ahora vamos a configurar el ROUTER ENCORE


    PASO 5
    Reasignar las IPs del ROUTER ENCORE
    Por comando

    /ip address
    add address=100.20.40.2/30 comment="PTP ROUTER BORDE ISP" interface=ether1 \
    network=100.20.40.0
    add address=15.20.3.1/24 comment="PREFIJO DE IP\B4S PUBLICAS" interface=\
    ether2 network=15.20.3.0

    Por Interfaz
    Nombre:  2.4ipadrresEncore.png
Visitas: 340
Tamaño: 204.3 KB

    Nota

    En este router es nesesario borrar la configuracion del bridge ya que no la ocupamos en este ecesenario

    Nombre:  2.5iBridgeEncore.png
Visitas: 340
Tamaño: 54.6 KB

    PASO 6 Agregamos la ruta de internet

    Habilitamos la ruta hacia internet apuntado a la IP de ROUTER BORDE ISP
    0.0.0.0/0 Hacia el gateway 100.20.40.1
    Por comandos
    /ip route
    add comment="RUTA INTERNET" distance=1 gateway=100.20.40.1



    Por interfaz
    Nombre:  2.6RouteInternetEncore.png
Visitas: 324
Tamaño: 222.5 KB

    Verificacion

    Nota

    Verificamos que tengamos internet en ROUTER ENCORE ISP
    Nombre:  2.7PingEncore.png
Visitas: 318
Tamaño: 66.9 KB

    PASO7 Configuracion de la PC CLIENTE COMERCIAL
    Abrimos nuestra PC CLIENTE RESIDENCIAL y nos dirigimos en la red Wired connected , asi como se visualiza en la siguiente imagen
    Nombre:  1.8Pcwiredconnect.png
Visitas: 320
Tamaño: 164.7 KBHabilitamos la red y damos clic en ajustes
    Nombre:  1.9wiredPC.png
Visitas: 319
Tamaño: 102.3 KB
    Agregamos una ip de la red de segmento que declaramos en Ether 2 de nuestro ROUTER ENCORE ISP

    Parametros
    IP ADRRESS :15.20.3.9
    MASCARA 255.255.255.0
    GATEWAY:15.20.3.1
    DNS :8.8.8.8

    Una vez que ya este declarado damos clic en apply

    Nombre:  2.8IPPC.png
Visitas: 359
Tamaño: 154.6 KB
    PING
    Probamos que tengamos salida hacia internet

    Nombre:  2.9PruebasPC.png
Visitas: 329
Tamaño: 144.0 KB

    Nota


    SCRIPTS

    ROUTER CARRIER ALESTRA

    /interface wireless security-profiles
    set [ find default=yes ] supplicant-identity=MikroTik
    /routing bgp instance
    set default as=100 redistribute-connected=yes
    /ip address
    add address=100.200.20.1/30 comment="PTP AL ROUTER BORDE ISP" interface=\
    ether2 network=100.200.20.0
    /ip dhcp-client
    add disabled=no interface=ether1
    /ip firewall nat
    add action=masquerade chain=srcnat out-interface=ether1
    /routing bgp network
    add network=100.200.20.0/30 synchronize=no
    /routing bgp peer
    add default-originate=always name=Peer-to-RouterBordeISP remote-address=\
    100.200.20.2 remote-as=200 remove-private-as=yes
    /system identity
    set name="Carrier Alestra"
    /tool romon
    set enabled=yes




    ROUTER BORDE

    /interface vlan
    add interface=ether3 name=vlan100 use-service-tag=yes vlan-id=100
    /interface wireless security-profiles
    set [ find default=yes ] supplicant-identity=MikroTik
    /routing bgp instance
    set default as=200 comment="AS ROUTER BORDE ISP"
    /routing ospf instance
    set [ find default=yes ] router-id=2.2.2.2
    /ip address
    add address=100.200.20.2/30 comment="PTP AL ROUTER CARRIER ALESTRA" \
    interface=ether2 network=100.200.20.0
    add address=100.20.40.1/30 comment="PTP-ROUTER ENCORE ISP" interface=ether3 \
    network=100.20.40.0
    /ip dhcp-client
    add disabled=no interface=ether1
    /ip dns
    set servers=8.8.8.8
    /ip firewall nat
    add action=accept chain=srcnat out-interface=ether2
    /ip route
    add comment="Pool /24 Route Static" distance=1 dst-address=15.20.3.0/24 \
    gateway=100.20.40.2
    /routing bgp network
    add network=15.20.3.0/24 synchronize=no
    add network=100.20.40.0/30 synchronize=no
    /routing bgp peer
    add name="Peer-To-Carrier Alestra" remote-address=100.200.20.1 remote-as=100
    /routing ospf interface
    add disabled=yes interface=ether3 network-type=point-to-point
    /routing ospf network
    add area=backbone disabled=yes network=100.200.20.0/30
    add area=backbone disabled=yes network=100.20.40.0/30
    add area=backbone disabled=yes network=15.20.3.0/24
    /system identity
    set name="Router Borde ISP"
    /tool romon
    set enabled=yes


    ROUTER ENCORE
    /interface wireless security-profiles
    set [ find default=yes ] supplicant-identity=MikroTik
    /ip pool
    add name=dhcp_pool0 ranges=15.20.3.2-15.20.3.254
    add name=dhcp_pool1 ranges=15.20.3.2-15.20.3.254
    /routing ospf instance
    set [ find default=yes ] router-id=1.1.1.1
    /ip address
    add address=100.20.40.2/30 comment="PTP ROUTER BORDE ISP" interface=ether1 \
    network=100.20.40.0
    add address=15.20.3.1/24 comment="PREFIJO DE IP\B4S PUBLICAS" interface=\
    ether2 network=15.20.3.0
    /ip dhcp-client
    add disabled=no interface=ether1
    /ip dhcp-server network
    add address=15.20.3.0/24 dns-server=8.8.8.8 gateway=15.20.3.1
    /ip dns
    set servers=8.8.8.8
    /ip route
    add comment="RUTA HACIA INTERNET" distance=1 gateway=100.20.40.1
    add distance=1 dst-address=15.20.3.0/24 gateway=100.20.40.1
    add distance=1 dst-address=100.20.40.0/24 gateway=15.20.3.2
    /routing ospf interface
    add network-type=point-to-point
    add interface=ether1 network-type=point-to-point
    add network-type=point-to-point
    /routing ospf network
    add area=backbone network=15.20.3.0/24
    add area=backbone network=100.20.40.0/30
    /system identity
    set name="Router Encore ISP"
    /tool romon
    set enabled=yes
    Última edición por MarigerGarcia; 03/03/2025 a las 17:16

Etiquetas para este tema

Permisos de publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •