Cheatography
https://cheatography.com
List of commands for exam prep
[Router] Basic Configuration
Short Command |
Full-Length Command |
|
|
|
|
|
|
|
service password-encryption
|
banner motd #Authorized access ONLY!#
|
|
|
login block-for 120 attempts 3 within 30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
desc Connected to G0/0 on R2
|
|
ip add 10.1.1.1 255.255.255.0
|
ip address [address] [subnet-mask]
|
|
|
|
|
[Switch] Basic Configuration
Short Command |
Full-Length Command |
|
|
|
|
|
|
|
service password-encryption
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Switch] VLAN Configuration
Short Command |
Full-Length Command |
|
interface vlan [vlan-number]
|
|
|
|
|
|
|
|
|
|
|
switchport access vlan [vlan-number]
|
|
|
[Switch] Port Security
Short Command |
Full-Length Command |
|
|
|
switchport port-security maximum 2
|
|
switchport port-security mac-address sticky
|
|
switchport port-security violation [mode]
|
* Only on access ports, not trunking ports!
[Switch] VLAN Trunking
Short Command |
Full-Length Command |
|
|
|
|
|
switchport trunking native vlan 30
|
|
switchport trunking access vlan 10,20,30
|
|
|
[Router/Switch] SSH Configuration
Short Command |
Full-Length Command |
|
username [name] secret [password]
|
|
|
cry key gen rsa gen mod 1024
|
crypto key generate rsa general-keys modulus 1024
|
|
|
|
|
|
|
|
|
|
Router-On-A-Stick Configuration
Short Command |
Full-Length Command |
|
interface [subinterface]
|
|
encapsulation dot1Q [vlan-number]
|
desc Gateway for Students VLAN
|
|
ip add 10.1.2.1 255.255.255.0
|
ip address [address] [subnet-mask]
|
|
|
interface [subinterface]
|
|
encapsulation dot1Q [vlan-number]
|
desc Gateway for Faculty VLAN
|
|
ip add 10.1.3.1 255.255.255.0
|
ip address [address] [subnet-mask]
|
|
|
|
|
|
|
|
|
|
RIP Configuration
Short Command |
Full-Length Command |
ip route 0.0.0.0 0.0.0.0 s0/0/0
|
ip route 0.0.0.0 0.0.0.0 [exit-interface]
|
|
|
|
|
|
|
|
network [network-address]
|
|
passive-interface [interface]
|
|
default-information originate
|
* Only on router connected to internet |
|
|
DHCP Configuration
Short Command |
Full-Length Command |
--- DHCP Server --- |
ip dhcp ex 192.168.1.1 192.168.1.5
|
ip dhcp excluded-address [first-IP] [last-IP]
|
|
ip dhcp pool [pool-name]
|
netw 192.168.1.0 255.255.255.0
|
network [network-address] [subnet-mask]
|
|
default-router [default-gateway-IP]
|
|
|
|
--- Relay Router --- |
|
|
ip dhcp help [server-IP]
|
ip dhcp helper-address [server-IP]
|
|
|
NAT Configuration
Short Command |
Full-Length Command |
|
access-list standard [acl-number] permit [address]
|
ip nat pool CorpNet 209.165.200.10 209.165.200.13 net 255.255.255.0
|
ip nat pool [pool-name] [first-IP] [last-IP] network [subnet-mask]
|
ip nat in s list 10 pool CorpNet ov
|
ip nat inside source list [acl-number] pool [pool-name] overload
|
|
|
|
passive-interface g0/0
|
|
|
|
|
|
|
|
|
|
|
|
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Tamaranth