# Un AS de tránsito (65100) con cuatro routers en fila y un vecino (65200) que se
# conecta a los dos extremos. Sirve para ver iBGP, NEXT_HOP y hot potato.
#
#        +----- x (65200) ------+
#        |                      |
#       b1 ---- b2 ---- b3 ---- b4        AS 65100: OSPF e iBGP entre los cuatro
#
# Dentro del AS, OSPF lleva las direcciones de loopback (100.64.100.N/32) y los
# enlaces internos. Los dos enlaces hacia x (10.207.1.0/30 y 10.207.4.0/30) no
# están en OSPF: los routers del medio no saben llegar a ellos.
name: w06-ibgp
mgmt:
  network: redes-w06-ibgp
  ipv4-subnet: 172.90.6.64/26
  ipv6-subnet: 3fff:172:90:6:2::/80
topology:
  defaults:
    kind: linux
    image: redes-router
    exec:
      - ip route del default
      - ip -6 route del default
  nodes:
    b1:
      binds: [b1/frr.conf:/etc/frr/frr.conf:ro]
    b2:
      binds: [b2/frr.conf:/etc/frr/frr.conf:ro]
    b3:
      binds: [b3/frr.conf:/etc/frr/frr.conf:ro]
    b4:
      binds: [b4/frr.conf:/etc/frr/frr.conf:ro]
    x:
      binds: [x/frr.conf:/etc/frr/frr.conf:ro]
  links:
    - endpoints: ["b1:eth1", "b2:eth1"]
      mtu: 1500
    - endpoints: ["b2:eth2", "b3:eth1"]
      mtu: 1500
    - endpoints: ["b3:eth2", "b4:eth1"]
      mtu: 1500
    - endpoints: ["b1:eth2", "x:eth1"]
      mtu: 1500
    - endpoints: ["b4:eth2", "x:eth2"]
      mtu: 1500
