Router on a Stick Setup Guide

Aug 31, 2024

Connecting Cisco Router and Switch via Router on a Stick

Introduction

  • Presenter: Abdul Basit
  • Topic: Connecting Cisco router and switch using the Router on a Stick method.
  • Previous video received good feedback, motivating this presentation.

Key Concepts

  • Router on a Stick:

    • Only one link between router and switch.
    • Uses Cisco router for inter-VLAN routing when no Layer 3 switch is available.
    • The method involves creating sub-interfaces on the router's physical interface connected to the switch.
  • Equipment Used:

    • Router: Cisco 2800 series
    • Switch: Cisco 2960 G-switch

Network Diagram

  • Setup:
    • Link between Cisco router and switch is an 802.1q trunk link.
    • Multiple VLANs (10, 20, 30) will travel on this link.

Configuration Steps

  1. Router Configuration:

    • FastEthernet 0/0:
      • Connect to home ISP router (configured for DHCP).
    • FastEthernet 0/1:
      • Configured for sub-interfaces based on the number of VLANs.
  2. Sub-Interface Setup:

    • Create sub-interfaces for VLANs 10, 20, and 30.
    • Example command for VLAN 10:
      interface fastethernet 0/1.10  
      encapsulation dot1Q 10  
      ip address 10.10.10.1 255.255.255.0  
      
  3. Static Routing:

    • Add static route to the gateway (ISP router).
    • Command: ip route 0.0.0.0 0.0.0.0 192.168.1.1
  4. DHCP Configuration:

    • Configure DHCP pools for each VLAN.
    • Example for VLAN 10:
      • Pool name: 10
      • Network: 10.10.10.0/24
      • Default Route: 10.10.10.1
      • DNS Server: 8.8.8.8
  5. NAT Configuration:

    • Enable NAT for interfaces:
      • ip nat outside on FastEthernet 0/0
      • ip nat inside on sub-interfaces.
  6. Access List Configuration:

    • Configure access lists to permit VLAN networks.
  7. Switch Configuration:

    • Configure trunk port (Gig0/48) between router and switch.
    • Create VLANs (10, 20, 30) on the switch and assign IP addresses.
    • Assign interfaces to corresponding VLANs.

Testing and Validation

  • Connect laptops to switch ports corresponding to VLANs 10 and 20.
  • Ensure DHCP IP assignment and internet connectivity.
  • Validate intra-VLAN connectivity by pinging between laptops on different VLANs.

Conclusion

  • Successfully configured a Cisco router and switch using the Router on a Stick method.
  • Functionality:
    • Internet access is operational from both VLANs.
    • Intra-VLAN communication is successful.

Closing

  • Encouraged viewers to like and subscribe for more videos.
  • Invitation for comments and suggestions for future topics.