Cisco router configuration mode
In general, you can configure your router in 5 ways:
1.Console Port connection terminal or running terminal simulation software of the microcomputer;
2.AUX Port Connect modem, connect with remote terminal or computer running terminal simulation software by telephone line;
3. Via the TFTP server on the Ethernet;
4. Adoption of the Telnet procedure on the Ethernet;
5. Through the SNMP network management workstation on Ethernet.
But the first setting of the router must be done in the first way; the hardware of the terminal is set to baud rate: 9600, data bit: 8,
Stop bit: 1, no checksum.
Ii. State of command
1.router>
The router is in a user command state, at which point the user can see the connection state of the router, access other networks and hosts, but cannot see and change the contents of the router's settings.
2.router#
The router is in a privileged command state, not only to execute all user commands, but also to see and change the settings of the router.
3.router (config) #
The router is globally set, and you can set the router's global parameters.
4.router (config-if) #;
Router (config-line) #;router (config-router) # ...
The router is in a local setting, and you can set parameters for a local router.
5. Only >
The router is in Rxboot state, in the 60 seconds after the boot ctrl-break can enter this state, when the router can not complete the normal function, only software upgrades and manual guidance.
6. Set the dialog state This is the state of automatically entering when a new router is powered on, and the Setup command in Privileged command state can also enter this state. In this case, the router can be set up by way of conversation.
Third, set up the dialogue process (learn computer)
Use the Setup dialog to avoid the cumbersome manual input, but it can not completely replace the manual settings, some special settings must also be manually entered the way to complete.
After you enter the Setup dialog process, the router first displays some information:
---systemconfigurationdialog---atanypointyoumayenteraquestionmark '? Forhelp.
Usectrlctoabortconfigurationdialogatanyprompt.
Defaultsettingsareinsquarebrackets ' [] '.
Does this tell you that you can type "anywhere in the setup dialog?" "With help from the system, press CTRL-C to exit the setup process and the default setting will appear in ' [] '. The router then asks whether to enter the Setup dialog:
Wouldyouliketoentertheinitialconfigurationdialog? [Yes]:
If you press Y or enter, the router enters the Setup dialog process. First you can see the current status of each port: First,wouldyouliketoseethecurrentinterfacesummary? [Yes]
: Anyinterfacelistedwithok? Value "NO" Doesnothaveavalidconfigurationinterface ip-address OK? Nethod Status Protocol
Ethernet0 Unassigned NO unset up
Serial0 Unassigned NO unset up
...... ...... ... ...... ... ...
The router then starts setting the global parameters:
Configuringglobalparameters:
1. Set Router name:
Enterhostname[router]:
2. Set into the privileged state of ciphertext (secret), This redaction will not be displayed in clear text after setting: Theenablesecretisaone-waycryptographicsecretusedinsteadoftheenablepasswordwhenitexists. --enterenablesecret:cisco
3. Set access to the privileged state of the password (password), this password only in the absence of ciphertext effect, And will be displayed in clear text after Setup: Theenablepasswordisusedwhenthereisnoenablesecretandwhenusingoldersoftwareandsomebootimages.--enterenablep Assword:pass
4. Set the virtual terminal access to the leaf password:--entervirtualterminalpassword:cisco
5. Ask if you want to set up the various network protocols supported by the router:
--configuresnmpnetworkmanagement? [Yes]:
--configuredecnet? [No]:--configureappletalk? [No]:
--configureipx? [No]:--configureip? [Yes]:
--configureigrprouting? [Yes]:
--configureriprouting? [No]:
6. If the Dial-up access server is configured, the system also sets parameters for the asynchronous port:
--configureasynclines? [Yes]:
1) Set the maximum speed of the line:
--ASYNCLINESPEED[9600]:
2 whether to use hardware flow control:
--configureforhwflowcontrol? [Yes]:
3 Do you want to set up Modem:--configureformodems? [Yes/no]:yes
4 whether to use the default modem command:
--configurefordefaultchatscript? [Yes]:
5 whether to set the PPP parameters of the asynchronous port:
--configurefordial-inipslip/pppaccess? [No]
6 whether the use of dynamic IP address:-
-configurefordynamicipaddresses? [Yes]:
7 whether to use the default IP address:
--configuredefaultipaddresses? [No]:yes
8 whether to use TCP header compression:
--configurefortcpheadercompression? [Yes]:
9 Whether to use routing table updates on the asynchronous port:
Configureforroutingupdatesonasynclinks? [No]:y
10 whether to set up other protocols on the asynchronous port.
Next, the system will set up an interface row parameter.
7.configuringinterfaceethernet0:
1 whether to use this interface:
--isthisinterfaceinuse? [Yes]:
2 whether to set the IP parameters for this interface:
--configureiponthisinterface? [Yes]:
3 Set the IP address of the interface:
--ipaddressforthisinterface:192.168.162.2
4 Set the IP subnet mask of the interface:
--NUMBEROFBITSINSUBNETFIELD[0]:
--classcnetworkis192.168.162.0,0subnetbits;maksis/24
After setting the parameters of all interfaces, the system displays the results of the entire Setup dialog: thefollowingconfigurationcommandscriptwascreated:
Hostnamerouter
Enablesecret5$1$w5oh$6j7tigrmboikvxvg53uh1
Enablepasswordpass
............
Note that after the Enablesecret is garbled, and the Enablepassword is displayed after the set content.
When the display is finished, the system asks if you want to use this setting;
Usethisconfiguration? [Yes/no]:yes
If yes, the system stores the results of the settings in the NVRAM of the router, and then ends the setup dialog so that the router starts working properly.
Iv. Common Commands
1. Help in iOS operations, regardless of state and position, you can type "? "Get the system help.
2. Change command status into privileged command status enable
Exit Privileged Command status disable
Enter Settings dialog state Setup
Enter global setting State configterminal
Exit global setting State end
Enter port setting status Interfacetypeslot/number
Enter the child port setting status Interfacetypenumber. Subinterface[point-to-point multipoint]
Enter line setting status Linetypeslot/number
Enter the routing settings state Routerprotocol
Exit Local Settings State exit
3. Display command
View version and bootstrap information showversion
View Run Settings Showrunning-config
View power-on Settings Showstartup-config
Display port Information Showinterfacetypeslot/number
Display Routing Information showiprouter
4 Copy command
Backup and upgrade for iOS and Config
5. Network command
Log on to a remote host telnethostname/ipaddress
Network Detection Pinghostname/ipaddress
Route tracking Tracehostname/ipaddress
6. Basic Setup Command
Global Settings Configterminal
Set Access user password Usernameusernamepasswordpassword
Set Privileged password Enablesecretpassword
Set Router name Hostnamename
Set Static routing Iproutedestinationsubnet-masknext-hop
Start IPX Routing ipxrouting
Port Settings Interfacetypeslot/number
Set IP address Ipaddressaddresssubnet-mask
Set IPX network Ipxnetworknetwork
Activate Port Noshutdown
Physical Line Setup Linetypenumber
Start the logon process login[local Tacacsserver]
Set Login Password Passwordpassword