Little Helpers – Cisco IOS

cisco-logo

Configuring the Switch for Local Authentication and Authorization

  • For privilege level (optional), specify the privilege level the user has after gaining access. The range is 0 to 15. Level 15 gives privileged EXEC mode access. Level 0 gives user EXEC mode access.
  • For encryption-type, enter 0 to specify that an unencrypted password follows. Enter 7 to specify that a hidden password follows.

configure terminal
service password-encryption
aaa new-model
aaa authentication login default local
aaa authorization exec default local
aaa authorization network default local
username [name] privilege [privilege level] password [encryption-type] [password]  
end
wr

Setting Up the Switch to Run SSH


configure terminal
hostname hostname
ip domain-name domain_name
crypto key generate rsa
ip ssh version  [1 | 2]
ip ssh {timeout  seconds | authentication-retries  number} 
end
wr

3750 Series Switch Stack IOS Upgrade – Manual (.bin Image)

Check if there is enough space available


dir flash1:
dir flash2:

If needed, delete old system images


delete /force /recursive flashX:/FILENAME

Download and set as default boot image


copy http: flash1:
copy http: flash2:
configure terminal
boot system switch all flash:/FILENAME
end
wr
show boot
reload

Switch Renumbering (StackWise)


show switch
configure terminal
switch 1 renumber 2
end

Setting Switch Priority (StackWise)


show switch
configure terminal
switch 1 priority 15
end

Reset Config


write erase

If needed, also clear vlan database


delete flash:vlan.dat
reload

Show masked Keys (e.g. Pre-shared Keys)


more system:running-config

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.