Theleran - Cisco Ios C
Theleran - Cisco Ios C
# config t Enter Global Config Mode (config)# (config-if) # shut | no shut Enables | Disables interface
(config) # line vty 0 15 Enter VTY Line Config Mode (config- (config) # ip domain-name {Abxyz.com} Sets Domain Name
line)# (config) # cry key gen rsa general-keys Configs complexity of keys
(config) # undebug all Stops all Debugs (config) # username {name} secret Sets a UN & encrypted
{password} Pass
# clock set {time} {date} Sets manual Time/Date
(config) # line vty 0 15 Configs which VTY lines to
# show file systems Lists available file systems
use
# exit Exits current mode/level
(config-line) # login local Sets LOGIN
(config) # ena sec {password} Set encypted password for Priv Command Description
(config-line) # pass {password} Sets password for Console Line VLAN Config
(config-line) # login Makes passwords active, use
Command Description
after every password config
(config) # vlan {vlan-id} Create a VLAN
(config-if) # switchport mode access Set the port to access Command Description
mode.
# show cdp Display the status of CDP on R1.
(config-if) # switchport access vlan Assign the port to a VLAN.
R1# configure terminal Enter Global ConfigurEnable CDP
vlan_id R1(config)# cdp run R1(config)# globally on R1. Disable CDP on
(config-if) # end Return to the privileged interface s0/0/0 R1(config-if)# no interface S0/0/0. Use end command
EXEC mode. cdp enable R1(config-if)# end to exit Global Configuration mode.
(config) #show vlan brief Display the contents of the # show cdp neighbors Display the list of CDP neighbors on
vlan.dat file R1.
(config-if) # mls qos trust [cos | device Set the trusted state of an # show cdp neighbors detail Display more details from the list of
cisco-phone | dscp | ip-precedence] interface CDP neighbors on R1.
restore the switch to its factory default condition. # show lldp neighbors Display the list of LLDP
neighbors
PAT Config # show lldp neighbors detail Display more details from the list
Command Description of LLDP neighbors
Tab Completes current abbrv command (config) #ip dhcp excluded-address {low ip Excludes ip ranges,
range} {high ip range} | {single ip} or single IP's.
Up Arrow Cycles thru previously used commands
# sho run Displays Running Configs. (config) #ip helper-address {ipv4net} Sets DHCP Relay
# sho ipv6 int Displays interfaces on IPv6 (config-if) # ipv6 unicast-routing Enable IPv6
# sho ip route Displays all routes attached to router (config-if) # ipv6 dhcp pool {name} Name Pool
# sho ip route static Displays all static routes attached to router (config-if) # address prefix {prefix length} Statefull Only
#Sho ip route network Displays routes only associated with that lifetime {infinite | time}
(config) # access-list _ { deny | permit | remark } Create ACL. (config-if) # ipv6 dhcp relay destination Sets Router as a
{source+wildcard} {ipv6net} DHCPv6 Relay
(config) # ip access-list standard {name} Create Named # debug ipv6 dhcp detail Displays debug details
ACL.
SLAAC (config-if) # no ipv6 nd managed-config-flag (config-if) # no
(config-if) # ip access-group { access-list-number | Attach ACL to an
ipv6 nd other-config-flag Note: No other config required for SLAAC.
access-list-name } { in | out } Interface.
Stateless DHCPv6 (config-inf) # ipv6 nd other-config-flag
(config-line) # access-class {number} { in | out } ACL for VTY. Statefull DHCPv6 (config-inf) # ipv6 nd managed-config-flag
Command Description R2(config)# ip nat inside source list 2 pool Bind PUBLIC-POOL with
PUBLIC-POOL ACL 2.
(config) # router rip
R2(config)# interface Serial0/0/0 Configure the proper inside
(config-router) #version 2
R2(config-if)# ip nat inside NAT interface.
(config-router) # modify the default RIPv2 behavior of automatic
R2(config)# interface Serial0/1/0 Configure the proper outside
no auto- summarization
R2(config-if)# ip nat outside NAT interface.
summary
ip nat translation timeout
(config) #show ip protocols
clear ip nat translation *
(config) #network ip-address
Top is Static Config
(config) prevent the transmission of routing updates through Bottom is Dynamic Config
#passive- a router interface, but still allow that network to be
interface advertised to other routers.
SysLog Config
(config-router) propagate a default route in RIP
Command Description
#ip route 0.0.0.0
0.0.0.0 (config) # logging Configure the destina
tion hostname or
{address} IPv4 address of the syslog.
(config-router) This instructs R1 to originate default information, by
#default- propagating the static default route in RIP updates. (config) # logging trap Control the level of messages that will be
information {level} sent
originate
(config)# logging source- Logging Source
interface {interface}
NAT Config
Command Description