1.2.1 Packet Tracer - Inter-VLAN Routing Challenge (Answers)

1.2.1 Packet Tracer - Inter-VLAN Routing Challenge (Answers)

Topology

1.2.1 Packet Tracer - Inter-VLAN Routing Challenge

1.2.1 Packet Tracer - Inter-VLAN Routing Challenge

Addressing Table

Device Interface IP Address Subnet Mask Default Gateway
R1 G0/0 172.17.25.2 255.255.255.252 N/A
G0/1.10 172.17.10.1 255.255.255.0
G0/1.20 172.17.20.1 255.255.255.0
G0/1.30 172.17.30.1 255.255.255.0
G0/1.88 172.17.88.1 255.255.255.0
G0/1.99 172.17.99.1 255.255.255.0
S1 VLAN 99 172.17.99.10 255.255.255.0 172.17.99.1
PC1 NIC 172.17.10.21 255.255.255.0 172.17.10.1
PC2 NIC 172.17.20.22 255.255.255.0 172.17.20.1
PC3 NIC 172.17.30.23 255.255.255.0 172.17.30.1
Server NIC 172.17.50.254 255.255.255.0 172.17.50.1

VLAN and Port Assignments Table

VLAN Name Interface
10 Faculty/Staff F0/11-17
20 Students F0/18-24
30 Guest(Default) F0/6-10
88 Native G0/1
99 Management VLAN 99

Scenario

In this activity, you will demonstrate and reinforce your ability to implement inter-VLAN routing, including configuring IP addresses, VLANs, trunking, and subinterfaces.

Instructions

Configure the devices to meet the following requirements.

  • Assign IP addressing to R1 and S1 based on the Addressing Table.
  • Configure the default gateway on S1.
  • Create, name, and assign VLANs on S1 based on the VLAN and Port Assignments Table. Ports should be in access mode. Your VLAN names should match the names in the table exactly.
  • Configure G0/1 of S1 as a static trunk and assign the native VLAN.
  • All ports that are not assigned to a VLAN should be disabled.
  • Configure inter-VLAN routing on R1 based on the Addressing Table.
  • Verify connectivity. R1, S1, and all PCs should be able to ping each other and the server.

Device Configs - Final

SWITCH S1

! ==============================================================
!--- 1.2.1 Packet Tracer - Inter-VLAN Routing Challenge
!--- ANSWER SCRIPT FOR SWITCH S1
!--- Usage: copy this whole file and paste it into the S1 terminal (start at the S1> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 1: Assign IP addressing to S1 and configure the default gateway.
! --------------------------------------------------------------

!--- Management SVI - VLAN 99.
interface vlan 99
 ip address 172.17.99.10 255.255.255.0
 no shutdown
 exit

!--- Default gateway so S1 itself can be managed/pinged from other VLANs.
ip default-gateway 172.17.99.1

! --------------------------------------------------------------
!--- Part 2: Create and name the VLANs. Names are CASE-SENSITIVE and must match exactly.
! --------------------------------------------------------------

!--- VLAN 10: Faculty/Staff
vlan 10
 name Faculty/Staff
 exit

!--- VLAN 20: Students
vlan 20
 name Students
 exit

!--- VLAN 30: Guest(Default)
vlan 30
 name Guest(Default)
 exit

!--- VLAN 88: Native
vlan 88
 name Native
 exit

!--- VLAN 99: Management
vlan 99
 name Management
 exit

! --------------------------------------------------------------
!--- Part 3: Assign the active ports on S1 to their VLANs (access mode).
! --------------------------------------------------------------

!--- F0/11-17 - VLAN 10 (Faculty/Staff).
interface range fastethernet 0/11 - 17
 switchport mode access
 switchport access vlan 10
 exit

!--- F0/18-24 - VLAN 20 (Students).
interface range fastethernet 0/18 - 24
 switchport mode access
 switchport access vlan 20
 exit

!--- F0/6-10 - VLAN 30 (Guest(Default)).
interface range fastethernet 0/6 - 10
 switchport mode access
 switchport access vlan 30
 exit

! --------------------------------------------------------------
!--- Part 4: Configure G0/1 as a static trunk and set the native VLAN.
! --------------------------------------------------------------

!--- G0/1 - trunk to R1, native VLAN 88 per the VLAN table.
interface gigabitethernet 0/1
 switchport mode trunk
 switchport trunk native vlan 88
 exit

! --------------------------------------------------------------
!--- Part 5: Disable every port that is not assigned to a VLAN.
! --------------------------------------------------------------

!--- F0/1-5 and G0/2 - unused ports (not in the VLAN table). Shut them down.
interface range fastethernet 0/1 - 5, gigabitethernet 0/2
 shutdown
 exit

end

! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config


! ==============================================================
!--- Verification:
!---   show vlan brief          -> VLAN name, status and the ports assigned to each
!---   show interfaces trunk    -> confirms G0/1 is trunking with native VLAN 88
!---   show ip interface brief  -> confirms the VLAN 99 SVI is up/up
!---   ping 172.17.99.1         -> default gateway (R1 sub-interface G0/1.99)
!---   ping 172.17.10.21        -> PC1, reached through the default-gateway route
! ==============================================================

Router R1

! ==============================================================
!--- 1.2.1 Packet Tracer - Inter-VLAN Routing Challenge
!--- ANSWER SCRIPT FOR ROUTER R1
!--- Usage: copy this whole file and paste it into the R1 terminal (start at the R1> prompt). Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless.
! ==============================================================

enable
configure terminal

! --------------------------------------------------------------
!--- Part 1: Bring up the physical interfaces and assign IP addressing
!--- to R1 based on the Addressing Table.
! --------------------------------------------------------------

!--- G0/0 - point-to-point uplink (/30). Listed in the Addressing Table
!--- but missing from the original answer key; added here.
interface gigabitethernet 0/0
 ip address 172.17.25.2 255.255.255.252
 no shutdown
 exit

!--- G0/1 - physical trunk link to S1. Must be up for every
!--- subinterface below to pass traffic.
interface gigabitethernet 0/1
 no shutdown
 exit

! --------------------------------------------------------------
!--- Part 2: Configure inter-VLAN routing (router-on-a-stick subinterfaces).
! --------------------------------------------------------------

!--- Subinterface for VLAN 10 (Faculty/Staff).
interface gigabitethernet 0/1.10
 encapsulation dot1Q 10
 ip address 172.17.10.1 255.255.255.0
 exit

!--- Subinterface for VLAN 20 (Students).
interface gigabitethernet 0/1.20
 encapsulation dot1Q 20
 ip address 172.17.20.1 255.255.255.0
 exit

!--- Subinterface for VLAN 30 (Guest(Default)).
interface gigabitethernet 0/1.30
 encapsulation dot1Q 30
 ip address 172.17.30.1 255.255.255.0
 exit

!--- Subinterface for VLAN 88 (Native) - must carry the "native" keyword
!--- so it matches S1's untagged native VLAN on the trunk.
interface gigabitethernet 0/1.88
 encapsulation dot1Q 88 native
 ip address 172.17.88.1 255.255.255.0
 exit

!--- Subinterface for VLAN 99 (Management).
interface gigabitethernet 0/1.99
 encapsulation dot1Q 99
 ip address 172.17.99.1 255.255.255.0
 exit

end

! --------------------------------------------------------------
!--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.)
! --------------------------------------------------------------
copy running-config startup-config


! ==============================================================
!--- Verification:
!---   show ip interface brief  -> G0/0, G0/1 and all five subinterfaces up/up
!---   show interfaces trunk    -> run on S1; confirms VLANs 10/20/30/88/99 allowed
!---   ping 172.17.99.10        -> S1 management SVI
!---   ping 172.17.10.21 / 172.17.20.22 / 172.17.30.23  -> PC1 / PC2 / PC3
!--- Note: the Server (172.17.50.254/24) sits beyond G0/0. Reaching it also
!--- requires the device on the far side of that /30 link to have a return
!--- route to 172.17.10/20/30/88/99.0/24 - outside this file's scope.
! ==============================================================

Download 1.2.1 Packet Tracer - Inter-VLAN Routing Challenge .PDF file:

Subscribe
Notify of
guest

0 Corrections & Clarifications