annotations: []
smart_annotations: []
nodes:
- id: n0
  label: SW1
  node_definition: ioll2-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: 0
  y: -160
  configuration:
  - name: ios_config.txt
    content: |
      hostname SW1
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      vlan 10
       name LAN10
      !
      spanning-tree mode rapid-pvst
      spanning-tree vlan 10 priority 4096
      interface Ethernet0/0
       switchport trunk encapsulation dot1q
       switchport mode trunk
       switchport trunk allowed vlan 10
       no shutdown
      !
      interface Ethernet0/1
       switchport trunk encapsulation dot1q
       switchport mode trunk
       switchport trunk allowed vlan 10
       no shutdown
      !
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
- id: n1
  label: SW2
  node_definition: ioll2-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: -165
  y: 0
  configuration:
  - name: ios_config.txt
    content: |
      hostname SW2
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      vlan 10
       name LAN10
      !
      spanning-tree mode rapid-pvst
      spanning-tree vlan 10 priority 8192
      interface Ethernet0/0
       switchport trunk encapsulation dot1q
       switchport mode trunk
       switchport trunk allowed vlan 10
       no shutdown
      !
      interface Ethernet0/1
       switchport trunk encapsulation dot1q
       switchport mode trunk
       switchport trunk allowed vlan 10
       no shutdown
      !
      interface Ethernet0/2
       switchport mode access
       switchport access vlan 10
       no shutdown
      !
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
- id: n2
  label: SW3
  node_definition: ioll2-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: 165
  y: 0
  configuration:
  - name: ios_config.txt
    content: |
      hostname SW3
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      vlan 10
       name LAN10
      !
      spanning-tree mode rapid-pvst
      spanning-tree vlan 10 priority 12288
      interface Ethernet0/0
       switchport trunk encapsulation dot1q
       switchport mode trunk
       switchport trunk allowed vlan 10
       no shutdown
      !
      interface Ethernet0/1
       switchport trunk encapsulation dot1q
       switchport mode trunk
       switchport trunk allowed vlan 10
       no shutdown
      !
      interface Ethernet0/2
       switchport mode access
       switchport access vlan 10
       no shutdown
      !
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
- id: n3
  label: PC-A
  node_definition: iol-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: -320
  y: 145
  configuration:
  - name: ios_config.txt
    content: |
      hostname PC-A
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      interface Ethernet0/0
       ip address 192.168.10.11 255.255.255.0
       no shutdown
      !
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
- id: n4
  label: PC-B
  node_definition: iol-xe
  image_definition: null
  ram: null
  cpus: null
  cpu_limit: null
  data_volume: null
  boot_disk_size: null
  parameters: {}
  tags: []
  hide_links: false
  x: 320
  y: 145
  configuration:
  - name: ios_config.txt
    content: |
      hostname PC-B
      no ip domain lookup
      service timestamps log datetime msec
      logging buffered 16000
      !
      interface Ethernet0/0
       ip address 192.168.10.12 255.255.255.0
       no shutdown
      !
      !
      end
  interfaces:
  - id: i0
    label: Loopback0
    mac_address: null
    type: loopback
  - id: i1
    label: Ethernet0/0
    slot: 0
    type: physical
    mac_address: null
  - id: i2
    label: Ethernet0/1
    slot: 1
    type: physical
    mac_address: null
  - id: i3
    label: Ethernet0/2
    slot: 2
    type: physical
    mac_address: null
  - id: i4
    label: Ethernet0/3
    slot: 3
    type: physical
    mac_address: null
links:
- id: l0
  n1: n0
  n2: n1
  i1: i1
  i2: i1
  conditioning: {}
  label: SW1-Ethernet0/0<->SW2-Ethernet0/0
- id: l1
  n1: n0
  n2: n2
  i1: i2
  i2: i1
  conditioning: {}
  label: SW1-Ethernet0/1<->SW3-Ethernet0/0
- id: l2
  n1: n1
  n2: n2
  i1: i2
  i2: i2
  conditioning: {}
  label: SW2-Ethernet0/1<->SW3-Ethernet0/1
- id: l3
  n1: n1
  n2: n3
  i1: i3
  i2: i1
  conditioning: {}
  label: SW2-Ethernet0/2<->PC-A-Ethernet0/0
- id: l4
  n1: n2
  n2: n4
  i1: i3
  i2: i1
  conditioning: {}
  label: SW3-Ethernet0/2<->PC-B-Ethernet0/0
lab:
  title: CCNA 04A - stp_failover
  description: مثلث STP ومسار بديل بعد فصل الوصلة
  notes: |-
    مثلث STP ومسار بديل بعد فصل الوصلة

    اعرض show spanning-tree vlan 10 على كل سويتش. استخرج Root وAlternate، ثم نفّذ ping 192.168.10.12 من PC-A.

    الإصلاح
    على SW3 نفّذ shutdown على Ethernet0/0 في CLI. IOL قد يحتفظ بإشارة L1 افتراضية عند إيقاف الرابط من لوحة CML، لذلك استخدم shutdown داخل الجهاز.

    التحقق
    بعد التقارب راجع دور Ethernet0/1 ونجاح Ping. أعد no shutdown على Ethernet0/0 وسجّل استعادة الحالة الأصلية.
  timestamp: 1795104000.0
  version: 0.3.0
