SlideShare a Scribd company logo
2
Most read
3
Most read
22
Most read
CISCO CCNA
Router on Stick
To watch our Cisco CCNA Training Videos Please Check out the link below:
www.asmed.com/c1
ASM EDUCATIONAL CENTER INC. (ASM)
WHERE TRAINING, TECHNOLOGY & SERVICE CONVERGE
PHONE: (301) 984-7400
CISCO CCNA- Router on Stick
To see how router on a stick
works, build the following
topology:
CISCO CCNA-Router on Stick
First we need to change port fa0/24 to be a trunk port. We will be using 802.1q as the
trunking encapsulation.
Switch#conf t
 Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/24
Switch(config-if)#sw trunk encapsulation dot1q
Switch(config-if)#sw mode trunk
Switch(config-if)#
CISCO CCNA- Router on Stick
Port Mode Encapsulation Status Native vlan
Fa0/24 on 802.1q trunking 1
Let’s check the result on Switch
Switch#show int trunk
Switch#
CISCO CCNA- Router on Stick
Now, on the router we need to create the sub-interfaces for the two VLANs. A sub-interface
is created by referencing the interface name followed by a dot, followed by a unique number
in this format interface fa0/0.X We can choose any number for X and it does not have to be
sequential. However, normally we want to match the sub-interface number with the VLAN
number (known as VLAN ID).
 Don’t forget to bring the physical interface up.
CISCO CCNA- Router on Stick
Let’s take a look:
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#no shutdown
CISCO CCNA- Router on Stick
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to
up
Router(config-if)#exit
After we bring the interface up, we create the sub-interfaces and indicated to which VLAN
they belong to. We assign the Default Gateway IP address of the relevant VLAN to the
sub-interface.
CISCO CCNA- Router on Stick
Router(config)#interface fa0/0
Router(config)#interface fa0/0.?
<0-4294967295> FastEthernet interface number
Router(config)#int fa0/0.2
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
CISCO CCNA- Router on Stick
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0.2, changed state to up
Router(config-subif)#encapsulation dot
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip address 10.10.10.100 255.255.255.0
Router(config-subif)#exit
CISCO CCNA- Router on Stick
 The number coming after encapsulation dot1Q must
match the VLAN number (VLAN ID). 802.1q will TAG the
traffic coming from the VLAN with the VLAN ID. The router
looks at the TAG to determine which sub-interface the traffic
associated with.
CISCO CCNA- Router on Stick
Here is the configuration for VLAN 3:
Router(config)#interface fa0/0.3
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3,
changed state to up
CISCO CCNA- Router on Stick
Router(config-subif)#encapsulation dot1Q 3
Router(config-subif)#ip add 20.20.20.100 255.255.255.0
Router(config-subif)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
CISCO CCNA- Router on Stick
Here is our show run:
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
CISCO CCNA- Router on Stick
interface FastEthernet0/0.2
description this will act as DG=10.10.10.100 for VLAN2
encapsulation dot1Q 2
ip address 10.10.10.100 255.255.255.0
!
CISCO CCNA- Router on Stick
interface FastEthernet0/0.3
description This Will act as DG=20.20.20.100 for VLAN 3
encapsulation dot1Q 3
ip address 20.20.20.100 255.255.255.0
!
Hint:
Make sure do not give IP address to physical interface f0/0 but you always assign it to sub-
interface
CISCO CCNA- Router on Stick
 Check to see if we have the subnets in the routing table:
Router#sh ip route
Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP
i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area
* – candidate default, U – per-user static route, o – ODR
P – periodic downloaded static route
CISCO CCNA- Router on Stick
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, FastEthernet0/0.2
20.0.0.0/24 is subnetted, 1 subnets
C 20.20.20.0 is directly connected, FastEthernet0/0.3
Router#
CISCO CCNA- Router on Stick
 Note that the router connects the subnets to the virtual sub-
interfaces. Now the router can “Route” the traffic between different
broadcast domains, although the traffic is physically coming and going
over the same interface.
CISCO CCNA- Router on Stick
 We must configure the PC’s with the correct IP address and Default Gateway
values:
CISCO CCNA- Router on Stick
As before the switch is configured with the correct VLAN’s and interfaces have been
assigned to them.
Switch#sh vlan br
VLAN Name Status Ports
1 default active Fa0/3, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Gig0/1
Gig0/2
CISCO CCNA- Router on Stick
2 Sales active Fa0/1, Fa0/2
3 EGR active Fa0/4, Fa0/5
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default Switch# active
CISCO CCNA- Router on Stick
 Ping test from the 10.10.10.0 subnet to the 20.20.20.0 subnet should succeed:
ASM Educational Center Inc. (ASM)
Where Training, Technology & Service Converge
TO WATCH OUR CISCO CCNA VIDEO TRAININGS PLEASE CHECK OUT THE LINK BELOW:
WWW.ASMED.COM/C1
PHONE: (301) 984-7400

More Related Content

PDF
CCNA CheatSheet
DOCX
CCNA- Router on stick, VLAN and Trunking
PPTX
Chapter 17 : static routing
PPTX
Ccna ppt1
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 2
PDF
1000 Ccna Questions And Answers
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 7
PDF
Router commands
CCNA CheatSheet
CCNA- Router on stick, VLAN and Trunking
Chapter 17 : static routing
Ccna ppt1
CCNA 2 Routing and Switching v5.0 Chapter 2
1000 Ccna Questions And Answers
CCNA 2 Routing and Switching v5.0 Chapter 7
Router commands

What's hot (20)

PDF
Bidirectional Forwarding Detection (BFD)
PPT
Switch function
PPT
CCNA BASIC SWITCHING AND SWITCH CONFIGURATION
PPT
Introduction to Layer 2 switching
PPT
CCNA Chapter1
PDF
Ccnp enterprise workbook v1.0 bgp zero to hero
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 5
PPT
Linux networking
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 4
PPT
Switch configuration
PDF
MPLS L3 VPN Deployment
PDF
CCNAv5 - S2: Chapter4 Routing Concepts
PPTX
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
PDF
LTE: X2 interface
PDF
Brocade SAN 製品概要
DOCX
Ccna command
DOC
How to Configure QinQ?
PDF
CCNA Lab Guide
PPT
Tn 310 vlan-trunking
PDF
LinuxCon 2015 Linux Kernel Networking Walkthrough
Bidirectional Forwarding Detection (BFD)
Switch function
CCNA BASIC SWITCHING AND SWITCH CONFIGURATION
Introduction to Layer 2 switching
CCNA Chapter1
Ccnp enterprise workbook v1.0 bgp zero to hero
CCNA 2 Routing and Switching v5.0 Chapter 5
Linux networking
CCNA 1 Routing and Switching v5.0 Chapter 4
Switch configuration
MPLS L3 VPN Deployment
CCNAv5 - S2: Chapter4 Routing Concepts
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
LTE: X2 interface
Brocade SAN 製品概要
Ccna command
How to Configure QinQ?
CCNA Lab Guide
Tn 310 vlan-trunking
LinuxCon 2015 Linux Kernel Networking Walkthrough
Ad

Viewers also liked (13)

PPTX
Cisco CCNA- How to Configure Multi-Layer Switch
PPTX
Cisco CCNA Port Security
PPTX
Cisco CCNA CCNP VACL Configuration
PPT
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric Vanderburg
PPTX
Cisco CCIE Certifications, Scope & Career Growth in 2016
PPTX
Cisco CCNA- NAT Configuration
PPTX
Cisco CCNA- PPP Multilink Configuration
PPTX
Cisco CCNA IPV6 Static Configuration
PPTX
Cisco CCNA GRE Tunnel Configuration
PPTX
Cisco CCNA EIGRP IPV6 Configuration
DOC
Router commands
PDF
Ccnp workbook network bulls
PDF
Ccna new lab_manual_by_esp_team
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA Port Security
Cisco CCNA CCNP VACL Configuration
CCNA Routing and Switching Lessons 11-12 - WAN Configuration - Eric Vanderburg
Cisco CCIE Certifications, Scope & Career Growth in 2016
Cisco CCNA- NAT Configuration
Cisco CCNA- PPP Multilink Configuration
Cisco CCNA IPV6 Static Configuration
Cisco CCNA GRE Tunnel Configuration
Cisco CCNA EIGRP IPV6 Configuration
Router commands
Ccnp workbook network bulls
Ccna new lab_manual_by_esp_team
Ad

Similar to Cisco CCNA-Router on Stick (20)

PDF
Ccna3 lab 9_1_5b_en
PDF
Cisco labs practical7
PDF
Switch inter vlan_routing
PDF
CCNA Notes
DOC
Lab 6.4.1 InterVLAN routing
PPTX
CCNA Inter VLAN Routing
PDF
Tema3
PDF
3.4.6-lab---configure-vlans-and-trunking.pdf
PPTX
CCNA_LAB_MANUAL_part1.pptx
PDF
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
PDF
CCNA Syllabus pdf
PDF
Vlan lab
PDF
Rstp all guards workbook
PDF
Cisco Packet Tracer- SRWE_Module_4_Inter_VLAN.pdf
DOC
Ccna 3 chapter 6 v4.0 answers 2011
PPT
CCNA 2
PDF
Switching
PPT
vlaN.pptgfggdfgdrgsegtrgthyrtewgsrdhftjf
PDF
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】
Ccna3 lab 9_1_5b_en
Cisco labs practical7
Switch inter vlan_routing
CCNA Notes
Lab 6.4.1 InterVLAN routing
CCNA Inter VLAN Routing
Tema3
3.4.6-lab---configure-vlans-and-trunking.pdf
CCNA_LAB_MANUAL_part1.pptx
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Syllabus pdf
Vlan lab
Rstp all guards workbook
Cisco Packet Tracer- SRWE_Module_4_Inter_VLAN.pdf
Ccna 3 chapter 6 v4.0 answers 2011
CCNA 2
Switching
vlaN.pptgfggdfgdrgsegtrgthyrtewgsrdhftjf
欧洲杯比赛投注官网-欧洲杯比赛投注官网网站-欧洲杯比赛投注官网|【​网址​🎉ac123.net🎉​】

More from Hamed Moghaddam (16)

PPTX
Cisco CCNA IP SLA with tracking configuration
PPTX
Cisco CCNA-CCNP IP SLA Configuration
PPTX
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
PPTX
Juniper JNCIA – Juniper RIP Route Configuration
PPTX
Juniper JNCIA – Juniper OSPF Route Configuration
PPTX
Juniper JNCIA – Juniper Floating Static Route Configuration
PPTX
Cisco CCNA OSPF IPV6 Configuration
PPTX
CISSP Certification Security Engineering-Part2
PPTX
CISSP Certification- Security Engineering-part1
PPTX
Cisco CCNA-Standard Access List
PPTX
Cisco CCNA- DHCP Server
PPTX
Microsoft MCSA- Joining Client Machines To The Domain!
PPTX
Microsoft MCSA - Install active directory domain services (adds) role
PPTX
CISSP Certification-Asset Security
PPTX
Cissp- Security and Risk Management
PPTX
Become CISSP Certified
Cisco CCNA IP SLA with tracking configuration
Cisco CCNA-CCNP IP SLA Configuration
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
Juniper JNCIA – Juniper RIP Route Configuration
Juniper JNCIA – Juniper OSPF Route Configuration
Juniper JNCIA – Juniper Floating Static Route Configuration
Cisco CCNA OSPF IPV6 Configuration
CISSP Certification Security Engineering-Part2
CISSP Certification- Security Engineering-part1
Cisco CCNA-Standard Access List
Cisco CCNA- DHCP Server
Microsoft MCSA- Joining Client Machines To The Domain!
Microsoft MCSA - Install active directory domain services (adds) role
CISSP Certification-Asset Security
Cissp- Security and Risk Management
Become CISSP Certified

Recently uploaded (20)

PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Trump Administration's workforce development strategy
PDF
My India Quiz Book_20210205121199924.pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
What if we spent less time fighting change, and more time building what’s rig...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Complications of Minimal Access-Surgery.pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
HVAC Specification 2024 according to central public works department
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Trump Administration's workforce development strategy
My India Quiz Book_20210205121199924.pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
What if we spent less time fighting change, and more time building what’s rig...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Complications of Minimal Access-Surgery.pdf
Environmental Education MCQ BD2EE - Share Source.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
HVAC Specification 2024 according to central public works department
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
History, Philosophy and sociology of education (1).pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Computer Architecture Input Output Memory.pptx
B.Sc. DS Unit 2 Software Engineering.pptx
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
A powerpoint presentation on the Revised K-10 Science Shaping Paper
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf

Cisco CCNA-Router on Stick

  • 1. CISCO CCNA Router on Stick To watch our Cisco CCNA Training Videos Please Check out the link below: www.asmed.com/c1 ASM EDUCATIONAL CENTER INC. (ASM) WHERE TRAINING, TECHNOLOGY & SERVICE CONVERGE PHONE: (301) 984-7400
  • 2. CISCO CCNA- Router on Stick To see how router on a stick works, build the following topology:
  • 3. CISCO CCNA-Router on Stick First we need to change port fa0/24 to be a trunk port. We will be using 802.1q as the trunking encapsulation. Switch#conf t  Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int fa0/24 Switch(config-if)#sw trunk encapsulation dot1q Switch(config-if)#sw mode trunk Switch(config-if)#
  • 4. CISCO CCNA- Router on Stick Port Mode Encapsulation Status Native vlan Fa0/24 on 802.1q trunking 1 Let’s check the result on Switch Switch#show int trunk Switch#
  • 5. CISCO CCNA- Router on Stick Now, on the router we need to create the sub-interfaces for the two VLANs. A sub-interface is created by referencing the interface name followed by a dot, followed by a unique number in this format interface fa0/0.X We can choose any number for X and it does not have to be sequential. However, normally we want to match the sub-interface number with the VLAN number (known as VLAN ID).  Don’t forget to bring the physical interface up.
  • 6. CISCO CCNA- Router on Stick Let’s take a look: Router> Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fa0/0 Router(config-if)#no shutdown
  • 7. CISCO CCNA- Router on Stick Router(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit After we bring the interface up, we create the sub-interfaces and indicated to which VLAN they belong to. We assign the Default Gateway IP address of the relevant VLAN to the sub-interface.
  • 8. CISCO CCNA- Router on Stick Router(config)#interface fa0/0 Router(config)#interface fa0/0.? <0-4294967295> FastEthernet interface number Router(config)#int fa0/0.2 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
  • 9. CISCO CCNA- Router on Stick %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up Router(config-subif)#encapsulation dot Router(config-subif)#encapsulation dot1Q 2 Router(config-subif)#ip address 10.10.10.100 255.255.255.0 Router(config-subif)#exit
  • 10. CISCO CCNA- Router on Stick  The number coming after encapsulation dot1Q must match the VLAN number (VLAN ID). 802.1q will TAG the traffic coming from the VLAN with the VLAN ID. The router looks at the TAG to determine which sub-interface the traffic associated with.
  • 11. CISCO CCNA- Router on Stick Here is the configuration for VLAN 3: Router(config)#interface fa0/0.3 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to up
  • 12. CISCO CCNA- Router on Stick Router(config-subif)#encapsulation dot1Q 3 Router(config-subif)#ip add 20.20.20.100 255.255.255.0 Router(config-subif)#end Router# %SYS-5-CONFIG_I: Configured from console by console
  • 13. CISCO CCNA- Router on Stick Here is our show run: interface FastEthernet0/0 no ip address duplex auto speed auto !
  • 14. CISCO CCNA- Router on Stick interface FastEthernet0/0.2 description this will act as DG=10.10.10.100 for VLAN2 encapsulation dot1Q 2 ip address 10.10.10.100 255.255.255.0 !
  • 15. CISCO CCNA- Router on Stick interface FastEthernet0/0.3 description This Will act as DG=20.20.20.100 for VLAN 3 encapsulation dot1Q 3 ip address 20.20.20.100 255.255.255.0 ! Hint: Make sure do not give IP address to physical interface f0/0 but you always assign it to sub- interface
  • 16. CISCO CCNA- Router on Stick  Check to see if we have the subnets in the routing table: Router#sh ip route Codes: C – connected, S – static, I – IGRP, R – RIP, M – mobile, B – BGP D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2 E1 – OSPF external type 1, E2 – OSPF external type 2, E – EGP i – IS-IS, L1 – IS-IS level-1, L2 – IS-IS level-2, ia – IS-IS inter area * – candidate default, U – per-user static route, o – ODR P – periodic downloaded static route
  • 17. CISCO CCNA- Router on Stick Gateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnets C 10.10.10.0 is directly connected, FastEthernet0/0.2 20.0.0.0/24 is subnetted, 1 subnets C 20.20.20.0 is directly connected, FastEthernet0/0.3 Router#
  • 18. CISCO CCNA- Router on Stick  Note that the router connects the subnets to the virtual sub- interfaces. Now the router can “Route” the traffic between different broadcast domains, although the traffic is physically coming and going over the same interface.
  • 19. CISCO CCNA- Router on Stick  We must configure the PC’s with the correct IP address and Default Gateway values:
  • 20. CISCO CCNA- Router on Stick As before the switch is configured with the correct VLAN’s and interfaces have been assigned to them. Switch#sh vlan br VLAN Name Status Ports 1 default active Fa0/3, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Gig0/1 Gig0/2
  • 21. CISCO CCNA- Router on Stick 2 Sales active Fa0/1, Fa0/2 3 EGR active Fa0/4, Fa0/5 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default Switch# active
  • 22. CISCO CCNA- Router on Stick  Ping test from the 10.10.10.0 subnet to the 20.20.20.0 subnet should succeed:
  • 23. ASM Educational Center Inc. (ASM) Where Training, Technology & Service Converge TO WATCH OUR CISCO CCNA VIDEO TRAININGS PLEASE CHECK OUT THE LINK BELOW: WWW.ASMED.COM/C1 PHONE: (301) 984-7400