Capstone Project Configure VLANs in Packet Tracer Using the CLI This Capstone Project picks up where Capstone
Question:
Capstone Project Configure VLANs in Packet Tracer Using the CLI
This Capstone Project picks up where Capstone Project 8-2 left off. In Capstone Project 8-2, you created two VLANs on one switch. For the most part, when possible, you used the Configuration GUI to make these changes. This time, let's work on a different subnet, add a second switch, configure DHCP services for both VLANs, and do all of this from the networking devices' CLIs. This might seem intimidating, but don't worry; after completing this chapter, you have the skills to succeed at this project.
After step 6, take a screenshot and paste the image into a MS Word Document. After step 9, take a screenshot and paste the image into the same MS Word Document (after your first screenshot). Use Table 8-16, 8-17, 8-18, and 8-19 to answer the questions from 13 through 16 (you may either make a table in the Word document or just answer each part by typing your answers). Answer the questions ending with 16 on the same document. Complete everything through step 18.
Complete the following steps:
1. In Packet Tracer, open your Packet Tracer file from Capstone Project 8-2.
2. Scroll to the right side of the network. Add a switch and three more PCs, positioned as shown in Figure 8-39.
[[Figure 8-39]]
3. Connect each of the devices to the following interfaces using Copper Straight-Through cables:
· Switch5 (FastEthernet0/24) to Switch6 (FastEthernet0/24)
· PC9 to Switch5 (FastEthernet0/3)
· PC10 to Switch6 (FastEthernet0/1)
· PC11 to Switch6 (FastEthernet0/3)
Technically, you should have used a Crossover cable to connect the two switches to each other. However, the link worked. Why do you think this is?
Answer: The switch is advanced enough to automatically adjust to the straight-through cable.
4. Configure two VLANs with one PC from each switch on each VLAN. Click Switch5 and click the CLI tab. Press Enter.
5. Here, you're starting out in user EXEC mode. To access privileged mode, which allows you to carry out administrative tasks, enter the command enable.
6. Enter the command configure terminal. This takes you into global configuration mode, which you saw earlier in this project.
7. Enter the commands listed in Table 8-16 to create and name two VLANs.
Table 8-16 Create and name two VLANs
Command
Purpose
vlan 10
Creates VLAN 10 and enters VLAN configuration mode for that VLAN
name HR
Assigns VLAN 10 the name HR
vlan 11
Creates VLAN 11 and enters VLAN configuration mode for that VLAN
name IT
Assigns VLAN 11 the name IT
exit
Returns to global configuration mode
[BEGIN NOTE]
Note
Spaces are not allowed in the VLAN name. The VLAN name is not used by other switches or nodes, but is a convenient reference for network administrators.
[END NOTE]
8. Enter the commands listed in Table 8-17 to assign a port to each of the two VLANs. When you're finished, close the switch's window.
Table 8-17 Assign a port to each VLAN
Command
Purpose
interface fastethernet0/1
Enters interface configuration mode for FastEthernet0/1
switchport mode access
Sets access mode for this port
switchport access vlan 10
Assigns this port to VLAN 10
exit
Returns to global configuration mode
interface fastethernet 0/3
Enters interface configuration mode for FastEthernet0/3
switchport mode access
Sets access mode for this port
switchport access vlan 11
Assigns this port to VLAN 11
exit
Returns to global configuration mode
interface fastethernet0/24
Enters interface configuration mode for FastEthernet0/24
switchport mode trunk and press Enter
Sets trunk mode for this port, which is connected to the other switch
exit
Returns to global configuration mode
Switch5 only: interface fastethernet0/2
Enters interface configuration mode for FastEthernet0/2
Switch5 only: switchport mode trunk and press Enter
Sets trunk mode for this port, which is connected to the router
Switch5 only: exit
Returns to global configuration mode
do show vlan
Shows configured VLANs and associated ports—confirm that VLAN 10 and VLAN 11 are configured correctly, then press Tab
exit and press Enter
Returns to privileged EXEC mode
copy run start and press Enter
Saves the current settings
9. Repeat Steps 4 - 8 for Switch6.
Now you have the VLANs configured on both switches. Let's shift to the router to configure inter-VLAN routing and DHCP services. Complete the following steps:
10. Click Router2 and then click the Config tab. In the left pane, click FastEthernet0/0. Delete the IP address and subnet mask information.
11. Click the CLI tab. Enter the commands listed in Table 8-18 to configure a sub-interface for each VLAN using two subnets of the original subnet for this network.
Table 8-18 Create two sub-interfaces, each with their own subnet
Command
Purpose
enable
Enters privileged EXEC mode
configure terminal
Enters global configuration mode
interface fastethernet1/0.10 and press Enter again
Creates the sub-interface and enters interface configuration mode
encapsulation dot1Q 10
Sets encapsulation
ip address 192.168.43.97 255.255.255.248
Assigns network information to the sub-interface
exit
Returns to global configuration mode
interface fastethernet1/0.11 and press Enter again
Creates the sub-interface and enters interface configuration mode
encapsulation dot1Q 11
Sets encapsulation
ip address 192.168.43.105 255.255.255.248
Assigns network information to the sub-interface
exit
Returns to global configuration mode
12. Next, configure DHCP on the router. Enter the commands listed in Table 8-19. When you're finished, close the router's window.
Table 8-19 Configure DHCP pools on a router
Command
Purpose
ip dhcp pool FIRST
Creates the first DHCP pool and enters DHCP configuration mode
network 192.168.43.96 255.255.255.248
Defines network information for the DHCP pool
default-router 192.168.43.97
Defines the default router for the DHCP pool
ip dhcp pool SECOND
Creates the second DHCP pool and enters DHCP configuration mode
network 192.168.43.104 255.255.255.248
Defines network information for the DHCP pool
default-router 192.168.43.105
Defines the default router for the DHCP pool
exit
Returns to global configuration mode
exit and press Enter
Returns to privileged EXEC mode
copy run start and press Enter
Saves the current settings
13. Test your DHCP configurations. Click on PC5, Desktop, and IP Configuration. This PC is currently configured with a static IP address. Select DHCP and wait while the DHCP request is resolved. What network information was assigned to PC5?
Answer:
IP Address: 192.168.43.98
Subnet Mask: 255.255.255.248
Default Gateway: 192.168.43.96
14. Repeat Step 13 for the other three PCs on these VLANs. What network information was assigned to PC9, PC10, and PC11?
Answer:
PC9 IP Address: 192.168.43.106
Subnet Mask 255.255.255.248
Default Gateway: 192.168.43.105
PC10 IP Address: 192.168.43.99
Subnet Mask: 255.255.255.248
Default Gateway: 192.168.43.96
PC11 IP Address: 192.168.43.107
Subnet Mask: 255.255.255.248
Default Gateway: 192.168.43.105
15. Ping PC9 from PC5. Does it work? Why do you think this is?
Answer: No. They're on different VLANs.
16. Ping PC10 from PC5. Does it work? Why do you think this is?
Answer: Yes. They're on the same VLAN.
17. Click File, Save as, and save this Packet Tracer file in a safe place for future projects.
Add installation information to the Packet Tracer page on your Wikidot website, along with any notes that you think might be helpful to you for the next Packet Tracer project. When you're finished, close Packet Tracer.
Project Management The Managerial Process
ISBN: 9781260570434
8th Edition
Authors: Eric W Larson, Clifford F. Gray