Cisco Commands

From Lucca's Wiki
Revision as of 00:37, 27 August 2025 by 170.55.73.212 (talk)
Jump to navigationJump to search

These are commands for cisco IOS devices (switches, routers, etc)


List files in current directory

dir

List files in nvram

dir nvram:

Copy command destinatons (we use running-config as an example source file)

copy running-config cisco copy destinations

Elevate to root user

enable

Enter global configuration mode

configure terminal

Show startup config (the one stored in nvram for next boot)

show startup-config

Show running config (the one stored in ram and is currently in use)

show running-config

Copy the in-use config to the startup config so that it will be used on the next boot

copy running-config startup-config

Apply weak encryption to all unencrypted passwords. This only changes what is displayed in the config file, any password typed through a network cable is still transmitted in plain text.

service password-encryption

Global configuration commands


Change the machine's hostname (does not require a reboot)

hostname

Configure the vlan 1 interface

interface vlan 1

Interface configuration commands


ip address 192.168.0.1 255.255.255.0