Cisco Commands: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
  enable
  enable


Enter global configuration mode
Enter global configuration mode (You can use the <code>do</code> prefix to run regular commands from the config mode if you don't feel like running <code>exit</code> first)
  configure terminal
  configure terminal


Line 27: Line 27:
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.
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
  service password-encryption
Show IP Address assigned to each interface
show ip interface brief


<hr>Global configuration commands<hr>
<hr>Global configuration commands<hr>

Latest revision as of 00:14, 3 September 2025


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 (You can use the do prefix to run regular commands from the config mode if you don't feel like running exit first)

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

Show IP Address assigned to each interface

show ip interface brief 

Global configuration commands


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

hostname

Configure the console port (0)

line con 0

Configure the interface "vlan 1"

interface vlan 1

Console port configuration commands


Add a password to console port access

password itsasecret

Force users to enter the password to login

login

Interface configuration commands


ip address 192.168.0.1 255.255.255.0

Change interface state to "up"

no shutdown