Cisco Catalyst - Trunk Configuration

Here are steps to set port to trunk mode:

1. After connected to switch with console
2. Enter configuration mode
Switch> enable
Switch# Configure terminal

3. Clear the port to default
Switch(config)# default interface gigabitEthernet 1/0/24

4. Set the port to trunk
Switch(config)# interface gigabitEthernet 1/0/24
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native vlan 1
Switch(config-if)# exit

5. Save settings
Switch# copy running-config startup-config

Password Recovery for Cisco Catalyst Switches

Steps to reset password for Cisco Catalyst Switches:

1. Connect PC with console cable
2. Unplug the power cable to the switch
3. Reconnect the power to the switch. Press and hold the Mode button while System LED is flashing green. After System LED turns amber and then solid green, release the Mode button.

If process followed correctly, the following message should be displayed:

flash_init
load_helper
boot

4.Enter these commands into the switch

Switch: flash_init
Switch: load_helper
Switch: dir flash:
Switch: rename flash:config.text flash:config.text.old
Switch: boot

5. Once the switch boot, answer NO to “Would you like to enter initial/system configuration dialog? [yes/no]:

6. Get into the privilege prompt
Switch> enable

7. Get into global configuration
Switch# conf t
Switch(config)# enable secret y0urPa$$word
Or,
Switch(config)# username admin privilege 15 secret y0urPa$$word

8. Save config
Switch(config)# exit
Switch# copy run start
Switch# reload

Cisco 1262 WAP

Had to replace a dead WAP with this 1262 the other day, but the replacement had an automous config which need to be converted to lightweight for it to talk to WLC.

The WAP got an ip from DHCP which I needed to telnet to it later. (Otherwise would need a console cable)
Setup a tftp server (SolarWinds), which will serve the tar file.

Use putty, telnet to the WAP (u: cisco, p: Cisco)

ap> Enable
ap# archive download-sw tftp://<tftp-ip>/ap3g1-rcvk9w8-tar.124-23c.JA.tar
ap# wr mem
ap# reload

Cisco CLI Commands

For future reference:

ENABLE PASSWORD: example 1

switch> enable
switch# conf t
switch# enable password somethinghere
switch# end
switch# show running-config
switch# copy running-config startup-config


ENABLE PASSWORD: example 2

switch> enable
switch# conf t
switch# enable password level 15 0 cisco
switch# ip http server
switch# ip http authentication enable
switch# show running-config
switch# copy running-config startup-config


ENABLE WEB AUTHENTICATION:

switch> enable
switch# conf t
switch# ip http server
switch# end
switch# show running-config
switch# copy running-config startup-config


Other commands:

switch> enable
switch# show running-config
switch# copy running-config startup-config
(save the config)
switch> dir flash: (show flash files)
switch> rename flash:config.text flash:config.text.old
switch# sho run | inc http (show running config with http)
switch# ip http authentication local (using enable password/username saved in the switch)