Initial commit.

This commit is contained in:
Filipe Rodrigues 2023-01-29 17:56:14 +00:00
commit fddd7bbcc1
15 changed files with 752 additions and 0 deletions

34
.gitignore vendored Normal file
View File

@ -0,0 +1,34 @@
# Ignore all logs
vpcs.log
ubridge.log
dynamips_*_log.txt
dynamips_*_stdout.txt
c3725_*_log.txt
# Ignore all disks except ones we care about
c3725_*_slot0
c3725_*_slot1
# SwR3
!c3725_i3_slot0
!c3725_i3_slot1
# SwR4
!c3725_i4_slot0
!c3725_i4_slot1
# SwR5
!c3725_i5_slot0
!c3725_i5_slot1
# Ignore all runtime files
c3725_*_rom
c3725_*_rommon_vars
c3725_*_ssa
c3725-*.ghost
# Ignore all packet captures
captures/
# Ignore any lock fles
*_lock
# Igore weird dyamips files
ilt_*

595
a.gns3 Normal file
View File

@ -0,0 +1,595 @@
{
"auto_close": true,
"auto_open": false,
"auto_start": false,
"drawing_grid_size": 25,
"grid_size": 75,
"name": "a",
"project_id": "db76b815-b904-4ed4-913a-4f2a726d3185",
"revision": 9,
"scene_height": 1000,
"scene_width": 2000,
"show_grid": false,
"show_interface_labels": true,
"show_layers": false,
"snap_to_grid": true,
"supplier": null,
"topology": {
"computes": [],
"drawings": [],
"links": [
{
"filters": {},
"link_id": "bc8023bd-4cee-4948-8319-b28f80711b50",
"link_style": {},
"nodes": [
{
"adapter_number": 0,
"label": {
"rotation": 90,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/0",
"x": 85,
"y": 5
},
"node_id": "61235368-2e95-41c4-b398-77acaf8cfb28",
"port_number": 0
},
{
"adapter_number": 0,
"label": {
"rotation": 90,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/0",
"x": 6,
"y": 6
},
"node_id": "5454f17d-c719-4bb4-8514-c9b0b618b60b",
"port_number": 0
}
],
"suspend": false
},
{
"filters": {},
"link_id": "4d5e6d8e-12c8-41c2-a375-779c40dac829",
"link_style": {},
"nodes": [
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/1",
"x": 16,
"y": 48
},
"node_id": "5454f17d-c719-4bb4-8514-c9b0b618b60b",
"port_number": 1
},
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/0",
"x": 8,
"y": -30
},
"node_id": "15520adc-6a6a-4b3a-bde5-cffe21705c11",
"port_number": 0
}
],
"suspend": false
},
{
"filters": {},
"link_id": "ac624514-df1b-4806-a97b-e40af972cbc5",
"link_style": {},
"nodes": [
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/1",
"x": 16,
"y": 49
},
"node_id": "61235368-2e95-41c4-b398-77acaf8cfb28",
"port_number": 1
},
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/0",
"x": 9,
"y": -29
},
"node_id": "0720a5fe-790d-4fd6-a333-afcc1fd0b17e",
"port_number": 0
}
],
"suspend": false
},
{
"filters": {},
"link_id": "86408d9b-9252-4918-827c-f139bf52e64e",
"link_style": {},
"nodes": [
{
"adapter_number": 1,
"label": {
"rotation": 90,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/0",
"x": 79,
"y": 7
},
"node_id": "0720a5fe-790d-4fd6-a333-afcc1fd0b17e",
"port_number": 0
},
{
"adapter_number": 1,
"label": {
"rotation": 90,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/0",
"x": 0,
"y": 8
},
"node_id": "15520adc-6a6a-4b3a-bde5-cffe21705c11",
"port_number": 0
}
],
"suspend": false
},
{
"filters": {},
"link_id": "de00c0ca-dcda-40fa-8bea-cbe703f8a778",
"link_style": {},
"nodes": [
{
"adapter_number": 1,
"label": {
"rotation": -45,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/1",
"x": 32,
"y": 54
},
"node_id": "0720a5fe-790d-4fd6-a333-afcc1fd0b17e",
"port_number": 1
},
{
"adapter_number": 1,
"label": {
"rotation": -45,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/1",
"x": -25,
"y": -1
},
"node_id": "51084f0f-ae92-457e-b942-3ec3169afe2e",
"port_number": 1
}
],
"suspend": false
},
{
"filters": {},
"link_id": "499d7eac-fdc1-4fe6-bf3c-f4722f84ba0b",
"link_style": {},
"nodes": [
{
"adapter_number": 1,
"label": {
"rotation": 45,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/0",
"x": 52,
"y": -26
},
"node_id": "51084f0f-ae92-457e-b942-3ec3169afe2e",
"port_number": 0
},
{
"adapter_number": 1,
"label": {
"rotation": 45,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/1",
"x": -4,
"y": 31
},
"node_id": "15520adc-6a6a-4b3a-bde5-cffe21705c11",
"port_number": 1
}
],
"suspend": false
},
{
"filters": {},
"link_id": "5c970746-53e9-4dd8-acce-c896ec87e1b4",
"link_style": {},
"nodes": [
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/0",
"x": 10,
"y": 50
},
"node_id": "51084f0f-ae92-457e-b942-3ec3169afe2e",
"port_number": 0
},
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f0/0",
"x": 18,
"y": -31
},
"node_id": "b4f48fa3-32b3-4cf4-8061-ec80c7ebaf6c",
"port_number": 0
}
],
"suspend": false
}
],
"nodes": [
{
"compute_id": "local",
"console": 5000,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 45,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "R1",
"x": -26,
"y": 7
},
"locked": false,
"name": "R1",
"node_id": "61235368-2e95-41c4-b398-77acaf8cfb28",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": true,
"aux": null,
"clock_divisor": 8,
"disk0": 0,
"disk1": 0,
"dynamips_id": 1,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x602467a4",
"idlesleep": 30,
"image": "c3725-adventerprisek9-mz.124-25d.image",
"image_md5sum": "606484061b9e52e71d4f4ddab9af19e7",
"iomem": 5,
"mac_addr": "c201.2070.0000",
"mmap": true,
"nvram": 256,
"platform": "c3725",
"ram": 128,
"slot0": "GT96100-FE",
"slot1": null,
"slot2": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": "",
"wic0": null,
"wic1": null,
"wic2": null
},
"symbol": ":/symbols/router.svg",
"template_id": "73a8afd3-350f-4425-9f25-0daca8c4f4a0",
"width": 66,
"x": -333,
"y": -247,
"z": 1
},
{
"compute_id": "local",
"console": 5001,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 45,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "R2",
"x": 66,
"y": 6
},
"locked": false,
"name": "R2",
"node_id": "5454f17d-c719-4bb4-8514-c9b0b618b60b",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": true,
"aux": null,
"clock_divisor": 8,
"disk0": 0,
"disk1": 0,
"dynamips_id": 2,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x602467a4",
"idlesleep": 30,
"image": "c3725-adventerprisek9-mz.124-25d.image",
"image_md5sum": "606484061b9e52e71d4f4ddab9af19e7",
"iomem": 5,
"mac_addr": "c202.2081.0000",
"mmap": true,
"nvram": 256,
"platform": "c3725",
"ram": 128,
"slot0": "GT96100-FE",
"slot1": null,
"slot2": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": "",
"wic0": null,
"wic1": null,
"wic2": null
},
"symbol": ":/symbols/router.svg",
"template_id": "73a8afd3-350f-4425-9f25-0daca8c4f4a0",
"width": 66,
"x": -33,
"y": -247,
"z": 1
},
{
"compute_id": "local",
"console": 5002,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 48,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "R3",
"x": -27,
"y": 9
},
"locked": false,
"name": "R3",
"node_id": "0720a5fe-790d-4fd6-a333-afcc1fd0b17e",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": false,
"aux": null,
"clock_divisor": 8,
"disk0": 1,
"disk1": 1,
"dynamips_id": 3,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x602467a4",
"idlesleep": 30,
"image": "c3725-adventerprisek9-mz.124-25d.image",
"image_md5sum": "606484061b9e52e71d4f4ddab9af19e7",
"iomem": 5,
"mac_addr": "c203.2091.0000",
"mmap": true,
"nvram": 256,
"platform": "c3725",
"ram": 128,
"slot0": "GT96100-FE",
"slot1": "NM-16ESW",
"slot2": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": "",
"wic0": null,
"wic1": null,
"wic2": null
},
"symbol": ":/symbols/classic/multilayer_switch.svg",
"template_id": "73a8afd3-350f-4425-9f25-0daca8c4f4a0",
"width": 51,
"x": -325,
"y": 51,
"z": 1
},
{
"compute_id": "local",
"console": 5003,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 48,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "R4",
"x": 68,
"y": 7
},
"locked": false,
"name": "R4",
"node_id": "15520adc-6a6a-4b3a-bde5-cffe21705c11",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": false,
"aux": null,
"clock_divisor": 8,
"disk0": 1,
"disk1": 1,
"dynamips_id": 4,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x602467a4",
"idlesleep": 30,
"image": "c3725-adventerprisek9-mz.124-25d.image",
"image_md5sum": "606484061b9e52e71d4f4ddab9af19e7",
"iomem": 5,
"mac_addr": "c204.20a1.0000",
"mmap": true,
"nvram": 256,
"platform": "c3725",
"ram": 128,
"slot0": "GT96100-FE",
"slot1": "NM-16ESW",
"slot2": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": "",
"wic0": null,
"wic1": null,
"wic2": null
},
"symbol": ":/symbols/classic/multilayer_switch.svg",
"template_id": "73a8afd3-350f-4425-9f25-0daca8c4f4a0",
"width": 51,
"x": -25,
"y": 51,
"z": 1
},
{
"compute_id": "local",
"console": 5004,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 48,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "R5",
"x": 15,
"y": -25
},
"locked": false,
"name": "R5",
"node_id": "51084f0f-ae92-457e-b942-3ec3169afe2e",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": false,
"aux": null,
"clock_divisor": 8,
"disk0": 1,
"disk1": 1,
"dynamips_id": 5,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x602467a4",
"idlesleep": 30,
"image": "c3725-adventerprisek9-mz.124-25d.image",
"image_md5sum": "606484061b9e52e71d4f4ddab9af19e7",
"iomem": 5,
"mac_addr": "c205.20b2.0000",
"mmap": true,
"nvram": 256,
"platform": "c3725",
"ram": 128,
"slot0": "GT96100-FE",
"slot1": "NM-16ESW",
"slot2": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": "",
"wic0": null,
"wic1": null,
"wic2": null
},
"symbol": ":/symbols/classic/multilayer_switch.svg",
"template_id": "73a8afd3-350f-4425-9f25-0daca8c4f4a0",
"width": 51,
"x": -175,
"y": 201,
"z": 1
},
{
"compute_id": "local",
"console": 5005,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 45,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "R6",
"x": 21,
"y": 42
},
"locked": false,
"name": "R6",
"node_id": "b4f48fa3-32b3-4cf4-8061-ec80c7ebaf6c",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": true,
"aux": null,
"clock_divisor": 8,
"disk0": 0,
"disk1": 0,
"dynamips_id": 6,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x602467a4",
"idlesleep": 30,
"image": "c3725-adventerprisek9-mz.124-25d.image",
"image_md5sum": "606484061b9e52e71d4f4ddab9af19e7",
"iomem": 5,
"mac_addr": "c206.20c2.0000",
"mmap": true,
"nvram": 256,
"platform": "c3725",
"ram": 128,
"slot0": "GT96100-FE",
"slot1": null,
"slot2": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": "",
"wic0": null,
"wic1": null,
"wic2": null
},
"symbol": ":/symbols/router.svg",
"template_id": "73a8afd3-350f-4425-9f25-0daca8c4f4a0",
"width": 66,
"x": -183,
"y": 353,
"z": 1
}
]
},
"type": "topology",
"variables": null,
"version": "2.2.35.1",
"zoom": 168
}

View File

@ -0,0 +1,20 @@
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R3
ip cef
no ip domain-lookup
no ip icmp rate-limit unreachable
ip tcp synwait 5
no cdp log mismatch duplex
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
end

View File

@ -0,0 +1,20 @@
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R4
ip cef
no ip domain-lookup
no ip icmp rate-limit unreachable
ip tcp synwait 5
no cdp log mismatch duplex
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
end

View File

@ -0,0 +1,20 @@
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R5
ip cef
no ip domain-lookup
no ip icmp rate-limit unreachable
ip tcp synwait 5
no cdp log mismatch duplex
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
end

View File

@ -0,0 +1,20 @@
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R2
ip cef
no ip domain-lookup
no ip icmp rate-limit unreachable
ip tcp synwait 5
no cdp log mismatch duplex
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
end

View File

@ -0,0 +1,20 @@
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R1
ip cef
no ip domain-lookup
no ip icmp rate-limit unreachable
ip tcp synwait 5
no cdp log mismatch duplex
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
end

View File

@ -0,0 +1,20 @@
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname R6
ip cef
no ip domain-lookup
no ip icmp rate-limit unreachable
ip tcp synwait 5
no cdp log mismatch duplex
line con 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
line aux 0
exec-timeout 0 0
logging synchronous
privilege level 15
no login
end

3
strip_comments.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/env bash
find project-files/dynamips -iname '*_startup-config.cfg' -exec bash -c 'sed -i -e "/^\!\s*$/d" -e "/^$/d" $1' bash {} \;