🔧

Basic Router and Switch Configuration

May 7, 2025

Cisco Introduction to Networks - Week 2

Console into a Switch and Router

  • Students learn basic configurations on switches and routers.
  • Commands are provided and demonstrated in the course.

Modes and Prompts

User EXEC Mode

  • Initial mode after logging in.
  • Prompt: >
  • Exit command: exit

Privileged EXEC Mode

  • Accessed via the enable command.
  • Prompt changes to #.
  • Exit back to User EXEC Mode: disable or exit.

Command Overview

Question Mark ?

  • Lists available commands in the current mode.
  • Page through commands using the spacebar.

Configure Terminal

  • Command: configure terminal
  • Enters Global Configuration Mode.
  • Exit back to Privileged EXEC Mode: end, exit, or Control + C/Z.

Sub-Global Config Modes

  • Line VTY 0-15: line vty 0 15
    • Configure virtual terminal connections (Telnet, SSH).
  • Line Console 0: line console 0
    • Configure console port.
  • Interface Configuration Mode
    • Enter with: interface <type> <number>
    • Example: interface GigabitEthernet 0/0

Show Commands

  • Purpose: Display static information about router configuration.
  • Important Command: show running-config (or show run)
    • Displays current configuration.
    • Interface status and IP addresses.

Copying and Saving Configurations

  • copy running-config startup-config
    • Saves current settings to NVRAM.

Debug Commands

  • Show real-time information.
  • Use debug followed by a question mark for options.

Setting Time and Restarting

  • Learn commands to set clock and restart the router.

Additional Global Configurations

Hostname and Banner

  • Set router hostname: hostname <name>
  • Set MOTD banner: banner motd "<message>"

Passwords

  • Enable Password: enable password <password>
    • Unencrypted.
  • Enable Secret: enable secret <password>
    • Encrypted (takes priority over Enable Password).

Service Password Encryption

  • Command: service password-encryption
    • Encrypts passwords with type 7 encryption.

Interface Configuration

  • Interface GigabitEthernet 0/0
    • Assign IP: ip address <IP> <Subnet>
    • Enable interface: no shutdown

Switch Configuration

Interface VLAN 1

  • Configure switch IP for remote access: interface vlan1
    • Assign IP and no shutdown to enable.

Set Default Gateway

  • Needed for remote network access.

Helpful Commands

No IP Domain Lookup

  • Disables DNS translation when typing commands.

Logging Synchronous

  • Prevents logging messages from interrupting command input.

Conclusion

  • Week 2 covers essential router and switch configuration commands.
  • Practice these commands to become familiar with basic network device management.