Files
cml-community/lab-topologies/basic-forwarding-behavior.yaml
2023-04-25 21:04:13 -04:00

936 lines
29 KiB
YAML

lab:
description: 'A flexible network topology useful for different explorations of forwarding
behavior. A single are OSPF network is configured with two LANs on either side. Linux
Alpine hosts configured for traffic testing. '
notes: ''
title: Basic Forwarding Behavior
version: 0.1.0
links:
- id: l0
n1: n4
n2: n6
i1: i2
i2: i2
label: R5-GigabitEthernet0/1<->S2-GigabitEthernet0/1
- id: l1
n1: n0
n2: n4
i1: i3
i2: i3
label: R2-GigabitEthernet0/2<->R5-GigabitEthernet0/2
- id: l2
n1: n1
n2: n4
i1: i3
i2: i4
label: R3-GigabitEthernet0/2<->R5-GigabitEthernet0/3
- id: l3
n1: n3
n2: n4
i1: i3
i2: i5
label: R4-GigabitEthernet0/2<->R5-GigabitEthernet0/4
- id: l4
n1: n8
n2: n5
i1: i0
i2: i6
label: H2-eth0<->S1-GigabitEthernet1/1
- id: l5
n1: n7
n2: n5
i1: i0
i2: i5
label: H1-eth0<->S1-GigabitEthernet1/0
- id: l6
n1: n6
n2: n9
i1: i5
i2: i0
label: S2-GigabitEthernet1/0<->H3-eth0
- id: l7
n1: n5
n2: n2
i1: i2
i2: i2
label: S1-GigabitEthernet0/1<->R1-GigabitEthernet0/1
- id: l8
n1: n0
n2: n2
i1: i2
i2: i3
label: R2-GigabitEthernet0/1<->R1-GigabitEthernet0/2
- id: l9
n1: n1
n2: n2
i1: i2
i2: i4
label: R3-GigabitEthernet0/1<->R1-GigabitEthernet0/3
- id: l10
n1: n3
n2: n2
i1: i2
i2: i5
label: R4-GigabitEthernet0/1<->R1-GigabitEthernet0/4
- id: l11
n1: n10
n2: n6
i1: i0
i2: i6
label: H4-eth0<->S2-GigabitEthernet1/1
nodes:
- boot_disk_size: 0
configuration: |-
!
hostname R2
!
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 10.12.12.2 255.255.255.0
ip ospf cost 100
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip address 10.25.25.2 255.255.255.0
ip ospf cost 100
duplex auto
speed auto
media-type rj45
!
!
router ospf 1
router-id 2.2.2.2
network 10.12.12.0 0.0.0.255 area 0
network 10.25.25.0 0.0.0.255 area 0
!
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
!
end
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n0
label: R2
node_definition: iosv
ram: 512
tags: []
x: 223
y: 285
interfaces:
- id: i0
label: Loopback0
type: loopback
- id: i1
label: GigabitEthernet0/0
slot: 0
type: physical
- id: i2
label: GigabitEthernet0/1
slot: 1
type: physical
- id: i3
label: GigabitEthernet0/2
slot: 2
type: physical
- id: i4
label: GigabitEthernet0/3
slot: 3
type: physical
- boot_disk_size: 0
configuration: |-
!
hostname R3
!
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 10.13.13.3 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip address 10.35.35.3 255.255.255.0
duplex auto
speed auto
media-type rj45
!
!
router ospf 1
router-id 3.3.3.3
network 10.13.13.0 0.0.0.255 area 0
network 10.35.35.0 0.0.0.255 area 0
!
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
!
end
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n1
label: R3
node_definition: iosv
ram: 512
tags: []
x: 387
y: 288
interfaces:
- id: i0
label: Loopback0
type: loopback
- id: i1
label: GigabitEthernet0/0
slot: 0
type: physical
- id: i2
label: GigabitEthernet0/1
slot: 1
type: physical
- id: i3
label: GigabitEthernet0/2
slot: 2
type: physical
- id: i4
label: GigabitEthernet0/3
slot: 3
type: physical
- boot_disk_size: 0
configuration: |-
!
hostname R1
!
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1.100
encapsulation dot1Q 100
ip address 192.168.100.1 255.255.255.0
!
interface GigabitEthernet0/1.200
encapsulation dot1Q 200
ip address 192.168.200.1 255.255.255.0
!
interface GigabitEthernet0/2
ip address 10.12.12.1 255.255.255.0
ip ospf cost 100
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
ip address 10.13.13.1 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/4
ip address 10.14.14.1 255.255.255.0
ip ospf cost 110
duplex auto
speed auto
media-type rj45
!
router ospf 1
router-id 1.1.1.1
passive-interface GigabitEthernet0/1
network 10.12.12.0 0.0.0.255 area 0
network 10.13.13.0 0.0.0.255 area 0
network 10.14.14.0 0.0.0.255 area 0
network 192.168.100.0 0.0.0.255 area 0
network 192.168.200.0 0.0.0.255 area 0
!
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
!
end
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n2
label: R1
node_definition: iosv
ram: 512
tags: []
x: 352
y: 440
interfaces:
- id: i0
label: Loopback0
type: loopback
- id: i1
label: GigabitEthernet0/0
slot: 0
type: physical
- id: i2
label: GigabitEthernet0/1
slot: 1
type: physical
- id: i3
label: GigabitEthernet0/2
slot: 2
type: physical
- id: i4
label: GigabitEthernet0/3
slot: 3
type: physical
- id: i5
label: GigabitEthernet0/4
slot: 4
type: physical
- boot_disk_size: 0
configuration: |-
!
hostname R4
!
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 10.14.14.4 255.255.255.0
ip ospf cost 100
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip address 10.45.45.4 255.255.255.0
ip ospf cost 100
duplex auto
speed auto
media-type rj45
!
!
router ospf 1
router-id 4.4.4.4
network 10.14.14.0 0.0.0.255 area 0
network 10.45.45.0 0.0.0.255 area 0
!
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
!
end
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n3
label: R4
node_definition: iosv
ram: 512
tags: []
x: 517
y: 282
interfaces:
- id: i0
label: Loopback0
type: loopback
- id: i1
label: GigabitEthernet0/0
slot: 0
type: physical
- id: i2
label: GigabitEthernet0/1
slot: 1
type: physical
- id: i3
label: GigabitEthernet0/2
slot: 2
type: physical
- id: i4
label: GigabitEthernet0/3
slot: 3
type: physical
- boot_disk_size: 0
configuration: |-
!
hostname R5
!
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
ip address 172.16.10.1 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
ip address 10.25.25.5 255.255.255.0
ip ospf cost 100
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
ip address 10.35.35.5 255.255.255.0
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/4
ip address 10.45.45.5 255.255.255.0
ip ospf cost 110
duplex auto
speed auto
media-type rj45
!
router ospf 1
router-id 5.5.5.5
passive-interface GigabitEthernet0/1
network 10.25.25.0 0.0.0.255 area 0
network 10.35.35.0 0.0.0.255 area 0
network 10.45.45.0 0.0.0.255 area 0
network 172.16.10.0 0.0.0.255 area 0
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
!
end
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n4
label: R5
node_definition: iosv
ram: 512
tags: []
x: 389
y: 145
interfaces:
- id: i0
label: Loopback0
type: loopback
- id: i1
label: GigabitEthernet0/0
slot: 0
type: physical
- id: i2
label: GigabitEthernet0/1
slot: 1
type: physical
- id: i3
label: GigabitEthernet0/2
slot: 2
type: physical
- id: i4
label: GigabitEthernet0/3
slot: 3
type: physical
- id: i5
label: GigabitEthernet0/4
slot: 4
type: physical
- boot_disk_size: 0
configuration: |-
!
hostname S1
!
vlan 100
name YELLOW
exit
vlan 200
name BLUE
exit
!
!
interface GigabitEthernet0/0
negotiation auto
!
interface GigabitEthernet0/1
switchport trunk allowed vlan 100,200
switchport trunk encapsulation dot1q
switchport mode trunk
negotiation auto
!
interface GigabitEthernet0/2
negotiation auto
!
interface GigabitEthernet0/3
negotiation auto
!
interface GigabitEthernet1/0
switchport access vlan 100
switchport mode access
negotiation auto
!
interface GigabitEthernet1/1
switchport access vlan 200
switchport mode access
negotiation auto
!
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
!
end
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n5
label: S1
node_definition: iosvl2
ram: 768
tags: []
x: 505
y: 568
interfaces:
- id: i0
label: Loopback0
type: loopback
- id: i1
label: GigabitEthernet0/0
slot: 0
type: physical
- id: i2
label: GigabitEthernet0/1
slot: 1
type: physical
- id: i3
label: GigabitEthernet0/2
slot: 2
type: physical
- id: i4
label: GigabitEthernet0/3
slot: 3
type: physical
- id: i5
label: GigabitEthernet1/0
slot: 4
type: physical
- id: i6
label: GigabitEthernet1/1
slot: 5
type: physical
- boot_disk_size: 0
configuration: |-
!
hostname S2
!
vlan 10
name PURPLE
exit
!
!
interface GigabitEthernet0/0
negotiation auto
!
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
negotiation auto
no shutdown
!
interface GigabitEthernet0/2
switchport access vlan 10
switchport mode access
negotiation auto
no shutdown
!
interface GigabitEthernet0/3
switchport access vlan 10
switchport mode access
negotiation auto
no shutdown
!
interface GigabitEthernet1/0
switchport access vlan 10
switchport mode access
negotiation auto
no shutdown
!
interface GigabitEthernet1/1
switchport access vlan 10
switchport mode access
negotiation auto
no shutdown
!
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
!
end
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n6
label: S2
node_definition: iosvl2
ram: 768
tags: []
x: 234
y: 34
interfaces:
- id: i0
label: Loopback0
type: loopback
- id: i1
label: GigabitEthernet0/0
slot: 0
type: physical
- id: i2
label: GigabitEthernet0/1
slot: 1
type: physical
- id: i3
label: GigabitEthernet0/2
slot: 2
type: physical
- id: i4
label: GigabitEthernet0/3
slot: 3
type: physical
- id: i5
label: GigabitEthernet1/0
slot: 4
type: physical
- id: i6
label: GigabitEthernet1/1
slot: 5
type: physical
- boot_disk_size: 16
configuration: |-
# this is a shell script which will be sourced at boot
hostname H1
# configurable user account
USERNAME=cisco
PASSWORD=cisco
# ip
ip addr add 192.168.100.11/24 dev eth0
ip link set dev eth0 up
ip route add 0.0.0.0/0 via 192.168.100.1
#ip route add 192.168.0.0/16 via 192.168.100.1
#ip route add 172.16.0.0/14 via 192.168.100.1
#ip route add 10.0.0.0/8 via 192.168.100.1
#ip link set dev eth0 up
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: true
id: n7
label: H1
node_definition: desktop
ram: 512
tags: []
x: 342
y: 569
interfaces:
- id: i0
label: eth0
slot: 0
type: physical
- id: i1
label: eth1
slot: 1
type: physical
- boot_disk_size: 16
configuration: |-
# this is a shell script which will be sourced at boot
hostname H2
# configurable user account
USERNAME=cisco
PASSWORD=cisco
# IP Information
ip addr add 192.168.200.11/24 dev eth0
ip link set dev eth0 up
ip route add 0.0.0.0/0 via 192.168.200.1
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n8
label: H2
node_definition: desktop
ram: 512
tags: []
x: 662
y: 565
interfaces:
- id: i0
label: eth0
slot: 0
type: physical
- boot_disk_size: 16
configuration: |-
# this is a shell script which will be sourced at boot
hostname H3
# configurable user account
USERNAME=cisco
PASSWORD=cisco
# IP Information
ip addr add 172.16.10.11/24 dev eth0
ip link set dev eth0 up
ip route add default via 172.16.10.1
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n9
label: H3
node_definition: desktop
ram: 512
tags: []
x: 441
y: -44
interfaces:
- id: i0
label: eth0
slot: 0
type: physical
- boot_disk_size: 16
configuration: |-
# this is a shell script which will be sourced at boot
hostname H4
# configurable user account
USERNAME=cisco
PASSWORD=cisco
# IP Information
ip addr add 172.16.10.21/24 dev eth0
ip link set dev eth0 up
ip route add default via 172.16.10.1
cpu_limit: 100
cpus: 1
data_volume: 0
hide_links: false
id: n10
label: H4
node_definition: alpine
ram: 512
tags: []
x: 461
y: 65
interfaces:
- id: i0
label: eth0
slot: 0
type: physical