Switch Configuration


Commands

Config Mode

Make interface dedicated for mgmt

1
2
3
4
5
6
7
configure terminal
interface Gi 0/48
no interface port
int vlan1
shutdown
exit
ip default-gateway DEFAULT_GATEWAY

Set interface IP

1
2
3
configure terminal
interface Gi 0/48
ip address IP_ADDR SUBNET_MASK

“Activate” SSH RSA Key

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

Show interface status

1
do show interface status

Add passwords to console login thingy

1
2
3
4
5
6
7
configure terminal
line console 0
password YOUR_PASSWORD
line vty 0 4
login
password YOUR_PASSWORD
exit
In global config mode:
1
enable secret YOUR_PASSWORD