Setting up a cisco router/switch securely

Router>
Router>Enable
Router#config t
Router(config)#hostname Router1-1
Router1-1(config)#enable password mePassWord
Router1-1(config)#enable secret MeSecretPassword
Router1-1(config)#service password-encryption
Router1-1(config)#username meUser Privilege 15 password 0 MeNewPasswordformeUser
Router1-1(config)#banner motd # Welcome to Router1-1 #
Router1-1(config)#banner login $ You have to be authorized to use this device or get the heck out $
Router1-1(config)#ip domain-lookup
Router1-1(config)#ip domain-name sitedevelopments.net
Router1-1(config)#ip name-server 192.168.1.12
Router1-1(config)#crypto key generate rsa
  The name of this key will be: Router1-1.sitedevelopments.net
  Choose the size of the key modulus in the range of 360 to 2048 for your
  General Purpose Keys. Choosing a key modulud greater than 512 may take a few minutes.
How many bits in the modulus [512}: 2048
% Generating 2048 bit RSA keys, keys will be non-exportable
Router1-1(config)#line con 0
Router1-1(config-line)#password MePasswd
Router1-1(config-line)#login local
Router1-1(config-line)#exec-timeout 10 0
Router1-1(config-line)#logging synchronous
Router1-1(config-line)#line vty 0 15
Router1-1(config-line)#password MePasswd
Router1-1(config-line)#login local
Router1-1(config-line)#exec-timeout 10 0
Router1-1(config-line)#logging synchronous
Router1-1(config-line)#transport input ssh
Router1-1(config-line)#exit
Router1-1(config)#exit
Router1-1#
%SYS-5-CONFIG_I: Configured from console by console
Router1-1#copy running-config startup-config
Destonation filename [startup-config]?
Building configuration...
[OK]
Router1-1#show running-config
Your configuration will be shown here
Router1-1#show ip inerface brief
shows you inerfaces
Router1-1#config t
Router1-1(config)#
Router1-1(config)#int F0/0
Router1-1(config-if)#ip address 192.168.1.254 255.255.255.0
Router1-1(config-if)#description connection to LAN
Router1-1(config-if)#no shutdown

 

 

I am a Senior System Administrator that work daily with Virtualization,Xenserver, Linux, IT automation, Ansible,Windows, Active Directory, Exchange and a lot more. Here you will find tips and trix from early junior, middle junior and senior to unique information of the topics I mentioned earlier. If you need help with something do not hesitate to contact me I will gladly help.