The first stage of Linux operation and Maintenance course Summary (iii) CISCO

Source: Internet
Author: User

A summary of the first-stage heavy difficulties notes (III.) Cisco

First, Introduction: IOS(internetwork Operating System), which is typically configured through a text-based command lineINTERFACE,CLI.

    • 1. Basic operation:

Operation mode Switching

A user mode:router> typically view statistics

b Privileged mode:router>enable

router# # Viewing and modifying the configuration of a router

Router#disable

C Global configuration mode:router#configuration terminal

Router (config) #exit (ctrl + Z)

2, Help and command completion:? and <tab> keys

3. Supported shortcut keys:ctrl+u,ctrl+e,ctrl+a

4. History command:#show Terminal # View terminal configuration with history command save number

#show History # View Historical Commands

# Press the up and down keys of the arrow keys to toggle the commands of the most recent operation

#terminal history size? # can modify history command to save the number of bars

#show version

    • Password management for routers and switches:

1. Set host name:R1 (config) #hostname SC

2. to set login prompt information:

A defines the date information marker #banner MOTD i (i is a segmentation qualifier, which can be any character )

B Define Login information tag #banner login I

3. Set Password:

interface:console port (local interface, no password can be managed), Virtual interface password (TELNET,SSH), aux interface.

A set the privileged mode password:

R1 (config) #enable password 123 set privileged non-secret password

R1 (config) #enable secret 456 set privileged encryption password

b setting the console interface login password

R1 (config) #line console 0

R1 (config-line) #password 123

R1 (config-line) #login enable password check, let the password take effect, if no password will be error

R1 (config-line) #exec-timeout 0 0 Set the reply time -out time, the format is 0 minutes 0 seconds, the default of no operation will be kicked out

R1 (config-line) #logging Synchronous block console information to avoid disturbing command input

C setting TELNET login Password

R1 (config) #line vty 0 15

R1 (config) #password 123

R1 (config) #login (no login means allow telnet without password login, not allowed)

d Password Encryption

R1 (config) #service password-encryption to enable encryption service, all passwords are ciphertext saved

4. SSH login

R1 (config) #hostname SC

SC (config) #ip domain-name lamp

Sc#clock set 23:32:17 9 Apr # Set the hostname and time of the host name, use when generating the key

SC (config) #crypto key generate RSA # generates the encryption key, uses RSA encryption, generates the 768 key , if the number of bits is less than the bit, cannot use 2 Generation Ssh

SC (config) #aaa new-model# enable AAA mode (authentication\authorization\accounting, authentication, authorization, bookkeeping)

SC (config) #username cisco password cisco# set user name and password

SC (config) #ip ssh time-out 120# set time-out

SC (config) #ip ssh authentication-retries 5 # Set maximum number of failures

SC (config) #ip SSH version 2

SC (config) #line vty 0 15

SC (config) #transport input ssh# only allow SSH login, Telnet must set the privileged mode password, otherwise you cannot log in

The first stage of Linux operation and Maintenance course Summary (iii) CISCO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.