LAB 8 CREATE VLANS USING IPV4 IN PACKET TRACER

docx

School

Oakland University *

*We aren’t endorsed by this school

Course

4130

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

19

Uploaded by kegreve

Report
LAB 8: CREATE VLANS USING IPV4 IN PACKET TRACER Objectives The goal of this lab is to implement multiple VLANs (Virtual Local Area Networks) using VLSM (Variable Length Subnet Mask) to segment a given network address. After completing this lab, you will be able to: Implement VLANs in Cisco Packet Tracer Materials Required This lab requires the following: Computer with Windows 10/8/7 with Cisco Packet Tracer installed Pencil and paper to perform subnet calculations Lab Preparation Verify computer works with no errors Verify Cisco Packet Tracer is installed and functioning ESTIMATED COMPLETION TIME: 75 MINUTES Activity Background As you learned in Lab 1 for Chapter 8, a well-designed network should work transparently for the end user, allowing them to connect to various resources on the LAN (local area network). This lab will implement the small library network that you subnetted in Lab 8.1. Three separate networks will be created using a Cisco 1841 router, Cisco Catalyst 2960 switch and generic 802.11AC wireless access point. The network needs to be segmented for a staff network, patron network, and public wireless network using a VLSM (variable length subnet mask). The router will be configured to serve DHCP (Dynamic Host Control Protocol) addresses to the three VLANs (virtual local area networks). In this lab, we will use Cisco Packet Tracer (PT) to create the networks using VLSM, DHCP and VLANs. Notes You first installed Packet Tracer in Capstone Project 6-1 in the text. If you don’t have Packet Tracer installed on your computer, follow the directions in that project to install it before you do this lab. Activity Part 1: Create the Network Scheme Follow these steps to create a network scheme:
1. Using the information in Tables 1 and 2, assign static IP addresses to the three router sub- interfaces for each VLAN and the two printer interfaces listed in Table 3. Keep these facts in mind as you complete Table 3: The router sub-interfaces (FastEthernet0/0.xxx, where xxx is the assigned VLAN) require the first available host address on the network segment. Both printers use the last available host address on their respective network segment. All other devices will use DHCP or do not need an IP address defined for this lab. Table 1 IP addresses and subnet masks for three VLANs Network VLAN First Available Host Last Available Host Subnet Mask Staff 100 192.168.100.193 192.168.100.254 255.255.255.192 Patron 110 192.168.100.129 192.168.100.190 255.255.255.192 Public Wireless 120 192.168.100.1 192.168.100.126 255.255.255.128 Table 2 DHCP, subnet masks, and default gateways for three VLANs Network DHCP Range Subnet Mask Default Gateway Staff 192.168.100.208 - 244 255.255.255.192 192.168.100.193 Patron 192.168.100.139 - 180 255.255.255.192 192.168.100.129 Public Wireless 192.168.100.6 - 121 255.255.255.128 192.168.100.1 Table 3 TCP/IP settings for router and two printers Device Interface IP Address Subnet Mask Default Gateway Router FastEthernet0/0.100 n/a FastEthernet0/0.110 n/a FastEthernet0/0.120 n/a Staff Printer FastEthernet0 Patron Printer FastEthernet0 You will need the information in Tables 1, 2, and 3 as you work through the rest of the lab. Activity
Part 2: Build the Network in Packet Tracer Follow these steps to build the network in Packet Tracer: 1. Add the following devices. Arrange the devices as shown in Figure 1. Do not worry about configuring any of the devices yet. Cisco 1841 Router Cisco 2960 Switch Generic AccessPoint-PT-AC Four Generic PC-PT Desktop Computers Two Generic Printer-PT Printers Smart Device SMARTPHONE-PT Smartphone Wireless Tablet TabletPC-PT Tablet PC
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Figure 1: Arrangement of devices in Packet Tracer 2. Use Copper Straight-Through cables to connect the devices (except the two wireless devices) to ports on the switch, as listed in Table 4. Be sure each device is connected to the correct switch port. Packet Tracer Device Type Device Port Switch Port Device Name 1841 FastEthernet0/0 FastEthernet0/24 LibraryRTR 2960-24TT n/a n/a LibrarySW AccessPoint-PT-AC Port 0 GigabitEthernet 0/1 LibraryAP PC-PT FastEthernet0 FastEthernet0/1 Staff01 PC-PT FastEthernet0 FastEthernet0/2 Staff02 Printer-PT FastEthernet0 FastEthernet0/22 StaffPrinter PC-PT FastEthernet0 FastEthernet0/11 Patron01 PC-PT FastEthernet0 FastEthernet0/12 Patron02 Printer-PT FastEthernet0 FastEthernet0/23 PatronPrinter SMARTPHONE-PT Wireless n/a PublicSmartphone TabletPC-PT Wireless n/a PublicTabletPC
Table 4 Device ports, interfaces, and names 3. Change each device name as shown in the Device Name column in Table 4. 4. You’re now ready to set up the VLAN Database on the router. Click on the LibraryRTR (1841 Router) and click the Config tab. In the left pane, click VLAN Database. 5. Create three VLANs, one for Staff, one for Patron and one for PublicWireless: Enter the following information for the first new VLAN, and then click Add : VLAN Number: 100 VLAN Name:Staff Enter the following information for the second new VLAN, and then click Add : VLAN Number: 110 VLAN Name:Patron Enter the following information for the third new VLAN, and then click Add : VLAN Number: 120 VLAN Name:PublicWireless b. Confirm that the three new VLANs appear in the middle pane as shown in Figure 2.
Figure 2: LibraryRTR VLAN configuration in Packet Tracer c. Repeat steps 5 and 6 on the LibrarySW (2960-24TT switch) to add three new VLANs to the VLAN Database on the switch. d. You are now ready to assign each interface on the switch to a VLAN. Let’s start with the Staff01 (PC-PT) workstation. On the LibrarySW Config tab, click the Interface FastEthernet 0/1 to select it. In the dropdown menu, select Access mode. In the VLAN dropdown menu, select 100:Staff (see Figure 3).
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Figure 3: LibrarySW FastEthernet0/1 VLAN Interface configuration in Packet Tracer e. Now configure the remaining 7 wired devices, as shown in Table 5. Table 5 VLAN assignments for each interface Device Interface Mode VLAN Staff01 FastEthernet0/1 Access 100 Staff02 FastEthernet0/2 Access 100 StaffPrinter FastEthernet0/22 Access 100 Patron01 FastEthernet0/11 Access 110 Patron02 FastEthernet0/12 Access 110
PatronPrinte r FastEthernet0/23 Access 110 LibraryRTR FastEthernet0/24 Trunk LibraryAP GigabitEthernet0/1 Access 120 10. You’re now ready to configure the router to send traffic between VLANs. To do this, you have to configure a sub-interface on the router for each VLAN. Basically, this means you’re dividing the one physical interface into three logical interfaces. Click LibraryRTR . 11. Click the CLI tab. Before you can configure the router interface, you must be in the correct command mode, which is indicated by the CLI prompt. Table 6 lists important prompts, modes, and commands to manage the interface. Read over the table so you are familiar with how to use the five commands, enable, exit, conf t, copy run start, and sh run that you might need to change modes or view/save the configuration settings. After you type a command, press Enter to execute it. Notes When you first access the CLI on a Cisco device that has not yet been configured, answer no if you see a dialog box that says, “Would you like to enter the initial configuration dialog? [yes/no]:”. Then continue to configure the device manually. Table 6 CLI prompts and the commands needed to change modes Prompts and Commands Description Router> The prompt indicates User EXEC mode, which has few privileges. Router> enable Router# Use the enable command to change from User EXEC mode to the more powerful Privileged EXEC mode. Router# conf t Router(config)# The prompt indicates the mode is Privileged EXEC mode. Use the conf t command to enter global configuration mode. Router(config)# The prompt indicates global configuration mode, used to configure the router. Router(config-if)# The prompt indicates interface mode, used to configure a router interface. Router(vlan)# exit The prompt indicates VLAN mode, used to configure a VLAN. Use the exit command at any time to return to Privileged EXEC mode. You might need to enter the command more than once. Router# copy run start Destination filename [startup- config]? The prompt indicates the mode is Privileged EXEC mode. The copy run start command saves the current settings so they will be reinstated after the next boot. By default, the settings are saved to the startup-config file. Press Enter to accept the default name. Router# sh run The prompt indicates the mode is Privileged EXEC mode. The sh run command displays the current configuration and is useful to verify
your work and check for errors. Press Enter to advance one line at a time or Space to advance one page at a time through the command output. 12. What is the current CLI prompt you see in the CLI pane? Enter the command(s) as needed so that your prompt is Router(config)#. One example is shown in Figure 4. Figure 4: IOS Command Line Interface 13. Enter the commands listed in Table 7 to configure a sub-interface for each VLAN, using three subnets of the original subnet for this network. Use the IP addresses and subnet masks you listed in Table 3. Figure 4 shows the first sub-interface for VLAN 100 configured. Remember to press Enter after each command and don’t be concerned if the prompt changes as you work through the list of commands Table 7 Commands to configure the router sub-interface for each VLAN
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Command Purpose interface fastethernet0/0.100 Creates the sub-interface and enters interface configuration mode encapsulation dot1Q 100 Sets encapsulation ip address [ IP address ] [ subnet mask ] Assigns network information to the sub-interface. Use the IP address and subnet mask from Table 3. exit Returns to global configuration mode interface fastethernet0/0.110 Creates the sub-interface and enters interface configuration mode encapsulation dot1Q 110 Sets encapsulation ip address [ IP address ] [ subnet mask ] Assigns network information to the sub-interface. Use the IP address and subnet mask from Table 3. exit Returns to global configuration mode interface fastethernet0/0.120 Creates the sub-interface and enters interface configuration mode encapsulation dot1Q 120 Sets encapsulation ip address [ IP address ] [ subnet mask ] Assigns network information to the sub-interface. Use the IP address and subnet mask from Table 3. exit Returns to global configuration mode interface fastethernet0/0 Enters the interface configuration mode no shut Enables the interface exit Returns to global configuration mode exit Returns to privileged EXEC mode and Router# prompt appears copy run start Destination filename [startup- config]? Saves the current settings. Accept the default name startup-config by pressing the Enter key. sh run Shows the configuration currently running on the router. Use the Enter key to advance one line at a time or use the Space key to advance one page at a time. Verify your configuration using Figure 5.
Figure 5: LibraryRTR sh run command verifying FastEthernet0/0 interface configuration 14. Return to global configuration mode by using commands in Table 6 as needed. 15. Next, configure DHCP on the router. Enter the global configuration mode commands listed in Table 8. When you’re finished, close the router’s window.
Table 8 DHCP configuration for each VLAN Command Purpose ip dhcp excluded- address 192.168.100.1 192.168.100.5 Excludes the IP address from the DHCP pool ip dhcp excluded- address 192.168.100.122 192.168.100.126 Excludes the IP address from the DHCP pool ip dhcp excluded- address 192.168.100.129 192.168.100.138 Excludes the IP address from the DHCP pool ip dhcp excluded- address 192.168.100.181 192.168.100.190 Excludes the IP address from the DHCP pool ip dhcp excluded- address 192.168.100.193 192.168.100.207 Excludes the IP address from the DHCP pool ip dhcp excluded- address 192.168.100.245 192.168.100.254 Excludes the IP address from the DHCP pool ip dhcp pool Staff Creates the first DHCP pool and enters DHCP configuration mode network 192.168.100.192 255.255.255.192 Defines network information for the DHCP pool default-router 192.168.100.193 Defines the default router for the DHCP pool exit Returns to global configuration mode ip dhcp pool Patron Creates the second DHCP pool and enters DHCP configuration mode network 192.168.100.128 255.255.255.192 Defines network information for the DHCP pool default-router 192.168.100.129 Defines the default router for the DHCP pool
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
exit Returns to global configuration mode ip dhcp pool PublicWireless Creates the third DHCP pool and enters DHCP configuration mode network 192.168.100.0 255.255.255.128 Defines network information for the DHCP pool default-router 192.168.100.1 Defines the default router for the DHCP pool exit Returns to global configuration mode exit Returns to privileged EXEC mode and Router# prompt appears copy run start Destination filename [startup-config]? Saves the current settings. Accept the default name by pressing the Enter key. sh run Shows the configuration currently running on the router. Use the Enter key to advance one line at a time or use the Space key to advance one page at a time. Verify configuration using Figure 8.
Figure 6: LibraryRTR sh run command verifying DHCP configuration 16. Now let’s configure some devices on the network. On the StaffPrinter Config tab, enter the Table 3 Default Gateway information on the Global Settings configuration panel (see Figure 7). Then click Interface FastEthernet0 (Figure 8-7) and enter the static IP information from Table 3. What is the IP address, subnet mask, and default gateway of the printer?
Figure 7: StaffPrinter default gateway configuration 17. Repeat step 16 for the PatronPrinter using the static IP information from Table 3. What is the IP address, subnet mask, and default gateway of the PatronPrinter?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
18. Test your DHCP configurations. Click on Staff01, 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 IP address, subnet mask, and default gateway was assigned to Staff01? If Staff01 did not lease an IP address in the correct range of IP addresses, troubleshoot the problem. Notes To troubleshoot a DHCP problem, begin by rechecking your dhcp configuration on the router using the sh run command. 19. Repeat step 18 for each of the three other desktop PCs and two public wireless devices. What is the default gateway address on each of the devices? Staff02: Patron01: Patron02: PublicSmartphone: PublicTabletPC:
20. On Patron01, select the Desktop tab, then Command Prompt . Ping the PatronPrinter. Does it work? Why do you think this is? 21. On PublicSmartphone, select the Desktop tab, then Command Prompt. Ping the StaffPrinter. Does it work? Why do you think this is? 22. Let’s change the switch port used to connect the Wi-Fi access point and see what happens. Click the green link/activity indicator on the LibrarySW side of the LibraryAP’s Copper Straight-Through Ethernet cable. Then click on the LibrarySW again and select the GigabitEthernet0/2 interface (see Figure 8) instead of the original GigabitEthernet0/1 interface. After the link turns green, repeat step 21. Does it work? Why do you think this is?
Figure 8: LibraryAP switch port interface connection change 23. Change the cable connecting the LibraryAP back to the GigabitEtherner0/1 port on the LibrarySW. Again, repeat step 21 after the link turns green. Does it work? Why do you think this is?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
24. Click File , Save as , and save this Packet Tracer file in a safe place for future projects.