Cisco Programming#

— I’m rebuilding this; use as a last ditch option for notes only —

S220 (Custom?)#

Default speed 115200

Helpful commands - Show#

show vlan

  • List the vLAN and show allocations

show management-vlan

  • show the current server’s management vLAN

show ip

  • show the current switch virtual IP (for management)

Helpful commands - Configure#

configure terminal

  • enter config mode

interface GigabitEthernet 15

  • set to use port 15

General Syntax#

  • ! : Comment line

  • erase startup-config : clear the startup config

  • reload : restart the router and reload config


SG350 (IOS)#

Modes of operation

User#

You will have “[name]>” in your console
“Exit” will disconnect your session (drops your level instead if you’re higher)

  • ping

  • show

  • etc

Enable moves you to Privileged

Privileged#

You will have “[name]#” in your console
Disable drops you back to user mode

  • User +

  • debug

  • reload (reboot)

“configure terminal” moves you to global config

Global Commands#

You will have a “[name] (config)#” in your console

hostname, enable secret (sets the password), ip route

“Interface enternet/serial/dsl/vlan/etc” moves you to interface configuration
“line ” moves you to line configuration

Interface Configuration#

You will have a “[name] (config-if)#” in your console
“end” will drop you to “priveleged” mode (2 levels). CTRL+Z also does this

Line Configuration#

You will have a “[name] (config-line)#” in your console

Useful commands#

CTRL+A - move to the start of the line

show running-config
show startup-config
show backup-config

  • all config

show version

  • uptime

  • restart reason

  • OS version, etc

  • features, etc

show interface

From Privileged mode:
enable password : Sets the pasword for EXEC mode
enable secret : Same as password, but encrypts the password. This is the only one that does it
From Config-line mode:
console password : Sets the console password
VTY password : Sets the telnet password

service password-encryption : dont store the passwords in the config

from config
banner motd # [messaage in here] #

from Privileged mode copy running-config startup-config
erase startup-config
on switch : delete vlan.dat … why?

Port is physical, interface is virtual
All ports are interfaces, not all interfaces are ports

configure virtual interface 1 interface vlan 1
ip address IP SUB
no shutdown


Router#