4.5.1 Packet Tracer – Inter-VLAN Routing Challenge (Instructions Answer)

Packet Tracer Packet Tracer Labs Original source

4.5.1 Packet Tracer - Inter-VLAN Routing Challenge Answers

Topology

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.

Device Configs - Final

ROUTER R1

Copy

! ==============================================================

!--- 4.5.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



! --------------------------------------------------------------

!--- Assign IP addressing to R1.

! --------------------------------------------------------------



!--- G0/0: /30 link toward the HQ network and the Server. The default route (S* 0.0.0.0/0 via G0/0) is preconfigured, so the Server is reachable once G0/0 is up.

interface gigabitethernet 0/0

 ip address 172.17.25.2 255.255.255.252

 no shutdown

 exit



! --------------------------------------------------------------

!--- Configure inter-VLAN routing on R1.

! --------------------------------------------------------------



!--- Enable the physical interface; the subinterfaces come up with it.

interface gigabitethernet 0/1

 no shutdown

 exit



!--- One 802.1Q subinterface per VLAN, gateway address from the Addressing Table.

interface gigabitethernet 0/1.10

 encapsulation dot1Q 10

 ip address 172.17.10.1 255.255.255.0

 exit

interface gigabitethernet 0/1.20

 encapsulation dot1Q 20

 ip address 172.17.20.1 255.255.255.0

 exit

interface gigabitethernet 0/1.30

 encapsulation dot1Q 30

 ip address 172.17.30.1 255.255.255.0

 exit



!--- VLAN 88 is the native VLAN on the S1 trunk, so this subinterface carries the "native" keyword.

interface gigabitethernet 0/1.88

 encapsulation dot1Q 88 native

 ip address 172.17.88.1 255.255.255.0

 exit



!--- VLAN 99: gateway for the S1 management SVI.

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 ip route            -> five connected /24 VLAN networks + 172.17.25.0/30, S* 0.0.0.0/0 via G0/0

!---   ping 172.17.99.10 (S1) and ping 172.17.50.254 (Server) -> successful

! ==============================================================

SWITCH S1

Copy

! ==============================================================

!--- 4.5.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



! --------------------------------------------------------------

!--- Create, name, and assign VLANs.

! --------------------------------------------------------------



!--- VLAN names typed exactly as in the VLAN and Port Assignments Table.

vlan 10

 name Faculty/Staff

 exit

vlan 20

 name Students

 exit

vlan 30

 name Guest(Default)

 exit

vlan 88

 name Native

 exit

vlan 99

 name Management

 exit



!--- Access ports: F0/11-17 VLAN 10, F0/18-24 VLAN 20, F0/6-10 VLAN 30.

interface range fastethernet 0/11 - 17

 switchport mode access

 switchport access vlan 10

 exit

interface range fastethernet 0/18 - 24

 switchport mode access

 switchport access vlan 20

 exit

interface range fastethernet 0/6 - 10

 switchport mode access

 switchport access vlan 30

 exit



! --------------------------------------------------------------

!--- Configure G0/1 as a static trunk with native VLAN 88.

! --------------------------------------------------------------



interface gigabitethernet 0/1

 switchport mode trunk

 switchport trunk native vlan 88

 exit



! --------------------------------------------------------------

!--- Assign IP addressing and the default gateway on S1.

! --------------------------------------------------------------



!--- Management SVI in VLAN 99; R1 G0/1.99 is the default gateway.

interface vlan 99

 ip address 172.17.99.10 255.255.255.0

 no shutdown

 exit

ip default-gateway 172.17.99.1



! --------------------------------------------------------------

!--- Disable all ports that are not assigned to a VLAN.

! --------------------------------------------------------------



!--- F0/1-5 and G0/2 are the only unassigned ports.

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 10 Fa0/11-17, VLAN 20 Fa0/18-24, VLAN 30 Fa0/6-10

!---   show interfaces trunk  -> Gig0/1 on, trunking, native VLAN 88

!---   ping 172.17.99.1 (R1) and ping 172.17.50.254 (Server) -> successful

! ==============================================================

Download Packet Tracer (.pka) file:

Icon

4.5.1 Packet Tracer - Inter-VLAN Routing Challenge.pka 693.34 KB 13008 downloads

...

Download

Previous Lab
4.4.9 Packet Tracer – Troubleshoot Inter-VLAN Routing – Physical Mode

Next Lab
5.1.9 Packet Tracer – Investigate STP Loop Prevention

← All Packet Tracer articles Home