Console Connection

Cisco created a dedicated console port (RJ45) for connection to their switch.

This is to connect to the switch to connect to the Network Switch to control the switch over terminal.

The configure:

  • 9600 baud
  • No flow control
  • 8 bit ASCII
  • No parity bit
  • One stop bit

Access can be used over Telnet or SSH (prefer as more encrypted)

Cli mode

  • user mode promp start with >, only allow a few command. To go to privilege mode we can type enable
  • privilege mode prompt start with # allow more commands
  • global config mode to configure with configure terminal

Command

Use ? to show all command and show suggestions.

show to display information:

  • show ip bgp sum: show the bgp mapping
  • show running-config: display current system configuration
  • show startup-config: display the start up configuration
  • show interface fa0/24: display information of port 24
  • show run int fa0/24 to show the configuration of the interface which will display information i.e Speed, duplex, etc

To save running-config to startup-config, use wr mem

To erase startup-config use wr erase

Entering config mode with config t.

  • In config, to set password using password your-password
  • To set enable password use enable secret your-sudo-password
  • To allow multiple connections, set line vty 0 15
    • In this case, we set 15 ports of VTY (Virtual Teletype) connection so that we can have 15 simulatenously connection
    • After this, we get into config-line mode where we can set password for the connection (i.e password line-password)
  • To create an account use username your-login secret your-password

logging synchronous:

  • to log in synchronously — avoid system message to overwrite what you're typing

no ip domain-lookup:

  • Miss typed DNS name will try lookup by default.
  • Disable this will make prompt faster

To allow ssh

  1. host your-host-name setup hot name
  2. ip domain-name your-domain.com use domain name
  3. crypto key generate rsa generate rsa
  4. line vty 0 15
    1. transport input all
    2. or transport input ssh telnet specify what kind of protocol to use