11.5.1 Packet Tracer - Compare Layer 2 and Layer 3 Devices Answers
Topology
Objective
- Part 1: Compare Layer 2 and Layer 3 Switches
- Part 2: Compare a Layer 3 Switch and a Router
Background
In this activity, you will use various commands to examine three different switching topologies and compare the similarities and differences between the 2960 and 3650 switches. You will also compare the routing table of a 4321 router with that of a 3650 switch.
Note: Search the internet for more details about the WS-C3650-24PS-L Layer 3 switch and the ISR 4321/K9 router.
Instructions
Step 1: Compare Layer 2 and Layer 3 Switches
a. Examine the physical aspects of D1 and ASw-1.
Each individual switch has how many physical switchports?
How many Fast Ethernet and Gigabit Ethernet switchports does each switch have?
List the transmission speed of the Fast Ethernet and Gigabit Ethernet switchports on each switch.
Are either of the two switches modular in design?
b. The switchports of a 3650 switch can be configured as Layer 3 interfaces by entering the no switchport command in interface configuration mode. This allows technicians to assign an IP address and subnet mask to the switchport in the same way that they are configured on a router interface.
What is the difference between a Layer 2 switch and a Layer 3 switch?
What is the difference between a switch’s physical interface and the VLAN interface?
At which layers do 2960 and 3650 switches operate?
Issue the show running-config command to examine the configurations of the D1 and ASw-1 switches. Do you notice any differences between them?
D1:
D1# show running-config <output omitted> no ip cef ip routing <output omitted> interface GigabitEthernet1/0/24 ! interface GigabitEthernet1/1/1 no switchport ip address 192.168.10.1 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet1/1/2 no switchport ip address 192.168.11.1 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet1/1/3 ! interface GigabitEthernet1/1/4 ! interface Vlan1 no ip address shutdown <output omitted>
ASw-1:
ASw-1# show running-config <output omitted> interface FastEthernet0/1 ! interface FastEthernet0/2 ! <output omitted> interface FastEthernet0/24 ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 ip address 192.168.10.2 255.255.255.0 ! ip default-gateway 192.168.10.1 <output omitted>
Try to display the routing table on D1 and ASw-1 using the show ip route command. Why do you think the command does not work on ASw-1 but works on D1?
D1:
D1# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.10.0/24 is directly connected, GigabitEthernet1/1/1 L 192.168.10.1/32 is directly connected, GigabitEthernet1/1/1 192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.11.0/24 is directly connected, GigabitEthernet1/1/2 L 192.168.11.1/32 is directly connected, GigabitEthernet1/1/2
ASw-1:
ASw-1# show ip route
^
% Invalid input detected at '^' marker.Step 2: Compare a Layer 3 Switch and a Router
In the past, switches and routers have been separate and distinct devices. The term switch was set aside for hardware devices that function at Layer 2. Routers, on the other hand, are devices that make forwarding decisions based on Layer 3 information. They use routing protocols to share routing information and to communicate with other routers. Layer 3 switches, such as the 3650, can be configured to forward Layer 3 packets. Entering the ip routing command in global configuration mode allows Layer 3 switches to be configured with routing protocols, which gives them some of the capabilities of a router. Although similar in some ways, Layer 3 switches are different from routers in many other aspects.
a. Open the Physical tab on D1 and R1.
Do you notice any similarities between the two? Do you notice any differences between the two?
Issue the show running-config command and examine the configurations of R1 and D1. What differences do you see between the two?
R1:
R1# show running-config <output omitted> interface GigabitEthernet0/0/0 ip address 192.168.10.1 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet0/0/1 ip address 192.168.11.1 255.255.255.0 duplex auto speed auto ! interface Serial0/1/0 no ip address clock rate 2000000 shutdown ! <output omitted>
D1:
D1# show running-config <output omitted> no ip cef ip routing <output omitted> interface GigabitEthernet1/0/24 ! interface GigabitEthernet1/1/1 no switchport ip address 192.168.10.1 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet1/1/2 no switchport ip address 192.168.11.1 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet1/1/3 ! interface GigabitEthernet1/1/4 ! interface Vlan1 no ip address shutdown <output omitted>
Which command allows configuration of D1 with an IP address on one of its physical interfaces?
Use the show ip route command on both devices. Do you see any similarities or differences between the two tables?
R1:
R1# show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.10.0/24 is directly connected, GigabitEthernet0/0/0 L 192.168.10.1/32 is directly connected, GigabitEthernet0/0/0 192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.11.0/24 is directly connected, GigabitEthernet0/0/1 L 192.168.11.1/32 is directly connected, GigabitEthernet0/0/1
D1:
D1# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.10.0/24 is directly connected, GigabitEthernet1/1/1 L 192.168.10.1/32 is directly connected, GigabitEthernet1/1/1 192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.11.0/24 is directly connected, GigabitEthernet1/1/2 L 192.168.11.1/32 is directly connected, GigabitEthernet1/1/2
Now, analyze the routing table of R2 and D2. What is present now that was not present in the configuration of R1 and D1?
R2:
R2# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, GigabitEthernet0/0/1
L 1.1.1.1/32 is directly connected, GigabitEthernet0/0/1
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.11.48.0/30 is directly connected, GigabitEthernet0/0/0
L 10.11.48.1/32 is directly connected, GigabitEthernet0/0/0
O 192.168.10.0/24 [110/2] via 10.11.48.2, 00:23:58, GigabitEthernet0/0/0
O 192.168.11.0/24 [110/2] via 10.11.48.2, 00:23:58, GigabitEthernet0/0/0D2:
D2# show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
O 1.1.1.0 [110/2] via 10.11.48.1, 00:24:35, GigabitEthernet1/0/1
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.11.48.0/30 is directly connected, GigabitEthernet1/0/1
L 10.11.48.2/32 is directly connected, GigabitEthernet1/0/1
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet1/1/1
L 192.168.10.1/32 is directly connected, GigabitEthernet1/1/1
192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.11.0/24 is directly connected, GigabitEthernet1/1/2
L 192.168.11.1/32 is directly connected, GigabitEthernet1/1/2Which network is in the routing table of D2 that was learned from R2?
b. Verify that each topology has full connectivity by completing the following tests:
- Ping from PC1 to PC2
- Ping from PC3 to PC4
- Ping from PC5 to PC6 and PC7
PC1:
C:\> ping 192.168.11.10
Pinging 192.168.11.10 with 32 bytes of data:
Request timed out.
Reply from 192.168.11.10: bytes=32 time<1ms TTL=127
Reply from 192.168.11.10: bytes=32 time<1ms TTL=127
Reply from 192.168.11.10: bytes=32 time<1ms TTL=127
Ping statistics for 192.168.11.10:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msPC3:
C:\> ping 192.168.11.10
Pinging 192.168.11.10 with 32 bytes of data:
Request timed out.
Reply from 192.168.11.10: bytes=32 time<1ms TTL=127
Reply from 192.168.11.10: bytes=32 time<1ms TTL=127
Reply from 192.168.11.10: bytes=32 time<1ms TTL=127
Ping statistics for 192.168.11.10:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msPC5:
C:\> ping 192.168.10.10
Pinging 192.168.10.10 with 32 bytes of data:
Request timed out.
Reply from 192.168.10.10: bytes=32 time<1ms TTL=126
Reply from 192.168.10.10: bytes=32 time<1ms TTL=126
Reply from 192.168.10.10: bytes=32 time<1ms TTL=126
Ping statistics for 192.168.10.10:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msC:\> ping 192.168.11.10
Pinging 192.168.11.10 with 32 bytes of data:
Request timed out.
Reply from 192.168.11.10: bytes=32 time<1ms TTL=126
Reply from 192.168.11.10: bytes=32 time<1ms TTL=126
Reply from 192.168.11.10: bytes=32 time<1ms TTL=126
Ping statistics for 192.168.11.10:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msIn all three examples, each PC is on a different network.
Which device is used to provide communication between networks?
Why were we able to ping across networks without there being a router?
Bonus question: We say that routers are Layer 3 devices and conventional (non-Layer 3) switches are Layer 2 devices. However, we can assign an IP address to a management (SVI) interface of a Layer 2 switch. How is this possible if switches are Layer 2 devices?





