Cisco Router basic Configuration

Source: Internet
Author: User
Tags set time time and date

Configuration mode for Cisco routers

Configuration mode Prompt Enter command
Description
User mode Route>

User mode is the default mode when the router starts, provides limited access to the router, allows for non-destructive operations such as viewing the configuration parameters of the router, testing the connectivity of the router, etc., but cannot make any changes to the router configuration.
Privileged mode route# Enable Privileged mode can use all the configuration commands, and in privileged mode, you can also go to global mode.
route (config) # config terminal is the highest operating mode of the router, which can set parameters of hardware and software running on the router, configure each interface, routing protocol and WAN protocol, set up user and access password, etc.
line configuration mode
route (config-line) #

line{vty 0 4/console/aux}

line configuration mode can be configured for console access and remote login access.
Routing configuration Mode Route (Config-router) # Router Routing protocol Configuration of the router-related routing protocol into
Interface configuration mode
Route (config-if) # Interface interface The interface configuration mode can be used to manage the IP address, interface mode and interface parameters of the related interface.

General configuration steps for Cisco routers :

---------------------------------------------------------------------------------

Router>

Router>enable

Router#conf T

Router#conf T

Enter configuration commands, one per line. End with cntl/z.

Router (config) #line console 0/ * settings from global configuration mode into console line configuration mode * /

Router (config-line) #password Cisco/ * sets Cisco for the console password, and the next time a user enters the console using HyperTerminal, the correct password must be entered * /

Router (config-line) #logging synchronous/ * enable synchronization and will not be blocked by the Router automatically sending information when the Cisco command is entered, so that it becomes an incorrect Cisco command , the result is that the command you entered is incorrect. After the synchronization is enabled, the router will return the cursor to the command input after displaying the boot port information or sending the routing information, so that the user can continue to enter the complete command. */

Router (config-line) #exec-timeout 0 0/ * defines the console exec session time-out. This example is set to 0 0, which means 0 minutes and 0 seconds (i.e. never time out), which is not recommended for security reasons in real-world applications. */

Router (Config-line) #exit/ * Execute this command in any state to return to the ancestor mode * /

Router (config) #hostname R1/ * Configure the router with the name r1*/

R1 (config) #enable password Cisco/ * Configure Router to enter privileged mode password by user mode (clear text password with show Running-config can be viewed) for cisco*/

R1 (config) #enable secret cisco/ * Configure Router to enter privileged mode password by user mode (encrypted password is not viewable with show Running-config) for Cisco, the command sets a password priority higher than enable Password Set Password * /

R1 (config) #no IP domain-lookup/ * turn off the domain name resolution, the wrong command will not send the broadcast packet, which can save time, if you open the domain name resolution to send a broadcast packet to the domain to find this command, this will be a waste of time. */ 

R1 (config) #line vty 0 4/ * Enter the virtual Terminal line configuration mode line configuration mode * /

R1 (config-line) #password Cisco/ * set Cisco for remote login virtual terminal password * /

R1 (Config-line) #login/ * settings when the user router is Telnet, the router prompts the user, asking for a password * /

R1 (config-line) #end / * return to privileged mode */

R1#show IP Interface Brief / * View Router interface information * /

Interface ip-address OK? Method Status Protocol

gigabitethernet0/0 Unassigned YES unset administratively down

GIGABITETHERNET0/1 Unassigned YES unset administratively down

Vlan1 Unassigned YES unset administratively down

r1#conf t/ * Enter global configuration mode * /

R1 (config) #interface g0/0/ * interface configuration mode into the Fast Ethernet port g0/0 * /

R1 (config-if) #ip address 192.168.1.1 255.255.255.0/ * Configure the IP address and subnet mask of the interface * /

R1 (config-if) #no shutdown/ * enable the port * /

r1#End

R1#copy running-config startup-config/ * save Related configuration * /

Destination filename [startup-config]?

Building configuration ...

[OK]

--------------------------------------------------------------------------------------------------------

Additional Setup Instructions

First, set the port description information

1. Set Port description Information

Router>enable

Router#configure Terminal

Router (config) # interface fa0/0

Router (config-if) # Description link to GDGM/* Describes that the port is used to connect to gdgm*/

Router (config-if) # End

2. Viewing port description Information

Router#show Interface fa0/0

second, set up the router login welcome information  

Router>enable

Router#configure Terminal

Router (config) # banner MOTD #/*mode After the # cannot be less, #前面也必须有空格 */Welcome to GDGM #/* Two # to pair, the middle content is welcome message */

Router (config) #end

Router#exit/* Display router logon information when exiting privileged mode and re-entering user mode */

Press RETURN to get started Welcome to GDGM

Router>

Third, set the timezone, time and date

1. View router time router#show clock 2. Setting the time zone

Router#config Terminal

Router (config) #clock timezone Peking +8

Router (config) #end 3. Set time and date

Router#clock set 08:10:00 May 10 2007

Iv. View information about the router

1. Check the iOS version of the router, memory and flash size, router interface parameters and configuration registration values and other parameters.

router# Show version

2. Check the size of the router flash and the iOS system file size and its iOS file name.

Router#show Flash

3. View the utilization of the router's CPU resources.

Router#show processes

4. View the size of the dynamic memory and some related information.

Router#show Memory

5. Look at the configuration information that the router is currently running, that is, the configuration information in RAM.

router# Show Running-config

6. View the contents of the Startup-config configuration file that the router holds in NVRAM.

router# Show Startup-config

7. View the user logged on to the router

router# Show User

8. View summary information for all interfaces of the router.

Router#show IP Interface Brief

9. View the current running state information for an interface on a router.

Router#show Running-config Interface fa0/0

10. View complete information for a router interface

Router#show Interface Serial 0

11. View the Router connection cable type (DTE and TCE are used to view the distinction using this command)

Router#show Controllers Serial 0

12. View the router access control list

Router#show access-list


Cisco Router basic Configuration

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.