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
usermode promp start with>, only allow a few command. To go toprivilegemode we can typeenableprivilegemode prompt start with#allow more commandsglobal configmode to configure withconfigure terminal
Command
Use ? to show all command and show suggestions.
show to display information:
show ip bgp sum: show the bgp mappingshow running-config: display current system configurationshow startup-config: display the start up configurationshow interface fa0/24: display information of port 24- In here it will display CRC (Cyclic Redundancy Check) and other information
show run int fa0/24to 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
enablepassword useenable 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-linemode where we can set password for the connection (i.epassword 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
host your-host-namesetup hot nameip domain-name your-domain.comuse domain namecrypto key generate rsagenerate rsaline vty 0 15transport input all- or
transport input ssh telnetspecify what kind of protocol to use