Cisco Command Notes
1. Navigation Commands (Modes)
User EXEC ( > )
Basic access
Router>
Privileged EXEC ( # )
Access with: enable
Global Configuration (config)
Enter with: configure terminal
2. Basic Device Setup (Global Config)
Set hostname
Ex: hostname Router1
Disable DNS lookup
Ex: no ip domain-lookup
3. Password & Security Commands
Privileged EXEC Password (Global Config)
Ex: enable secret Cisco_CCNA7
Encrypt all passwords (Global Config)
service password-encryption
Set Minimum password length
security passwords min-length 10
4. Banner Message (Global Config)
banner motd #Unauthorized access prohibited#
5. Local User (Global Config)
username netadmin secret Cisco_CCNA7
6. Line Configuration
Console Line (Line Config Mode)
line console 0
login local
exec-timeout 5 0
VTY Lines (Line Config Mode)
line vty 0 4
transport input ssh
login local
exec-timeout 5 0
7. SSH Configuration
Set domain name (Global Config)
ip domain-name ccna-lab.com
Generate RSA keys (Global Config)
crypto key generate rsa 1024
Force SSH version 2 (Global Config)
ip ssh version 2
8. Interface Configuration (Interface Config Mode)
Enter interface
interface g0/0
Set an IPv4 address
ip address 192.168.1.126 255.255.255.224
Set an IPv6 Global address
ipv6 address 2001:db8:acad:a::1/64
Set an IPv6 link-local address
ipv6 address fe80::1 link-local
Enable an Interface
No shutdown
9. Switch Configuration
Assigning ip and enabling interface (Interface Config)
Step 1. Enter Vlan 1
ex. interface vlan 1
Step 2. Assign IP
ex. ip address (Address) (Subnet Mask)
Step 3. Enable SVI
ex. no shutdown
Step 4.Configure Default Gateway (Global Config)
ex. ip default-gateway (gateway address)
Step 5. Enable Telnet (Line Config)
(Global config)line vty 0 4
password cisco
login
Verification Commands (Privileged EXEC)
Check interfaces
show ip interface brief
Check Ipv6 interfaces
show ipv6 interface brief
Test connectivity
ping [IP address]