cisco-ios-general.md 4.2 KB


title: Cisco IOS General breadcrumbs:

  • title: Configuration
  • title: Network --- {% include header.md %}

Related Pages

{:.no_toc}

Resources

System

  • Memories:
    • ROM: For bootstrap stuff.
    • Flash: For IOS images.
    • NVRAM: For startup configuration files.
    • RAM: For running config, tables, etc.

Boot

  • IOS image sources (in default order): Flash, TFTP, ROM.
  • Startup config sources (in default order): NVRAM, TFTP, system configuration dialog.
  • Some details may be configured using the configuration register.

Modes

  • User EXEC mode (Router>):
    • Used to run basic, non-privileged commands, like ping or show (limited).
    • Entered when logging in as "not very privileged" users.
  • Privileged EXEC mode (Router#) (aka enable mode):
    • Used to run more privileged (all) commands.
    • Entered when logging in as "privileged" users or when running enable from user EXEC mode.
  • Global configuration mode (Router(config)#) and special configuration mode (Router(config-xxx)#):
    • Used to configure the unit.
    • Global configuration mode is entered by running configure terminal in privileged EXEC mode.
    • "Special" configuration mode (it's not actually collectively called that) is entered when configuring an interface, a virtual router interface, a console line, a VLAN etc. from global configuration mode.
  • Setup mode:
    • Used to interactivly configure some the "basics".
    • Entered when loggin into a factory reset unit or when running setup.
    • Completely useless, never use it.
  • ROM monitor mode (aka ROMMON).

Configuration

Usage and Basics

  • Most commands take effect immediately.
  • Select range of interfaces: int range g1/0/1-52 (example)
  • Reset interface(s): default int [range] <if>[-<end>]
  • CLI interaction:
    • Tab: Auto-complete.
    • ?: Prints the allowed keywords.
    • | <filter>: Can be used to filter the output using one of the filter commands.
  • Save running config: copy run start or write mem
  • Restore startup config: copy start run
  • Show configurations: show [run|start]
    • | section <section> can be used to show a specific section.

AAA

  • Disable the password-encryption service, use encrypted passwords instead. Perferrably type 9 (scrypt) secrets if available.
  • Set enable secret (for entering privileged EXEC mode): enable algorithm-type scrypt secret <secret>
  • Enable user auth: aaa new-model
  • Local user database:
    • Enable local database: aaa authentication login default local
    • Add user: username <username> privilege 15 algorithm-type scrypt secret <password>
      • privilege 15 means the user will enter directly into privileged EXEC mode.
      • algorithm-type scrypt means it will use the secure scrypt password hashing algorithm.
  • TACACS+:
    • TODO

Lines

  • Includes the console line and vty (telnet/SSH) lines.
  • Configured using line conf. mode: line <con|vty> <n>
  • Set inactivity logout: exec-timeout <min> <sec>
    • 0 0 disables it, which is practical for labs.
  • Enabel synchronous logging for console: logging synchronous
  • (Not recommended) Enable simple password-based console login:
    1. Enter line conf. mode.
    2. Enable login: login
    3. Set console password: password [alg] <password>
  • (Recommended) Enable user-based console login:
    1. Enter line conf. mode.
    2. Enable login: login
    3. Set to use the local database: login authentication default

Miscellanea

Version and Image String Notations

  • Version 12 notation (e.g. 12.4(24a)T1):
    • Major release (12).
    • Minor release (4).
    • Maintenance number (24).
    • Rebuild number (alt. 1) (a).
    • Train identifier (T).
    • Rebuild number (alt. 2) (1).
  • Version 15 notation (e.g. 15.0(1)M1):
    • Major release (15).
    • Minor release (0).
    • Feature release (1).
    • Release type (M).
    • Rebuild number (1).
  • If it has K9 in the image name, it has cryptographic features included. Some images don't because of US export laws.

{% include footer.md %}