Joke Collection Website - News headlines - Cisco router setup method and common configuration commands

Cisco router setup method and common configuration commands

Cisco router setup method and common configuration commands

How to set up a Cisco router is a common problem. Below I have prepared the setup method and common configuration commands for Cisco routers. Welcome to learn from them!

First, the basic setting mode

Generally speaking, there are five ways to set up a Cisco router:

1. Console interface terminal or microcomputer running terminal simulation software;

2.AUX interface is connected with MODEM, which is connected with remote terminal or microcomputer running terminal simulation software through telephone line;

3. Through TFTP server on Ethernet;

4. Through the TELNET program on Ethernet;

5. Manage the workstation through SNMP network on Ethernet.

However, the first setup Cisco Cisco router must be carried out by the first method, which is generally controlled by super terminal through com port. At this point, the hardware settings of the terminal are as follows:

Baud rate: 9600

Data bit: 8

Stop bit: 1

Parity: None

Second, the command operation

Cisco Cisco routers use IOS as the operating system. * * * has the following states:

1, router & gt

At router & gt At the prompt, Cisco router is in user command state. At this time, users can see the connection status of Cisco Cisco router and access other networks and hosts, but they cannot see and change the settings of Cisco Cisco router. Enter at this time? And press enter, you can view the commands available in this state. IOS allows you to view the commands available in a specific state at any time in this way. After typing enable and pressing enter, enter the password according to the system prompt (you don't need to enter the password when debugging a new Cisco router for the first time, just press Enter), and enter the # prompt to perform various operations on the Cisco Cisco router.

2. Router #

After entering the privileged command state router#, Cisco Cisco router can not only execute all user commands, but also view and change the settings of Cisco Cisco router. At this time, you can set the name, password, etc. Cisco router.

3. Router (Configuration) #

Type configure terminal at the router# prompt, and the router(config)# prompt will appear. At this point, Cisco Cisco router is in the global setting state, and you can set the global parameters of Cisco Cisco router.

4. Router (config-if) #;

Router (configuration line) #;

Router (Configuration-Router) #; ?

Cisco Cisco router is set locally, so you can set the parameters of the local Cisco router.

5.Cisco Cisco router is in RXBOOT state. Press ctrl-break within 60 seconds after startup to enter this state. At this time, Cisco Cisco router can't complete normal functions, so it can only perform software upgrade and manual boot. In this state, password recovery can be performed.

Third, common commands

1. Help

In IOS operation, you can type? Get help from the system. The commands available at this time will be displayed.

2. Change the command status

Task command

Enter the privileged command state enable.

Exit privileged command status disabled.

Enter the settings dialog box to set the status.

Enter the global setting state to configure the terminal.

Exit the global setting state and end.

Enter the port setting status interface type slot/number.

Enter the port setting status interface type number. Subinterface [Point-to-Point | Multipoint].

Enter the line setting state. Line type slot/number.

Enter the router protocol in the routing setting state.

Exit local setting state exit.

Display command

Task command

View version and boot information display version

Check the running settings and display the running configuration.

Check the startup settings to display the startup configuration.

Displays the interface type slot/number of the port information.

Display ip router display routing information.

4. Copy command

Used for backup and upgrade of IOS and configuration.

5. Network command

Task command

Log in to the remote host telnet hostname |IP address.

Network detection ping hostname |IP address

Route trace trace hostname |IP address

6. Basic Settings Command

Task command

Global setting configuration terminal

Set access user and password username username password.

Set privileged password to enable encryption password.

Set the Cisco router name hostname.

Set static route IP route destination subnet mask Next hop

Start ip routing IP routing

Start Ipx routing IPX routing

Port Settings Interface Type Slot/Number

Set the ip address subnet mask.

Set Ipx network network

The activation port is not closed.

The physical line sets the line type number.

Start the login process to log in to [local |tacacs server]

Set the login password password

This paper describes how to perform the basic settings, basic command operations, common command operations and overall settings of Cisco routers, and describes some basic service settings.

Fourth, the overall setting

In the router# privileged command state, you can use setup to design the Cisco router as a whole, which can save the trouble of manual setting. But it can't completely replace manual setting, and some special settings must be completed by manual input.

After entering the setup dialog box, the Cisco router will first display some prompts:

-System Configuration Dialog Box-

You can always enter a question mark "?" Ask for help.

Use ctrl-c at any prompt to abort the configuration dialog box.

The default setting is in square brackets "[]".

Does this tell you that you can type anywhere in the process of establishing a dialogue? With the help of the system, press ctrl-c to exit the setup process, and the default settings will be displayed in? []? Medium. The Cisco router will ask you if you want to enter the Settings dialog box:

Do you want to enter the initial configuration dialog box? [Yes]:

If you press y or enter, the Cisco router will enter the setup dialog box. First, you can see the current status of each port:

First, do you want to see the current interface summary? [Yes]:

Are any interfaces with OK listed? The value "No" has no valid configuration.

InterfaceIP-AddressOK? Method state protocol

Ethernet0unassignedNOunsetupup

Serial0unassignedNOunsetupup

?

Then, the Cisco router starts to set global parameters:

Configure global parameters:

1. Set the Cisco router name:

Enter host name [router]:

2. Set the password to enter the privileged state, which will not be displayed in clear text after setting:

The enabling secret is a one-way encryption secret used.

Instead of enabling the password (if it exists).

Enter the enabling password: cisco

3. Set the password to enter the privileged state, which will only work if there is no ciphertext. After setting, it will be displayed in plain text:

When there is no enabling password, the enabling password is used.

When using old software and some boot images.

Enter the activation password: pass.

4. Set the password when accessing the virtual terminal:

Enter the virtual terminal password: cisco.

5. Ask if you want to set up various network protocols supported by Cisco routers:

Configure SNMP network management? [Yes]:

Configure DECnet? [no]:

Configure AppleTalk? [no]:

Configure IPX? [no]:

Configure IP? [Yes]:

Configure IGRP routing? [Yes]:

Configure RIP routing? [no]:

?

6. If the dial-up access server is configured, the system will also set the parameters of the asynchronous port:

Configure asynchronous lines? [Yes]:]

1) Set the maximum speed of the line:

Asynchronous linear speed [9600]:

2) Whether to use hardware flow control:

Configure hardware flow control? [Yes]:

3) Whether to set up a modem:

Configure for the modem? [Yes/No]: Yes

4) Whether to use the default modem command:

Configure the default chat script? [Yes]:

5) Whether to set PPP parameters for asynchronous ports:

Configure dial-in IP SLIP/PPP access? [No]: Yes

6) Whether to use dynamic IP address:

Configure dynamic IP address? [Yes]:

7) Whether to use the default IP address:

Configure the default IP address? [No]: Yes

Whether to use TCP header compression:

Configure TCP header compression? [Yes]:

9) Whether to use routing table update on asynchronous port:

Configure routing updates on asynchronous links? [no ]: y

10) Whether to set other protocols on the asynchronous port. Next, the system will set parameters for each interface.

1. Configure interface Ethernet 0:

1) Do you want to use this interface?

Is this interface in use? [Yes]:

2) Whether to set the IP parameters of this interface:

Configure IP on this interface? [Yes]:

3) Set the IP address of the interface:

IP address of the interface:192.168.162.2.

4) Set the IP subnet mask of the interface:

Number of bits in subnet field [0]:

Class C network is192.168.162.0,0 subnet; The mask is /24.

After setting all interface parameters, the system will display the results of the whole setting dialogue process:

The following configuration command scripts were created:

Hostname router

Enable secret 5 $ w5oh $ p6j7tigrmboikvxvg53uh1

Enable password passing

Please note that the garbled code is displayed after the password is enabled, while the setting content is displayed after the password is enabled. In other words, the priority of the secret password is relatively high, and the secret password only works when both passwords are set.

After the display, you will be asked whether to use this setting:

Use this configuration? [Yes/No]: Yes

If the answer is yes, the system will store the setup results in NVRAM of the Cisco router, and then end the setup dialogue process, so that the Cisco router can start working normally.

Verb (abbreviation for verb) WAN protocol settings

Pakistan people's party

PPP (Point-to-Point Protocol) is the successor protocol of SLIP (Serial Line IP Protocol), which provides the connection from Cisco router to Cisco router and host to network through synchronous and asynchronous circuits.

CHAP (challenge handshake authentication protocol) and PAP (Password Authentication Protocol) are commonly used to provide security authentication on serial lines encapsulated by PPP. With CHAP and PAP authentication, each Cisco router is identified by its name, which can prevent unauthorized access.

Task command

Set PPP encapsulation ppp 1.

Set the authentication method PPP authentication {chap | chap pap | pap chap | pap }[ if necessary] [list-name | default] [callin].

Specify password, user name and password secret.

Set the linear speed clock rate of DCE end.

;