SlideShare a Scribd company logo
1
LAB Inter-VLAN Routing
Objective
• Create a basic switch configuration and verify it
• Create multiple VLANs, name them and assign multiple member ports to them
• Create a basic configuration on a router
• Create an 802.1q trunk line between the switch and router to allow communication between
VLANs
• Test the routing functionality
Background/Preparation
When managing a switch, the Management Domain is always VLAN 1. The Network
Administrator's workstation must have access to a port in the VLAN 1 Management Domain. All
ports are assigned to VLAN 1 by default. This lab will also help demonstrate how VLANs can be
used to separate traffic and reduce broadcast domains.
Cable a network similar to the one in the diagram. The router has to be from the 2600 series.
The configuration output used in this lab is produced from a 2950 series switch. Any other
switch used may produce different output. T
2
Note: The router used must have a Fast Ethernet interface in order to
support trunking and inter-VLAN routing. The 2500 series router cannot be
used for this lab. Go to the erase and reload instructions. Perform those
steps on all switches in this lab assignment before continuing.
Step 1 Configure the switch
Configure the hostname, access, and command mode passwords, as well as the management
LAN settings. These values are shown in the chart. If problems occur while performing this
configuration, refer to previous laborations.
Step 2 Configure the hosts attached to the switch
Configure the hosts using the following information.
a. For the host in port 0/5:
IP address 192.168.5.2
Subnet mask 255.255.255.0
Default gateway 192.168.5.1
b. For the host in port 0/9:
IP address 192.168.7.2
Subnet mask 255.255.255.0
Default gateway 192.168.7.1
Step 3 Verify connectivity
a. To verify that the host and switch are correctly configured, ping the switch from the hosts.
b. Ping the switch IP address from the hosts.
c. Were the pings successful? __________________________________________
d. Why or why not? __________________________________________________
Step 4 Create and name two VLANs
Enter the following commands to create and name two VLANs:
Switch_A#vlan database
Switch_A(vlan)#vlan 10 name Sales
Switch_A(vlan)#vlan 20 name Support
Switch_A(vlan)#exit
Step 5 Assign ports to VLAN 10
Assigning ports to VLANs must be done from the interface mode. Enter the following
commands to add ports 0/5 to 0/8 to VLAN 10:
Switch_A#configure terminal
Switch_A(config)#interface fastethernet 0/5
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
3
Switch_A(config-if)#interface fastethernet 0/6
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#interface fastethernet 0/7
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#interface fastethernet 0/8
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#end
Step 6 Assign ports to VLAN 20
Enter the following commands to add ports 0/9 to 0/12 to VLAN 20:
Switch_A#configure terminal
Switch_A(config)#interface fastethernet 0/9
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 20
Switch_A(config-if)#interface fastethernet 0/10
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 20
Switch_A(config-if)#interface fastethernet 0/11
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 20
Switch_A(config-if)#interface fastethernet0/12
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 20
Switch_A(config-if)#end
Step 7 Display the VLAN interface information
a. On Switch_A, type the command show vlan at the privileged EXEC prompt as follows:
Switch_A#show vlan
b. Are ports assigned correctly? ________________________________________
Step 8 Create the trunk
On Switch_A, type the following commands at the Fast Ethernet 0/1 interface command
prompt.
Switch_A(config)#interface fastethernet0/1
Switch_A(config-if)#switchport mode trunk
Switch_A(config-if)#end
4
Step 9 Configure the router
a. Configure the router with the following data. Note that, in order to support trunking and
inter-VLAN routing, the router must have a Fast Ethernet interface.
Hostname is Router_A
Console, VTY, and enable passwords are cisco.
Enable secret password is class.
b. Then configure the Fast Ethernet interface using the following commands:
Router_A(config)#interface fastethernet 0/0
Router_A(config-if)#no shutdown
Router_A(config-if)#interface fastethernet 0/0.1
Router_A(config-subif)#encapsulation dot1q 1
Router_A(config-subif)#ip address 192.168.1.1 255.255.255.0
Router_A(config-if)#interface fastethernet 0/0.2
Router_A(config-subif)#encapsulation dot1q 10
Router_A(config-subif)#ip address 192.168.5.1 255.255.255.0
Router_A(config-if)#interface fastethernet 0/0.3
Router_A(config-subif)#encapsulation dot1q 20
Router_A(config-subif)#ip address 192.168.7.1 255.255.255.0
Router_A(config-subif)#end
Step 10 Save the router configuration
Step 11 Display the router routing table
a. Type show ip route at the privileged EXEC mode prompt.
b. Are there entries in the routing table? ___________________________________
c. What interface are they all pointing to? __________________________________
d. Why is there not a need to run a routing protocol? __________________________
Step 12 Test the VLANs and the trunk
Ping from the host in Switch_A port 0/9 to the host in port 0/5.
a. Was the ping successful? ___________________________________________
b. Why? __________________________________________________________
Ping from the host in Switch_A port 0/5 to the switch IP 192.168.1.2.
c. Was the ping successful? ___________________________________________
Step 13 Move the hosts
a. Move the hosts to other VLANs and try pinging the management VLAN 1.
b. Note the results of the pinging.
Once the steps are complete, erase the startup configuration, logoff by typing exit, and turn
all the devices off. Then remove and store the cables and adapter.

More Related Content

PDF
Cisco labs practical4
PDF
Cisco labs practical6
DOC
Cisco 2960 basic configuration – vlan configuration
PDF
Cisco labs practical1
PDF
Ccna Commands In 10 Minutes
PDF
Cisco labs practical3
PDF
Vo ip avanzado pt
PPT
Cap6 intervlan routing
Cisco labs practical4
Cisco labs practical6
Cisco 2960 basic configuration – vlan configuration
Cisco labs practical1
Ccna Commands In 10 Minutes
Cisco labs practical3
Vo ip avanzado pt
Cap6 intervlan routing

What's hot (20)

PPTX
Cisco CCNA-Router on Stick
DOCX
Configuración del dial peer
PDF
CCNA Lab 2-Configuring a Switch Part II
PDF
CCNA - Routing & Switching Commands
PDF
CCNA Lab 1-Configuring a Switch Part I
PDF
Huawei ARG3 Router How To - Troubleshooting OSPF: Router ID Confusion
DOCX
Ccna 2 rse practice skills assessment
PDF
Huawei ARG3 Router How To - Troubleshooting OSPF: Netmask mismatch
DOC
Lab 6.4.1 InterVLAN routing
PPTX
Router configuration in packet tracer
PDF
Vlan lab
PPSX
Packet Tracer Tutorial # 2
DOCX
Cisco Network and Engineering
DOCX
How to configure vlan, stp, dtp step by step guide
DOC
Router commands
PDF
0.0.0.1 lab initializing and reloading a router and switch - ilm
DOCX
Ccna command
PDF
3.4.6-lab---configure-vlans-and-trunking.pdf
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 5
DOCX
CCNA- Router on stick, VLAN and Trunking
Cisco CCNA-Router on Stick
Configuración del dial peer
CCNA Lab 2-Configuring a Switch Part II
CCNA - Routing & Switching Commands
CCNA Lab 1-Configuring a Switch Part I
Huawei ARG3 Router How To - Troubleshooting OSPF: Router ID Confusion
Ccna 2 rse practice skills assessment
Huawei ARG3 Router How To - Troubleshooting OSPF: Netmask mismatch
Lab 6.4.1 InterVLAN routing
Router configuration in packet tracer
Vlan lab
Packet Tracer Tutorial # 2
Cisco Network and Engineering
How to configure vlan, stp, dtp step by step guide
Router commands
0.0.0.1 lab initializing and reloading a router and switch - ilm
Ccna command
3.4.6-lab---configure-vlans-and-trunking.pdf
CCNA 2 Routing and Switching v5.0 Chapter 5
CCNA- Router on stick, VLAN and Trunking
Ad

Similar to Switch inter vlan_routing (20)

PDF
Cisco labs practical7
DOC
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02
DOC
Lab practice 1 configuring basic routing and switching (with answer)
PDF
Ccna3 lab 9_1_5b_en
PDF
Exercise 4c stp rapid pvst+ question
PDF
corporate network
PDF
Network topology by essay corp uk
PDF
Hướng dẫn cài đặt switch planet layer 3
PDF
Cisco Packet Tracer- SRWE_Module_4_Inter_VLAN.pdf
PDF
Practica_Configuracion_Basica_SW_Cisco
DOC
Ccna 1 chapter 11 v4.0 answers 2011
PDF
Ccna icnd2-labs exercices
PDF
Interconnecting cisco networking devices part-2
PDF
Tema3
DOCX
Pe1 configuring pvst+ rapid pvst+
DOC
How to Configure QinQ?
PDF
CCNAv5 - S2: Chapter5 Inter Vlan Routing
PPTX
KPUCC-Rs instructor ppt_chapter5_final
Cisco labs practical7
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02
Lab practice 1 configuring basic routing and switching (with answer)
Ccna3 lab 9_1_5b_en
Exercise 4c stp rapid pvst+ question
corporate network
Network topology by essay corp uk
Hướng dẫn cài đặt switch planet layer 3
Cisco Packet Tracer- SRWE_Module_4_Inter_VLAN.pdf
Practica_Configuracion_Basica_SW_Cisco
Ccna 1 chapter 11 v4.0 answers 2011
Ccna icnd2-labs exercices
Interconnecting cisco networking devices part-2
Tema3
Pe1 configuring pvst+ rapid pvst+
How to Configure QinQ?
CCNAv5 - S2: Chapter5 Inter Vlan Routing
KPUCC-Rs instructor ppt_chapter5_final
Ad

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Basic Mud Logging Guide for educational purpose
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
RMMM.pdf make it easy to upload and study
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Institutional Correction lecture only . . .
PDF
Computing-Curriculum for Schools in Ghana
PPTX
GDM (1) (1).pptx small presentation for students
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Complications of Minimal Access Surgery at WLH
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Renaissance Architecture: A Journey from Faith to Humanism
Sports Quiz easy sports quiz sports quiz
Basic Mud Logging Guide for educational purpose
Insiders guide to clinical Medicine.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
01-Introduction-to-Information-Management.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
STATICS OF THE RIGID BODIES Hibbelers.pdf
Pharma ospi slides which help in ospi learning
RMMM.pdf make it easy to upload and study
O7-L3 Supply Chain Operations - ICLT Program
Institutional Correction lecture only . . .
Computing-Curriculum for Schools in Ghana
GDM (1) (1).pptx small presentation for students
TR - Agricultural Crops Production NC III.pdf
Supply Chain Operations Speaking Notes -ICLT Program

Switch inter vlan_routing

  • 1. 1 LAB Inter-VLAN Routing Objective • Create a basic switch configuration and verify it • Create multiple VLANs, name them and assign multiple member ports to them • Create a basic configuration on a router • Create an 802.1q trunk line between the switch and router to allow communication between VLANs • Test the routing functionality Background/Preparation When managing a switch, the Management Domain is always VLAN 1. The Network Administrator's workstation must have access to a port in the VLAN 1 Management Domain. All ports are assigned to VLAN 1 by default. This lab will also help demonstrate how VLANs can be used to separate traffic and reduce broadcast domains. Cable a network similar to the one in the diagram. The router has to be from the 2600 series. The configuration output used in this lab is produced from a 2950 series switch. Any other switch used may produce different output. T
  • 2. 2 Note: The router used must have a Fast Ethernet interface in order to support trunking and inter-VLAN routing. The 2500 series router cannot be used for this lab. Go to the erase and reload instructions. Perform those steps on all switches in this lab assignment before continuing. Step 1 Configure the switch Configure the hostname, access, and command mode passwords, as well as the management LAN settings. These values are shown in the chart. If problems occur while performing this configuration, refer to previous laborations. Step 2 Configure the hosts attached to the switch Configure the hosts using the following information. a. For the host in port 0/5: IP address 192.168.5.2 Subnet mask 255.255.255.0 Default gateway 192.168.5.1 b. For the host in port 0/9: IP address 192.168.7.2 Subnet mask 255.255.255.0 Default gateway 192.168.7.1 Step 3 Verify connectivity a. To verify that the host and switch are correctly configured, ping the switch from the hosts. b. Ping the switch IP address from the hosts. c. Were the pings successful? __________________________________________ d. Why or why not? __________________________________________________ Step 4 Create and name two VLANs Enter the following commands to create and name two VLANs: Switch_A#vlan database Switch_A(vlan)#vlan 10 name Sales Switch_A(vlan)#vlan 20 name Support Switch_A(vlan)#exit Step 5 Assign ports to VLAN 10 Assigning ports to VLANs must be done from the interface mode. Enter the following commands to add ports 0/5 to 0/8 to VLAN 10: Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/5 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10
  • 3. 3 Switch_A(config-if)#interface fastethernet 0/6 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/7 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/8 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#end Step 6 Assign ports to VLAN 20 Enter the following commands to add ports 0/9 to 0/12 to VLAN 20: Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/9 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/10 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/11 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet0/12 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#end Step 7 Display the VLAN interface information a. On Switch_A, type the command show vlan at the privileged EXEC prompt as follows: Switch_A#show vlan b. Are ports assigned correctly? ________________________________________ Step 8 Create the trunk On Switch_A, type the following commands at the Fast Ethernet 0/1 interface command prompt. Switch_A(config)#interface fastethernet0/1 Switch_A(config-if)#switchport mode trunk Switch_A(config-if)#end
  • 4. 4 Step 9 Configure the router a. Configure the router with the following data. Note that, in order to support trunking and inter-VLAN routing, the router must have a Fast Ethernet interface. Hostname is Router_A Console, VTY, and enable passwords are cisco. Enable secret password is class. b. Then configure the Fast Ethernet interface using the following commands: Router_A(config)#interface fastethernet 0/0 Router_A(config-if)#no shutdown Router_A(config-if)#interface fastethernet 0/0.1 Router_A(config-subif)#encapsulation dot1q 1 Router_A(config-subif)#ip address 192.168.1.1 255.255.255.0 Router_A(config-if)#interface fastethernet 0/0.2 Router_A(config-subif)#encapsulation dot1q 10 Router_A(config-subif)#ip address 192.168.5.1 255.255.255.0 Router_A(config-if)#interface fastethernet 0/0.3 Router_A(config-subif)#encapsulation dot1q 20 Router_A(config-subif)#ip address 192.168.7.1 255.255.255.0 Router_A(config-subif)#end Step 10 Save the router configuration Step 11 Display the router routing table a. Type show ip route at the privileged EXEC mode prompt. b. Are there entries in the routing table? ___________________________________ c. What interface are they all pointing to? __________________________________ d. Why is there not a need to run a routing protocol? __________________________ Step 12 Test the VLANs and the trunk Ping from the host in Switch_A port 0/9 to the host in port 0/5. a. Was the ping successful? ___________________________________________ b. Why? __________________________________________________________ Ping from the host in Switch_A port 0/5 to the switch IP 192.168.1.2. c. Was the ping successful? ___________________________________________ Step 13 Move the hosts a. Move the hosts to other VLANs and try pinging the management VLAN 1. b. Note the results of the pinging. Once the steps are complete, erase the startup configuration, logoff by typing exit, and turn all the devices off. Then remove and store the cables and adapter.