|
exit completely out of Config mode |
|
use new model for AAA: uses user IDs and passwords |
area 0 authentication message-digest
|
configure OSPF Area 0 to use message-digest authentication |
banner motd #Authorized access onlyl!#
|
set a "message of the day" banner |
|
set clock to UTC timezone |
|
router config file on TFTP server; will apply all necessary additions & deletions |
|
config router from terminal (current window); can also be written conf t
|
copy running-config startup-config
|
copies current config from volatile RAM to non-volatile RAM (NVRAM); saves current config to default name; also copy run start
|
copy startup-config tftp
|
copy saved (startup) config to TFTP server |
copy tftp running-config
|
config router via TFTP; also copy tftp run
|
crypto key generate rsa general-keys modulus 2048
|
create public/private asymmetric key pair to enable SSH connections |
|
|
access Enable mode, elevated priv |
enable secret placeholder
|
set password on Enable
mode with placeholder
as password |
|
|
|
disable timeout of Telnet sessions; insecure only for class effeciency |
|
exit Line Config mode; ( CTRL
+ Z
to exit Config mode completely) |
|
set hostname; prompt immediately changes |
|
simple pattern searching, like grep
; also i
|
|
edit definition for interface GigabitEthernet 1 |
|
interface Gigabit 1 |
|
select first gigabitEthernet interface |
|
config interface loopback 0 |
|
create loopback interface |
ip address 10.10.10.13 255.255.255.0
|
assign ip and specific subnet mask |
ip domain-name DOMAIN.com
|
config router's domain name (prereq for creating crypto keys) |
ip ospf message-digest-key 1 md5 somesecretkey
|
add MD5 digest key to OSPF packets - with passphrase "somesecretkey" |
|
enforce SSHv2 only (v1 is subject to MITM attacks) |
|
config the console |
|
config network connections to virtual teletype/terminal lines (ie Telnet) |
logging host <Windows Syslog Server ip>
|
send logs to syslog server |
logging source-interface gig 1
|
explicitly set source interface for syslog |
|
set interface GigabitEthernet 1 as logging source |
|
prevent log msgs from interrupting cmd entry |
|
log msgs at >= debug (severity debug or higher) |
|
log failed logins |
|
log successful logins |
network 10.10.10.0 0.0.0.255 area 0
; network 10.10.1.0 0.0.0.255 area 0
|
add network to routing process in area 0 |
no ip directed-broadcast
|
disable directed broadcasts |
|
disable IP domain (ie DNS) lookups - else every typo will be read as hostname and router will try to Telnet |
|
disable proxy ARP |
|
disable IP redirection |
|
disable source routing |
|
start up interface (by indicating its not shutdown) |
|
remove admin user acct with cleartext passwd |
|
explicitly set source interface for NTP |
rat ./<RATauditFileName>
|
CIS Router Assessment Tool (RAT) |
|
create/edit OSPF routing process |
show crypto key mypubkey rsa
|
view RSA public keys generated |
|
interface settings; also sh ip int br
|
|
show router's running config |
|
narrow search by including "pas" like password; also show run i pas
|
|
|
snmp-server trap-source gig1
|
explicitly set source interface for SNMP traps |
|
set HSRP standby address |
|
set standby priority |
standby 1 authentication md5 key-string PASSWORD
|
set MD5 authentication strong of "PASSWORD" |
standby 1 name CONFIGname
|
name standby config CONFIGname
(case-sensitive) |
|
after an outage, device configured as primary will "preempt" ctrl required to regain desired state |
username user privilege 15 password pass
|
create new user user
, with password pass
|