annotations: []
smart_annotations: []
nodes:
  - boot_disk_size: null
    configuration:
      - name: ios_config.txt
        content: |-
          hostname R1
          !
          no ip domain lookup
          ip cef
          ipv6 unicast-routing
          !
          interface Loopback0
           description Router ID
           ip address 10.255.0.1 255.255.255.255
           ip ospf 100 area 0
          !
          interface Ethernet0/0
           description To SW1 (Area 0 broadcast LAN)
           ip address 10.20.0.1 255.255.255.0
           ip ospf 100 area 0
           no shutdown
          !
          ip route 172.20.10.0 255.255.255.0 Null0
          !
          router ospf 100
           router-id 10.255.0.1
           redistribute static subnets
          !
          line con 0
           exec-timeout 0 0
           logging synchronous
          line vty 0 4
           transport input ssh
           login local
          !
          username admin privilege 15 password 0 admin
          end
    cpu_limit: null
    cpus: null
    data_volume: null
    hide_links: false
    id: n0
    image_definition: null
    label: R1
    node_definition: iol-xe
    parameters: {}
    ram: null
    tags: []
    x: -350
    y: -200
    interfaces:
      - id: i0
        label: Loopback0
        mac_address: null
        type: loopback
      - id: i1
        label: Ethernet0/0
        mac_address: null
        type: physical
        slot: 0
      - id: i2
        label: Ethernet0/1
        mac_address: null
        type: physical
        slot: 1
      - id: i3
        label: Ethernet0/2
        mac_address: null
        type: physical
        slot: 2
      - id: i4
        label: Ethernet0/3
        mac_address: null
        type: physical
        slot: 3
  - boot_disk_size: null
    configuration:
      - name: ios_config.txt
        content: |-
          hostname R2
          !
          no ip domain lookup
          ip cef
          ipv6 unicast-routing
          !
          interface Loopback0
           description Router ID
           ip address 10.255.0.2 255.255.255.255
           ip ospf 100 area 0
          !
          interface Ethernet0/0
           description To SW1 (Area 0 broadcast LAN)
           ip address 10.20.0.2 255.255.255.0
           ip ospf 100 area 0
           ip ospf priority 100
           no shutdown
          !
          interface Ethernet0/1
           description To R4 (Area 30 P2P)
           ip address 10.30.30.1 255.255.255.252
           ip ospf 100 area 30
           ip ospf network point-to-point
           no shutdown
          !
          router ospf 100
           router-id 10.255.0.2
          !
          line con 0
           exec-timeout 0 0
           logging synchronous
          line vty 0 4
           transport input ssh
           login local
          !
          username admin privilege 15 password 0 admin
          end
    cpu_limit: null
    cpus: null
    data_volume: null
    hide_links: false
    id: n1
    image_definition: null
    label: R2
    node_definition: iol-xe
    parameters: {}
    ram: null
    tags: []
    x: 0
    y: 0
    interfaces:
      - id: i0
        label: Loopback0
        mac_address: null
        type: loopback
      - id: i1
        label: Ethernet0/0
        mac_address: null
        type: physical
        slot: 0
      - id: i2
        label: Ethernet0/1
        mac_address: null
        type: physical
        slot: 1
      - id: i3
        label: Ethernet0/2
        mac_address: null
        type: physical
        slot: 2
      - id: i4
        label: Ethernet0/3
        mac_address: null
        type: physical
        slot: 3
  - boot_disk_size: null
    configuration:
      - name: ios_config.txt
        content: |-
          hostname R3
          !
          no ip domain lookup
          ip cef
          ipv6 unicast-routing
          !
          interface Loopback0
           description Router ID
           ip address 10.255.0.3 255.255.255.255
           ip ospf 100 area 0
          !
          interface Ethernet0/0
           description To SW1 (Area 0 broadcast LAN)
           ip address 10.20.0.3 255.255.255.0
           ip ospf 100 area 0
           no shutdown
          !
          router ospf 100
           router-id 10.255.0.3
          !
          line con 0
           exec-timeout 0 0
           logging synchronous
          line vty 0 4
           transport input ssh
           login local
          !
          username admin privilege 15 password 0 admin
          end
    cpu_limit: null
    cpus: null
    data_volume: null
    hide_links: false
    id: n2
    image_definition: null
    label: R3
    node_definition: iol-xe
    parameters: {}
    ram: null
    tags: []
    x: 350
    y: -200
    interfaces:
      - id: i0
        label: Loopback0
        mac_address: null
        type: loopback
      - id: i1
        label: Ethernet0/0
        mac_address: null
        type: physical
        slot: 0
      - id: i2
        label: Ethernet0/1
        mac_address: null
        type: physical
        slot: 1
      - id: i3
        label: Ethernet0/2
        mac_address: null
        type: physical
        slot: 2
      - id: i4
        label: Ethernet0/3
        mac_address: null
        type: physical
        slot: 3
  - boot_disk_size: null
    configuration:
      - name: ios_config.txt
        content: |-
          hostname R4
          !
          no ip domain lookup
          ip cef
          ipv6 unicast-routing
          !
          interface Loopback0
           description Router ID
           ip address 10.255.0.4 255.255.255.255
           ip ospf 100 area 30
          !
          interface Ethernet0/0
           description To R2 (Area 30 P2P)
           ip address 10.30.30.2 255.255.255.252
           ip ospf 100 area 30
           ip ospf network point-to-point
           no shutdown
          !
          router ospf 100
           router-id 10.255.0.4
          !
          line con 0
           exec-timeout 0 0
           logging synchronous
          line vty 0 4
           transport input ssh
           login local
          !
          username admin privilege 15 password 0 admin
          end
    cpu_limit: null
    cpus: null
    data_volume: null
    hide_links: false
    id: n3
    image_definition: null
    label: R4
    node_definition: iol-xe
    parameters: {}
    ram: null
    tags: []
    x: 200
    y: 250
    interfaces:
      - id: i0
        label: Loopback0
        mac_address: null
        type: loopback
      - id: i1
        label: Ethernet0/0
        mac_address: null
        type: physical
        slot: 0
      - id: i2
        label: Ethernet0/1
        mac_address: null
        type: physical
        slot: 1
      - id: i3
        label: Ethernet0/2
        mac_address: null
        type: physical
        slot: 2
      - id: i4
        label: Ethernet0/3
        mac_address: null
        type: physical
        slot: 3
  - boot_disk_size: null
    configuration: []
    cpu_limit: null
    cpus: null
    data_volume: null
    hide_links: false
    id: n4
    image_definition: null
    label: SW1
    node_definition: unmanaged_switch
    parameters: {}
    ram: null
    tags: []
    x: 0
    y: -300
    interfaces:
      - id: i0
        label: port0
        mac_address: null
        type: physical
        slot: 0
      - id: i1
        label: port1
        mac_address: null
        type: physical
        slot: 1
      - id: i2
        label: port2
        mac_address: null
        type: physical
        slot: 2
      - id: i3
        label: port3
        mac_address: null
        type: physical
        slot: 3
      - id: i4
        label: port4
        mac_address: null
        type: physical
        slot: 4
      - id: i5
        label: port5
        mac_address: null
        type: physical
        slot: 5
      - id: i6
        label: port6
        mac_address: null
        type: physical
        slot: 6
      - id: i7
        label: port7
        mac_address: null
        type: physical
        slot: 7
links:
  - id: l0
    n1: n0
    n2: n4
    i1: i1
    i2: i0
    conditioning: {}
    label: R1-Ethernet0/0<->SW1-port0
  - id: l1
    n1: n1
    n2: n4
    i1: i1
    i2: i1
    conditioning: {}
    label: R2-Ethernet0/0<->SW1-port1
  - id: l2
    n1: n2
    n2: n4
    i1: i1
    i2: i2
    conditioning: {}
    label: R3-Ethernet0/0<->SW1-port2
  - id: l3
    n1: n1
    n2: n3
    i1: i2
    i2: i1
    conditioning: {}
    label: R2-Ethernet0/1<->R4-Ethernet0/0
lab:
  description: PingLabz OSPF Reference Lab - 4-router multi-area OSPF for the CCNA Labs library. Demonstrates DR/BDR election on broadcast LAN, ABR between Area 0 and Area 30, ASBR redistributing static into OSPF as Type 5 LSA. Used for ipc-05, ipc-06, ipc-07, ipc-08.
  notes: |-
    PingLabz OSPF Reference Lab
    ===========================

    TOPOLOGY
       Area 0 broadcast LAN (10.20.0.0/24) via SW1
         R1 (ASBR, Lo0=10.255.0.1)
         R2 (ABR, Lo0=10.255.0.2, priority 100 to win DR)
         R3 (internal Area 0, Lo0=10.255.0.3)
       Area 30 P2P link (10.30.30.0/30)
         R2 Et0/1 <-> R4 Et0/0
         R4 (internal Area 30, Lo0=10.255.0.4)

    ROLES
    - R1: ASBR. Redistributes static 172.20.10.0/24 -> Null0 into OSPF as O E2.
    - R2: ABR + DR. Priority 100 forces DR election on the LAN segment.
    - R3: Internal Area 0 router. Default priority - becomes BDR.
    - R4: Internal Area 30 router.

    NODE COUNT (CML Free)
    - 4 counted iol-xe + 1 unmanaged switch (not counted) = 4 counted. 1 slot free.

    USE
    Boot the lab, wait ~2-3 min for OSPF convergence, then run:
    - show ip ospf neighbor (R2 has 3 neighbors: R1 DROTHER, R3 BDR, R4 P2P)
    - show ip ospf interface brief
    - show ip route ospf (R4 sees IA + E2 routes; R1 sees IA routes to Area 30)
    - show ip ospf database (LSAs by area)
  title: PingLabz OSPF Reference Lab
  version: 0.3.0
