Local and Metropolitan Area Network Design (LMAND) Progettazione di Reti Locali e Comprensorio (PRLC) Exercises
Symbols Station Multi-layer Switch Server Router L2 switch
EXERCISE #1 L2 Switch Fe0 Fe2 Fe3 A B C D A. Assuming that all the Hosts ARP cache are empty, list all packets forwarded by the L2 switch in case Host A ping Host D. B. List the ARP cache of all the Hosts at the end of the PING. C. List the filtering database of the L2 switch at the end of the PING.
SOLUTION EXERCISE #1 Question A (A,a) (A ip address, a mac address) ARP Request from (A,a) to (B,?) ARP Reply from (B,b) to (A,a) ICMP Echo Request from (A,a) to (B,b) ICMP Echo Reply from (B,b) to (A,a) Question B HOST A IP MAC HOST B IP MAC HOST C IP MAC HOST D IP MAC A a D d B b A a C c A a D d A a Question C Interface MAC address Fe0 a Fe3 d
EXERCISE #2 R1 L2 Switch A Fe7 Fe6 Fe5 Fe4 Fe2 L2 Switch B Fe7 Fe6 Fe5 Fe4 Fe0 Fe2 Fe3 Fe0 Fe2 Fe3 A B C D E F G H A. Assuming that all the devices ARP cache are empty, list all packets forwarded by the L2 switches in case Host A ping Host G B. List the filtering database of the two L2 switches at the end of the PING.
SOLUTION EXERCISE #2 Question A RED packets are forwarded by SWITCH A and BLUE packets are forwarded by SWITCH B. ARP Request from (A,a) to (R1,?) ARP Reply from (R1,r1_fe1) to (A,a) ICMP Echo Request (A,a) to (G,r1_fe1) ARP Request from (R1,r1_fe2) to (G,?) ARP Reply from (G,g) to (R1,r1_fe2) ICMP Echo Request from (A, r1_fe2) to (G,g) ICMP Echo Reply from (G,g) to (A,r1_fe2) ICMP Echo Reply from (G,r1_fe1) to (A,a) Question C SWITCH A Interface MAC address Fe0 a Fe4 r1_fe1 SWITCH B Interface MAC address Fe2 g Fe7 r1_fe2
EXERCISE #3 LAN B LAN C S00 3 1 2 2 1 3 S02 Costo 10 S01 Costo 10 1 3 2 2 3 1 S03 Costo 10 LAN A A. What is the outcome of the spanning tree protocol on this network assuming that each bridge Sxx uses as part of its bridge identifier the default bridge priority and the MAC address 03-0a-00-2b-3c-xx?
SOLUTION EXERCISE #3 LAN B LAN C ROOT S00 3 1 designated 1 2 root port 2 3 S02 S01 Costo 10 1 root port 2 3 designated blocking 1 2 blocking 3 S03 Costo 10 Root path cost 10 Root path cost 20 LAN A
EXERCISE #4 222 1 1 2 2 111 4 3 3 4 1 2 2 1 333 444 3 4 4 3 A. What is the outcome of the RAPID Spanning Tree protocol on the network depicted above Assuming that the root path cost is 10 for all the switches?
SOLUTION EXERCISE #4 222 1 2 1 2 111 4 3 3 4 1 2 2 1 333 444 3 4 4 3
EXERCISE #5 L2 Switch A Fe7 Fe6 Fe5 Fe4 L2 Switch B Fe7 Fe6 Fe5 Fe4 Fe0 Fe2 Fe3 Fe0 Fe2 Fe3 A B C D E F G H A. Configure the VLANs on the two switches such that the hosts belonging to the VLAN RED and the hosts belonging to VLAN BLUE are directly connected.
SOLUTION EXERCISE #5 VLAN RED ID=2 VLAN BLUE ID=4 SWITCH A SWITCH B Interface Mode VLAN ID Interface Mode VLAN ID Fe0 Access 2 Access 4 Fe2 Access 4 Fe3 Access 4 Fe4 Trunk 2,4 Fe0 Access 4 Access 2 Fe2 Access 4 Fe3 Access 2 Fe7 Trunk 2,4
EXERCISE #6 R1 L2 Switch A Fe7 Fe6 Fe5 Fe4 L2 Switch B Fe7 Fe6 Fe5 Fe4 Fe0 Fe2 Fe3 Fe0 Fe2 Fe3 A B C D E F G H A. Configure the VLAN ID on the two switches and R1 such that all the hosts in VLAN RED and VLAN BLUE are interconnected. B. Configure the IP address plan coherently with the VLANs configured.
SOLUTION EXERCISE #6 Question A VLAN RED ID=2 VLAN BLUE ID=4 SWITCH A SWITCH B R1 Interface Mode VLAN ID Interface Mode VLAN ID Interface Mode VLAN ID Fe0 Access 2 Access 2 Fe2 Access 4 Fe3 Access 4 Fe4 Trunk 2,4 Fe5 Trunk 2,4 Question B Fe0 Access 4 Access 2 Fe2 Access 4 Fe3 Access 4 Fe7 Trunk 2,4 Trunk 2,4 Hosts RED Network address 192.168.2.0 / 24 Hosts BLUE Network address 192.168.4.0 / 24 R1 Interface VLAN 2 ip address 192.168.2.17 / 24 Interface VLAN 4 ip address 192.168.4.17 / 24
EXERCISE #7 R1 Web Server L2 Switch A Fe7 Fe6 Fe5 Fe4 L2 Switch B Fe7 Fe6 Fe5 Fe4 Fe0 Fe2 Fe3 Fe0 Fe2 Fe3 A B C D E F G H Starting from network designed in Exercise#6 configure the network such that hosts on VLAN RED and VLAN BLUE are able to connect to the web server.
SOLUTION A EXERCISE #7 L2 Switch A R1 Fe7 Fe6 Fe5 Fe4 Web Server L2 Switch B Fe7 Fe6 Fe5 Fe4 Fe0 Fe2 Fe3 Fe0 Fe2 Fe3 A B C D E F G H Interface SWITCH B Mode VLAN ID Fe0 Access 4 Access 2 Fe2 Access 4 Fe3 Access 4 Fe6 Trunk 2,4 Fe7 Trunk 2,4 Web Server 1 NIC mode trunk allowed 2,4 Interface VLAN 2 ip address 192.168.2.54 / 24 Interface VLAN 4 ip address 192.168.4.54 / 24
SOLUTION B EXERCISE #7 L2 Switch A R1 Fe7 Fe6 Fe5 Fe4 Fe2 Fe7 Fe6 Fe5 Fe4 Web Server L2 Switch B Fe0 Fe2 Fe3 Fe0 Fe2 Fe3 A B C D E F G H Interface SWITCH B Mode VLAN ID Fe0 Access 4 Access 2 Fe2 Access 4 Fe3 Access 4 Fe5 Access 4 Fe6 Access 2 Fe7 Trunk 2,4 Web Server 2 NIC ip address 192.168.2.54 / 24 Fe2 ip address 192.168.4.54 / 24
EXERCISE #8 S03 Costo 10 Fe2 E F Fe3 Fe0 S01 Fe3 Fe2 Fe0 Fe2 Fe3 Fe0 S02 Costo 10 A B C D A. Drawing the resulting two logic L2 topologies assuming that VLAN GREEN and BLUE are correctly configured on the Switches as depicted in the figure above. B. What is the outcome of the VLAN spanning tree protocol on each topology assuming that each bridge Sxx uses as part of its bridge identifier the default bridge priority and the MAC address 03-0a-00-2b-3c-xx?
SOLUTION EXERCISE #8 S03 Costo 10 E F Fe0 Fe2 Fe3 Blocking Root Port ROOT S01 Fe3 Fe2 Fe0 Fe2 Fe3 Fe0 S02 Costo 10 A B C D Note: The standard 802.1q defines that STP is unique and independent of VLAN Cisco has implemented a not standards solution of the STP when use VLAN. The solution is referenced to be PVST (per VLAN STP). ROOT S01 Fe3 A Fe2 Root port Fe2 Fe3 C S02 Costo 10
EXERCISE #9 R1 IP 192.168.100.254 /24 R2 A B C IP 192.168.100.1 / 24 DW 192.168.100.254 / 24 IP 192.168.100.2 / 24 DW 192.168.100.254 / 24 IP 192.168.100.3 / 24 DW 192.168.100.254 / 24 D IP 192.168.100.4 / 24 DW 192.168.100.254 / 24 A. Given the L3 configuration of the router R1 and of the hosts in the LAN redundant the first hop router with R2 to improve the fault tolerant. B. List the HSRP configuration of R1 and R2 and the new IP configuration of the Hosts
SOLUTION EXERCISE #9 R1 Interface fastethernet 1 Ip address 192.168.100.254 / 24 standby 24 preempt standby 24 priority 120 standby 24 ip 192.168.100.252 / 24 R2 Interface fastethernet 1 Ip address 192.168.100.253 / 24 standby 24 preempt standby 24 ip 192.168.100.252 / 24 A B C IP 192.168.100.1 / 24 DW 192.168.100.252 / 24 IP 192.168.100.2 / 24 DW 192.168.100.252 / 24 IP 192.168.100.3 / 24 DW 192.168.100.252 / 24 D IP 192.168.100.4 / 24 DW 192.168.100.252 / 24
EXERCISE #10 building 1 building 2 building 3 WAN A. Given the three physical topologies depicted above and assuming that switches use STP configure the devices (i.e., L2 and L3 configuration) such that: 1. The L2 active topology is optimized 2. The networks have the maximum fault tolerant degree to WAN access breakdown. B. Where do you should physically connect the Servers in each building and which type of NIC card must have the server to ensure maximum reliability?
SOLUTION EXERCISE #10 Question A building 1 building 2 building 3 Root BP 28672 Root BP 28672 Root BP 24576 HSRP BP 28672 WAN
SOLUTION EXERCISE #10 Question B building 1 building 2 building 3 HSRP WAN
EXERCISE #11 WAN A. Given the physical topology depicted above and assuming that switches use STP configure the devices (i.e., L2 and L3 configuration) such that: 1. The L2 active topology is optimized 2. All the hosts belong to the same broadcast domain and have access to the WAN. 3. WAN connection is dinamically redundant
SOLUTION EXERCISE #11 VLAN 1 Root path cost 10 2 1 1 2 Root path cost 10 Root path cost 10 2 1 2 1 Root path cost 10 BP 28672 Root path cost 10 HSRP ROOT BP 24576 SW2 Interface VLAN 1 Ip address 192.168.100.253 / 24 standby 24 preempt standby 24 track Ge0 standby 24 ip 192.168.100.252 / 24 Interface Ge1 no switchport Ip address 192.168.200.1/30 Ge1 WAN Ge1 SW1 Interface VLAN 1 Ip address 192.168.100.254 / 24 standby 24 preempt standby 24 priority 120 standby 24 track Ge0 standby 24 ip 192.168.100.252 / 24 Interface Ge1 no switchport Ip address 192.168.200.2/30
EXERCISE #12 A. Design the LAN of a company with two departement such that: 1. The hosts in each departement are in their own broadcast domain. 2. The L2 networks are interconnected and both have access to the WAN. 3. The access to the WAN is redundant
SOLUTION EXERCISE #12 R1 Interface fastethernet 1 mode trunk Switched port trunk allowed 1,2 Interface VLAN1 Ip address 192.168.101.254 / 24 standby 21 preempt standby 21 priority 120 standby 21 ip 192.168.101.252 / 24 R2 Interface fastethernet 1 mode trunk Switched port trunk allowed 1,2 Interface VLAN 1 Ip address 192.168.101.253 / 24 standby 21 preempt standby 21 ip 192.168.101.252 / 24 Interface VLAN2 Ip address 192.168.102.254 / 24 standby 22 preempt standby 22 priority 120 standby 22 ip 192.168.102.252 / 24 Interface VLAN 1 Ip address 192.168.102.253 / 24 standby 22 preempt standby 22 ip 192.168.102.252 / 24 Switch A Fe0 Access 1 Access 1 Fe2 Access 1 Fe3 Access 1 Fe4 Trunk 1,2 Fe5 Trunk 1,2 Fe6 Trunk 1,2 Fe8 Fe7 Fe6 Fe5 Fe4 Fe0 Fe2 Fe3 Fe7 Fe6 Fe5 Fe4 Fe8 Fe0 Fe2 Fe3 Switch B Fe0 Access 2 Access 2 Fe2 Access 2 Fe3 Access 2 Fe6 Trunk 1,2 Fe7 Trunk 1,2 Fe8 Trunk 1,2 IP 192.168.101.0 / 24 DW 192.168.101.252 / 24 IP 192.168.102.0 / 24 DW 192.168.102.252 / 24 Departement A VLAN 1 Departement B VLAN 2
EXERCISE #13 A. Design a LAN in a building of three floors such that: 1. There is one L2 switch no VLAN-aware at each floor. 2. Hosts at different floors are in different broadcast domain 3. All L2 switches are interconnected with a Multi-layer switches at the ground floor. 4. The Multi-layer switch is connected to a WAN. 5. All the hosts connected to the L2 switches have access to the WAN.
SOLUTION EXERCISE #13 SW1 Interface Fe2 Switchport access Vlan 1 Interface Fe3 Switchport access Vlan 2 Interface Fe4 Switchport access Vlan 3 SW1 BP 28672 2 3 4 1 Interface Vlan 1 Ip address 192.168.1.17 / 24 Interface Vlan 2 Ip address 192.168.2.17 / 24 Interface Vlan 3 Ip address 192.168.3.17 / 24 WAN
EXERCISE #14 A. Design a LAN in a building of three floors such that: 1. There is L2 switch at each floor 2. The hosts at each floor belong to a different VLAN. 3. The switches at each floor are interconnected with two Multi-layer switches at the ground floor. 4. The access to the WAN is redundant.
SOLUTION EXERCISE #14 Access Access Access Access Access Access SW2 BP 28672 Access 1 2 3 Trunk Trunk 4 4 HSRP 5 5 Access 3 2 1 SW1 Root BP 24576 WAN
SOLUTION EXERCISE #14 SW1 Interface fastethernet 1 Switchport access VLAN 1 Interface fastethernet 2 Switchport access VLAN 2 Interface fastethernet 3 Switchport access VLAN 3 Interface fastethernet 4 Mode trunk Switchport trunk allowed VLAN 1,2,3 Interface VLAN1 Ip address 192.168.101.254 / 24 standby 21 preempt standby 21 priority 120 standby 21 ip 192.168.101.252 / 24 Interface VLAN2 Ip address 192.168.102.254 / 24 standby 22 preempt standby 22 priority 120 standby 22 ip 192.168.102.252 / 24 Interface VLAN3 Ip address 192.168.103.254 / 24 standby 23 preempt standby 23 priority 120 standby 23 ip 192.168.103.252 / 24 SW2 Interface fastethernet 1 Switchport access VLAN 1 Interface fastethernet 2 Switchport access VLAN 2 Interface fastethernet 3 Switchport access VLAN 3 Interface fastethernet 4 Mode trunk Switchport trunk allowed VLAN 1,2,3 Interface VLAN1 Ip address 192.168.101.253 / 24 standby 21 preempt standby 21 ip 192.168.101.252 / 24 Interface VLAN2 Ip address 192.168.102.253 / 24 standby 22 preempt standby 22 ip 192.168.102.252 / 24 Interface VLAN3 Ip address 192.168.103.253 / 24 standby 23 preempt standby 23 ip 192.168.103.252 / 24 Host VLAN 1 IP 192.168.101.0 / 24 Gateway: 192.168.101.252 Host VLAN 2 IP 192.168.102.0 / 24 Gateway: 192.168.102.252 Host VLAN 1 IP 192.168.103.0 / 24 Gateway: 192.168.103.252
EXERCISE #15 A. Design a LAN in a building of three floors such that: 1. Two L2 switches are installed at each floor. The two switches are interconnected. 2. All the hosts have access to the WAN and Hosts in different VLANS are interconnected. 3. Multiple VLANs are allowed at each floor. 4. The switches at each floor are interconnected with two Multi-layer switches at the ground floor. 5. The access to the WAN is redundant.
SOLUTION EXERCISE #15 Access trunk trunk trunk trunk trunk SW2 BP 28672 1 2 3 4 trunk HSRP 5 5 4 3 2 1 SW1 Root BP 24576 WAN