Proper startup configuration the Cisco way

in CCNA & CCENT
Officially what's the proper startup config for a Cisco switch???
#enable
#conf t
#hostname *duh*
#line con 0
#password 1234
#password 7 1234
#exec-timeout 10
#logging synchronous
In the Wendell Odom book I have
#hostname
#line con 0
#password
#interface %
#speed 100
#exit
So what is the initial switch configuration for Cisco it's kind of confusing?
My resources are the WGU CBT Nuggets videos, the Wendell Odom books and Chris Bryants CCNA course on Udemy. Thanks.
#enable
#conf t
#hostname *duh*
#line con 0
#password 1234
#password 7 1234
#exec-timeout 10
#logging synchronous
In the Wendell Odom book I have
#hostname
#line con 0
#password
#interface %
#speed 100
#exit
So what is the initial switch configuration for Cisco it's kind of confusing?
My resources are the WGU CBT Nuggets videos, the Wendell Odom books and Chris Bryants CCNA course on Udemy. Thanks.
Currently enrolling into WGU's IT - Security Program. Working on LPIC (1,2,3) and CCNA (and S) as long term goals and preparing for the Security+ and A+ as short term goals.
Comments
In most cases there is no set order to input the commands except for things like port security when you have to make the ports as access ports first (if I remember correctly) before you start running port security commands.
You can set the hostname after you done the console and enable passwords.
It's up to you.
thanks!
This has been my base goto config for labbing. From there you can do it anyway you want depending if you are on a switch or Router.
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname CORE-R1
CORE-R1(config)#line console 0
CORE-R1(config-line)#logging synchronous
CORE-R1(config-line)#login
% Login disabled on line 0, until 'password' is set
CORE-R1(config-line)#password Cisco123!
CORE-R1(config-line)#exec-timeout 30 0
CORE-R1(config-line)#line vty 0 4
CORE-R1(config-line)#logging synchronous
CORE-R1(config-line)#exec-timeout 30 0
CORE-R1(config-line)#login
% Login disabled on line 388, until 'password' is set
% Login disabled on line 389, until 'password' is set
% Login disabled on line 390, until 'password' is set
% Login disabled on line 391, until 'password' is set
% Login disabled on line 392, until 'password' is set
CORE-R1(config-line)#password Cisco123!
CORE-R1(config)#enable secret Cisco123#
CORE-R1(config)#username Admin privilege 15 secret Cisco123!#
CORE-R1(config)#ip domain-name Cisco.com
CORE-R1(config)#aaa new-model
CORE-R1(config)#cry key generate rsa mod 1024
The name for the keys will be: CORE-R1.Cisco.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
CORE-R1(config)#ip ssh version 2
Enter TEXT message. End with the character '@'.
#############################################################
ENTER YOUR BANNER TEXT HERE!!!!!!!!!!!!!
#############################################################
CORE-R1#WR
Building configuration...
[OK]
CORE-R1#