This commit is contained in:
Yunjay Liu
2024-10-24 15:25:26 +08:00
parent a10302889a
commit 14f8827964
5 changed files with 541 additions and 0 deletions

View File

@ -0,0 +1,2 @@
set pcname PC1
dhcp

View File

@ -0,0 +1,2 @@
set pcname PC2
dhcp

View File

@ -0,0 +1,110 @@
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
no ip dhcp use vrf connected
ip dhcp excluded-address 10.0.0.254
ip dhcp excluded-address 20.0.0.254
!
ip dhcp pool vlan10
network 10.0.0.0 255.255.255.0
default-router 10.0.0.254
!
ip dhcp pool vlan20
network 20.0.0.0 255.255.255.0
default-router 20.0.0.254
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.0.0.254 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 20.0.0.254 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
!
no ip http server
no ip http secure-server
ip forward-protocol nd
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end

View File

@ -0,0 +1,129 @@
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
switchport mode trunk
!
interface FastEthernet1/1
switchport access vlan 10
!
interface FastEthernet1/2
switchport access vlan 20
!
interface FastEthernet1/3
!
interface FastEthernet1/4
!
interface FastEthernet1/5
!
interface FastEthernet1/6
!
interface FastEthernet1/7
!
interface FastEthernet1/8
!
interface FastEthernet1/9
!
interface FastEthernet1/10
!
interface FastEthernet1/11
!
interface FastEthernet1/12
!
interface FastEthernet1/13
!
interface FastEthernet1/14
!
interface FastEthernet1/15
!
interface Vlan1
no ip address
!
!
no ip http server
no ip http secure-server
ip forward-protocol nd
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end

View File

@ -0,0 +1,298 @@
{
"auto_close": true,
"auto_open": false,
"auto_start": false,
"drawing_grid_size": 25,
"grid_size": 75,
"name": "fifth",
"project_id": "16276c99-6a54-4890-aef0-9d3482c5b4da",
"revision": 9,
"scene_height": 1000,
"scene_width": 2000,
"show_grid": false,
"show_interface_labels": false,
"show_layers": false,
"snap_to_grid": false,
"supplier": null,
"topology": {
"computes": [],
"drawings": [],
"links": [
{
"filters": {},
"link_id": "1ad028fa-b329-4a86-90c0-8dd2d2f4a122",
"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": "e0",
"x": 56,
"y": -2
},
"node_id": "e58cefe4-1f19-4994-ab19-7168ed79a1ca",
"port_number": 0
},
{
"adapter_number": 1,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/1",
"x": 11,
"y": 48
},
"node_id": "c4551d36-9915-4c0e-857d-bb27e6971d6e",
"port_number": 1
}
],
"suspend": false
},
{
"filters": {},
"link_id": "aafded2a-b4b0-4470-84f4-6b528db77a58",
"nodes": [
{
"adapter_number": 1,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/0",
"x": 39,
"y": -23
},
"node_id": "c4551d36-9915-4c0e-857d-bb27e6971d6e",
"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": 28,
"y": 61
},
"node_id": "65ad1654-0e5e-4b0e-aedd-40f6d4d5bdee",
"port_number": 0
}
],
"suspend": false
},
{
"filters": {},
"link_id": "360334ae-7285-4a2f-993f-f9f9f8125fae",
"nodes": [
{
"adapter_number": 1,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "f1/2",
"x": 51,
"y": 52
},
"node_id": "c4551d36-9915-4c0e-857d-bb27e6971d6e",
"port_number": 2
},
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "e0",
"x": 16,
"y": -7
},
"node_id": "9d96debe-9dff-46db-9adc-4b094fadeb61",
"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": 21,
"y": -25
},
"locked": false,
"name": "R1",
"node_id": "65ad1654-0e5e-4b0e-aedd-40f6d4d5bdee",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": true,
"aux": null,
"chassis": "3660",
"clock_divisor": 4,
"disk0": 0,
"disk1": 0,
"dynamips_id": 1,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x606436b8",
"idlesleep": 30,
"image": "c3660-telcoentk9-mz.124-25d.image",
"image_md5sum": "13b42ff8c0138d790ed3800e65d14cd2",
"iomem": 5,
"mac_addr": "cc01.029b.0000",
"mmap": true,
"nvram": 512,
"platform": "c3600",
"ram": 192,
"slot0": "Leopard-2FE",
"slot1": null,
"slot2": null,
"slot3": null,
"slot4": null,
"slot5": null,
"slot6": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": ""
},
"symbol": ":/symbols/router.svg",
"template_id": "e8a981b9-85e2-47e8-b41f-c1a7f81f9baa",
"width": 66,
"x": -15,
"y": -145,
"z": 1
},
{
"compute_id": "local",
"console": 5001,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 32,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "SW1",
"x": 18,
"y": -25
},
"locked": false,
"name": "SW1",
"node_id": "c4551d36-9915-4c0e-857d-bb27e6971d6e",
"node_type": "dynamips",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {
"auto_delete_disks": true,
"aux": null,
"chassis": "3660",
"clock_divisor": 4,
"disk0": 0,
"disk1": 0,
"dynamips_id": 2,
"exec_area": 64,
"idlemax": 500,
"idlepc": "0x606436b8",
"idlesleep": 30,
"image": "c3660-telcoentk9-mz.124-25d.image",
"image_md5sum": "13b42ff8c0138d790ed3800e65d14cd2",
"iomem": 5,
"mac_addr": "cc02.02aa.0000",
"mmap": true,
"nvram": 512,
"platform": "c3600",
"ram": 192,
"slot0": "Leopard-2FE",
"slot1": "NM-16ESW",
"slot2": null,
"slot3": null,
"slot4": null,
"slot5": null,
"slot6": null,
"sparsemem": true,
"system_id": "FTX0945W0MY",
"usage": ""
},
"symbol": ":/symbols/classic/ethernet_switch.svg",
"template_id": "e8a981b9-85e2-47e8-b41f-c1a7f81f9baa",
"width": 72,
"x": -28,
"y": -37,
"z": 1
},
{
"compute_id": "local",
"console": 5002,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 59,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "PC1",
"x": 16,
"y": -25
},
"locked": false,
"name": "PC1",
"node_id": "e58cefe4-1f19-4994-ab19-7168ed79a1ca",
"node_type": "vpcs",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {},
"symbol": ":/symbols/vpcs_guest.svg",
"template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc",
"width": 65,
"x": -113,
"y": 67,
"z": 1
},
{
"compute_id": "local",
"console": 5004,
"console_auto_start": false,
"console_type": "telnet",
"custom_adapters": [],
"first_port_name": null,
"height": 59,
"label": {
"rotation": 0,
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "PC2",
"x": 16,
"y": -25
},
"locked": false,
"name": "PC2",
"node_id": "9d96debe-9dff-46db-9adc-4b094fadeb61",
"node_type": "vpcs",
"port_name_format": "Ethernet{0}",
"port_segment_size": 0,
"properties": {},
"symbol": ":/symbols/vpcs_guest.svg",
"template_id": "19021f99-e36f-394d-b4a1-8aaa902ab9cc",
"width": 65,
"x": 32,
"y": 81,
"z": 1
}
]
},
"type": "topology",
"variables": null,
"version": "2.2.2",
"zoom": 100
}