Cisco Device Configuration Commands (NET-126) Cheat Sheet: by Via
Cisco Device Configuration Commands (NET-126) Cheat Sheet: by Via
terminal history size 200 priv. EXEC changes how many commands the pool name ov [acl#] pool name overload
default-information originate router advertises default route info sh ip nat s show ip nat statistics
network [ip-address] router enables dynamic routing for the sh ip nat t show ip nat translations
network
(Directly connected nets only!) Trunking & Subinterfaces
network [ip-address] area 0 router assigns network to area 0
Command
passive-interface g0/1 router disables routing updates on that
encapsulation dot1Q
interface
Command
DHCP Configuration
interface loopback 0
Command Mode
ip route [network] [subnet] [exit-int|next-hop]
ip dhcp excluded-address [first IP] [last ip] global
ipv6 route [network/prefix] [exit-int|next-hop]
ip dhcp pool R1G1 global
ip route 0.0.0.0 0.0.0.0 [exit-int]
network [network IP] [subnet mask] (dhcp-config) ipv6 route ::/0 [exit-int]
default-router [gateway IP] (dhcp-config) ip route 0.0.0.0 0.0.0.0 [next-hop] [AD]
dns-server [dns IP] (dhcp-config) ipv6 route ::/0 [next-hop] [AD]
lease 2 (dhcp-config)
NAT Configuration
ip nat pool name ip nat pool name defines the pool of public
[first IP] [last IP] [first IP] [last IP] addresses to use
cry key gen rsa gen mod 1024 crypto key generate rsa general- global
keys
modulus 1024