Sysadmin's Garden of Eden Docs

Version 1337.42.0

Switch Configuration

Commands

  • enable - Privileged mode
  • configure terminal - Enter global config mode
  • hostname NAME - Set a hostname
  • configure terminal + no ip domain lookup - Disable accidental dns lookup in priv and non priv mode

Config Mode

  • line console 0 - Enter line console 0
  • interface Gi 0/48 - Enter Interface 0/48
  • ip address IP_ADDR SUBNET_MASK - Set IP_ADDR and the SUBNET_MASK
  • exit - Go one mode back

Make interface dedicated for mgmt

configure terminal
interface Gi 0/48
no interface port
int vlan1
shutdown
exit
ip default-gateway DEFAULT_GATEWAY

Set interface IP

configure terminal
interface Gi 0/48
ip address IP_ADDR SUBNET_MASK

“Activate” SSH RSA Key

crypto key generate rsa general-keys modulus 4096 label sw-azubi-1

Show interface status

do show interface status

Add passwords to console login thingy

configure terminal
line console 0
password YOUR_PASSWORD
line vty 0 4
login
password YOUR_PASSWORD
exit
In global config mode:
enable secret YOUR_PASSWORD

Last updated on 16 May 2018 / Published on 24 May 2018