Docsity

Cisco quick Cheat sheet, Cheat Sheet of Computer science

Toggle sidebar
bg1
CyberPatriot Cisco Quick Cheat Sheet
Basic Device Commands
enable Enter privileged EXEC mode
configure terminal Enter global configuration mode
hostname [name] Set device hostname
service password-encryption Encrypt all passwords
enable secret [password] Set encrypted privileged mode password
banner motd #Message# Display message of the day banner
Interface Configuration
interface [type/number] Enter interface configuration mode
ip address [IP] [MASK] Assign IP address to interface
no shutdown Activate the interface
description [text] Add description to interface
VLANs and Switching
vlan [#] Create VLAN
name [vlan-name] Assign VLAN name
interface [type/number] Select switchport interface
switchport mode access Set port as access
switchport access vlan [#] Assign VLAN to access port
switchport mode trunk Set trunk mode
show vlan brief Display VLAN info
Routing and IP Commands
ip route [network] [mask] [next-hop] Add static route
ip default-gateway [IP] Set default gateway
show ip interface brief Show IPs and interface status
show ip route Show routing table
ping [IP] Test connectivity
Access Control Lists (ACLs) and Security
access-list [#] permit/deny [IP] [WILDCARD] Create ACL rule
pf2

Partial preview of the text

Download Cisco quick Cheat sheet and more Cheat Sheet Computer science in PDF only on Docsity!

CyberPatriot Cisco Quick Cheat Sheet

Basic Device Commands

enable Enter privileged EXEC mode configure terminal Enter global configuration mode hostname [name] Set device hostname service password-encryption Encrypt all passwords enable secret [password] Set encrypted privileged mode password banner motd #Message# Display message of the day banner

Interface Configuration

interface [type/number] Enter interface configuration mode ip address [IP] [MASK] Assign IP address to interface no shutdown Activate the interface description [text] Add description to interface

VLANs and Switching

vlan [#] Create VLAN name [vlan-name] Assign VLAN name interface [type/number] Select switchport interface switchport mode access Set port as access switchport access vlan [#] Assign VLAN to access port switchport mode trunk Set trunk mode show vlan brief Display VLAN info

Routing and IP Commands

ip route [network] [mask] [next-hop] Add static route ip default-gateway [IP] Set default gateway show ip interface brief Show IPs and interface status show ip route Show routing table ping [IP] Test connectivity

Access Control Lists (ACLs) and Security

access-list [#] permit/deny [IP] [WILDCARD] Create ACL rule

ip access-group [#] in/out Apply ACL to interface login Enable password checking on console line line console 0 Enter console config mode password [password] Set console password

Subnetting and CIDR Reference

CIDR Subnet Mask # of Hosts /8 255.0.0.0 16,777, /16 255.255.0.0 65, /24 255.255.255.0 254 /25 255.255.255.128 126 /26 255.255.255.192 62 /27 255.255.255.224 30 /28 255.255.255.240 14 /29 255.255.255.248 6

Useful 'show' Commands

show running-config Displays current configuration show startup-config Displays saved configuration show interfaces Displays all interface status show mac address-table Displays MAC address table