|
Command
|
Mode
|
Function
|
terminal history size 200 |
priv. EXEC
|
changes how many commands the history buffer stores (for this session only)
|
|
Command
|
Mode
|
Function
|
router [protocol] |
global
|
enables protocol & enters router config mode
|
auto-summary |
router
|
enables automatic network # summarization
|
default-information originate |
router
|
advertises default route info
|
network [ip-address] |
router
|
enables dynamic routing for the network
(Directly connected nets only!) |
network [ip-address] area 0 |
router
|
assigns network to area 0
|
passive-interface g0/1 |
router
|
disables routing updates on that interface
|
version [version] |
router
|
sets protocol version
|
|
Command
|
Mode
|
ip dhcp excluded-address [first IP] [last ip] |
global
|
ip dhcp pool R1G1 |
global
|
network [network IP] [subnet mask] |
(dhcp-config)
|
default-router [gateway IP] |
(dhcp-config)
|
dns-server [dns IP] |
(dhcp-config)
|
domain-name ccna-lab.com |
(dhcp-config)
|
lease 2 |
(dhcp-config)
|
ip dhcp helper-address [dhcp server IP] |
interface (on relay router)
|
|
Short Command
|
Full Command
|
What It Does
|
ip nat pool name |
ip nat pool name |
defines the pool of public addresses to use
|
ip nat in s l 10 |
ip nat inside source list |
enables PAT & specifies which ACL is being translated to which NAT pool
|
ip nat in |
ip nat inside |
identifies inside interface
(int config) |
ip nat out |
ip nat outside |
identifies outside interface
(int config) |
ip nat in s st |
ip nat inside source static |
configures static NAT mapping
|
|
----- Show Commands -----
|
||
sh ip nat s |
show ip nat statistics |
|
sh ip nat t |
show ip nat translations |
|
|
Command
|
Mode
|
encapsulation dot1Q |
|
|
Command
|
Mode
|
Function
|
interface loopback 0 |
global
|
loopback address configuration
|
ip route [network] [subnet] [exit-int|next-hop]ipv6 route [network/prefix] [exit-int|next-hop] |
global
|
configs a static route
|
ip route 0.0.0.0 0.0.0.0 [exit-int]ipv6 route ::/0 [exit-int] |
global
|
sets default static route
|
ip route 0.0.0.0 0.0.0.0 [next-hop] [AD]ipv6 route ::/0 [next-hop] [AD] |
global
|
configs a floating static route
|
|
Short Command
|
What It Displays
|
sh run int g0/0 |
running config for specified interface
|
sh run | [begin|include|exclude|section] line vty |
filtered running-config output
|
sh history |
contents of history buffer (previously entered commands)
|
sh ip protocols |
dynamic routing protocol settings
|
|
Short Command
|
Complete Command
|
Mode
|
no ip dom lo |
no ip domain-lookup |
global
|
login blo 120 a 3 w 60 |
login block-for 120 attempts 3 within 60 |
global
|
security pass min 8 |
security password min-length 8 |
global
|
exec-timeout 10 |
exec-timeout 10 |
line
|
|
Short Command
|
Complete Command
|
Mode
|
ip dom n CCNA-lab.com |
ip domain-name CCNA-labs.com |
global
|
cry key gen rsa gen mod 1024 |
crypto key generate rsa general-keys |
global
|
user Bob sec cisco |
username Bob secret cisco |
global
|
login lo |
login local |
line
|
trans in ssh |
transport input ssh |
line
|
ip ssh v 2 |
ip ssh version 2 |
global
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.