[RC1] Add pratica03

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2023-10-21 20:45:56 +01:00
parent a8c586788f
commit d14e30b68b
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
15 changed files with 589 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,101 @@
# Guide 3
## Ex 1.5
|Ping from:|Ping to:|Connectivity|Packets (PC1-Switch1 link)|Packets (PC3-Switch1 link)|
|:-------:|:------------:|:---:|:----:|:---------:|
| PC2 | Switch1 | No | ARP | N/A |
| PC2 | PC3 | No | ARP | N/A |
| PC2 | 192.168.1.34 | No | ARP | N/A |
| PC3 | Switch1 | Yes | N/A | ARP, ICMP |
| PC3 | PC2 | No | N/A | ARP |
| PC3 | 192.168.1.34 | No | N/A | ARP |
| Switch1 | PC3 | Yes | N/A | ICMP |
| Switch1 | 192.168.1.34 | No | N/A | ARP |
PCs from different vlans are unable to communicate since the switch is unable to make the connection between vlans. Neither PC1 nor PC2 can communicate with Switch1.
- **PC2 → Switch1**
- There's no connectivity because PC2's vlan has no configured IP;
- **PC2 → PC3**
- There's no connectivity because they are in different vlans;
- **PC2 → 192.168.1.34**
- There's no connectivity because the IP doesn't exist;
- **PC3 → Switch1**
- There's connectivity because they are in the same vlan;
- **PC3 → PC2**
- There's no connectivity because they are in different vlans;
- **PC3 → 192.168.1.34**
- There's no connectivity because the IP doesn't exist;
- **Switch1 → PC3**
- There's connectivity because they are in the same vlan;
- **Switch1 → 192.168.1.34**
- There's no connectivity because the IP doesn't exist;
ARP packets occur in every new communication in the same link. ICMP packets only occur when there is connectivity through the link.
---
## Ex 2.2
|Ping from:|Ping to: |Connectivity|Filtered Packets|
|:--------:|:-------:|:----------:|:--------------:|
| PC1 | Switch1 | Yes | N/A |
| PC1 | Switch2 | Yes | ARP, ICMP |
| PC1 | PC2 | No | ARP |
| PC1 | PC3 | No | ARP |
| PC2 | Switch1 | No | ARP |
| PC2 | Switch2 | No | ARP |
| PC2 | PC2 | Yes | N/A |
| PC2 | PC3 | Yes | ARP, ICMP |
- PC1 → Switch1
- There's connectivity because they are in the same vlan;
- PC1 → Switch2
- There's connectivity because they are in the same vlan;
- PC1 → PC2
- There's no connectivity because they are in different vlans;
- PC1 → PC3
- There's no connectivity because they are in different vlans;
- PC2 → Switch1
- There's no connectivity because they are in different vlans;
- PC2 → Switch2
- There's no connectivity because they are in different vlans;
- PC2 → PC2
- There's connectivity because it's connecting with itself;
- PC2 → PC3
- There's connectivity because they are in the same vlan;
The appearances of packets in this case is similar to the ones in Ex 1.5.
---
## Ex 3.5
|Ping from:|Ping to: |Connectivity|Filtered Packets|
|:--------:|:-----------:|:----------:|:---------:|
| PC4 | Switch4 | No | ARP |
| PC4 | Router | Yes | ARP, ICMP |
| PC4 | PC5 | Yes | ARP, ICMP |
| PC4 | 192.1.1.100 | No | ICMP |
| PC5 | Switch4 | No | ARP, ICMP |
| PC5 | Router | Yes | IMCP |
| PC5 | PC4 | Yes | ICMP |
| PC5 | 192.1.1.100 | No | ICMP |
- PC4 → Switch4
- There's no connectivity because they are in different vlans and there are no valid routes between them;
- PC4 → Router
- There's connectivity because there's a valid route between them;
- PC4 → PC5
- There's connectivity because, even though they are in different vlans, there's a valid route through the router
- PC4 → 192.1.1.100
- There's no connectivity because the destination doesn't exist;
- PC5 → Switch4
- There's no connectivity because they are in different vlans and there are no valid paths between them;
- PC5 → Router
- There's connectivity because there's a valid route between them;
- PC5 → PC4
- There's connectivity because, even though they are in different vlans, there's a valid route through the router
- PC5 → 192.1.1.100
- There's no connectivity because the destination doesn't exist;

Binary file not shown.

View File

@ -0,0 +1,269 @@
{
"auto_close": true,
"auto_open": false,
"auto_start": false,
"drawing_grid_size": 25,
"grid_size": 75,
"name": "pratica03",
"project_id": "bfe610b2-307c-40b5-ae6b-2f1a826f6053",
"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": "8c5c6db7-fe92-4a75-b947-88ce1a3d455e",
"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": "e0",
"x": 70,
"y": -2
},
"node_id": "e75bd712-2fa5-4a9f-9934-fe88d77be907",
"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/5",
"x": -4,
"y": 49
},
"node_id": "bc0b3af5-504e-4310-aa34-384f1bc2f6a7",
"port_number": 5
}
],
"suspend": false
},
{
"filters": {},
"link_id": "c9a7a288-ac59-40d1-a4ed-75d17ffab52d",
"link_style": {},
"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/6",
"x": 25,
"y": 63
},
"node_id": "bc0b3af5-504e-4310-aa34-384f1bc2f6a7",
"port_number": 6
},
{
"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": 32,
"y": -10
},
"node_id": "dfb85d29-153a-4d0f-905a-aabf257f8cfe",
"port_number": 0
}
],
"suspend": false
},
{
"filters": {},
"link_id": "4796add3-8b16-4bf1-85fc-8e272b56df86",
"link_style": {},
"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": 57,
"y": 47
},
"node_id": "bc0b3af5-504e-4310-aa34-384f1bc2f6a7",
"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": "e0",
"x": -7,
"y": 0
},
"node_id": "577b685b-b5ae-4726-b6ef-f7645ca30464",
"port_number": 0
}
],
"suspend": false
}
],
"nodes": [
{
"compute_id": "local",
"console": 5001,
"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": 15,
"y": -25
},
"locked": false,
"name": "PC1",
"node_id": "e75bd712-2fa5-4a9f-9934-fe88d77be907",
"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": -290,
"y": 38,
"z": 1
},
{
"compute_id": "local",
"console": 5003,
"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": 15,
"y": -25
},
"locked": false,
"name": "PC2",
"node_id": "dfb85d29-153a-4d0f-905a-aabf257f8cfe",
"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": -77,
"y": 74,
"z": 1
},
{
"compute_id": "local",
"console": 5005,
"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": "PC3",
"x": 15,
"y": -25
},
"locked": false,
"name": "PC3",
"node_id": "577b685b-b5ae-4726-b6ef-f7645ca30464",
"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": 159,
"y": 32,
"z": 1
},
{
"compute_id": "local",
"console": 5000,
"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": "ESW1",
"x": 3,
"y": -25
},
"locked": false,
"name": "ESW1",
"node_id": "bc0b3af5-504e-4310-aa34-384f1bc2f6a7",
"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": 0,
"dynamips_id": 1,
"exec_area": 64,
"idlemax": 500,
"idlepc": "",
"idlesleep": 30,
"image": "c3725-advipservicesk9-mz.124-21.image",
"image_md5sum": "c336fa915d7ecd3b821c5e562c4326ab",
"iomem": 5,
"mac_addr": "c201.1e79.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/multilayer_switch.svg",
"template_id": "804bcd53-870c-4c03-a5c8-b1e0652b3f33",
"width": 51,
"x": -70,
"y": -138,
"z": 1
}
]
},
"type": "topology",
"variables": null,
"version": "2.2.43",
"zoom": 100
}

View File

@ -0,0 +1,192 @@
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
no service dhcp
!
hostname ESW1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip routing
no ip icmp rate-limit unreachable
no ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
vtp file nvram:vlan.dat
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface FastEthernet0/0
description *** Unused for Layer2 EtherSwitch ***
no ip address
no ip route-cache
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
description *** Unused for Layer2 EtherSwitch ***
no ip address
no ip route-cache
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
duplex full
speed 100
!
interface FastEthernet1/1
duplex full
speed 100
!
interface FastEthernet1/2
duplex full
speed 100
!
interface FastEthernet1/3
duplex full
speed 100
!
interface FastEthernet1/4
duplex full
speed 100
!
interface FastEthernet1/5
switchport access vlan 2
duplex full
speed 100
!
interface FastEthernet1/6
switchport access vlan 2
duplex full
speed 100
!
interface FastEthernet1/7
switchport access vlan 2
duplex full
speed 100
!
interface FastEthernet1/8
switchport access vlan 2
duplex full
speed 100
!
interface FastEthernet1/9
duplex full
speed 100
!
interface FastEthernet1/10
duplex full
speed 100
!
interface FastEthernet1/11
duplex full
speed 100
!
interface FastEthernet1/12
duplex full
speed 100
!
interface FastEthernet1/13
duplex full
speed 100
!
interface FastEthernet1/14
duplex full
speed 100
!
interface FastEthernet1/15
duplex full
speed 100
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
no cdp log mismatch duplex
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
banner exec 
***************************************************************
This is a normal Router with a SW module inside (NM-16ESW)
It has been preconfigured with hard coded speed and duplex
To create vlans use the command "vlan database" from exec mode
After creating all desired vlans use "exit" to apply the config
To view existing vlans use the command "show vlan-switch brief"
Warning: You are using an old IOS image for this router.
Please update the IOS to enable the "macro" command!
***************************************************************

!
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,9 @@
# This the configuration for PC3
#
# Uncomment the following line to enable DHCP
# dhcp
# or the line below to manually setup an IP address and subnet mask
# ip 192.168.1.1 255.0.0.0
#
set pcname PC3

View File

@ -0,0 +1,9 @@
# This the configuration for PC2
#
# Uncomment the following line to enable DHCP
# dhcp
# or the line below to manually setup an IP address and subnet mask
# ip 192.168.1.1 255.0.0.0
#
set pcname PC2

View File

@ -0,0 +1,9 @@
# This the configuration for PC1
#
# Uncomment the following line to enable DHCP
# dhcp
# or the line below to manually setup an IP address and subnet mask
# ip 192.168.1.1 255.0.0.0
#
set pcname PC1