Basic configurations of Cisco Router and Switch

Source: Internet
Author: User

Basic configurations of Cisco routers and switches: www.2cto.com Router> \ enter the user mode Router when the vro is started> enable \ type the command to enter the Router mode # \ This display mode indicates that the Router mode has been entered # configure terminal \ type this command to enter the global configuration mode Router (config) # \ This display mode indicates that the global configuration mode is in Router (config) # hostname 51cto \ enter this command to change the vro name to "51cto" to configure the Console Password 51cto (config) # line console 0 51cto (config_line) # login 51cto (config_line) # password cisco configuration console other parameters 51cto (config) # line console 051cto (confi G_line) # exec-timeout 0 0 \ configure the console port timeout value 51cto (config_line) # logging synchronous \ configure to display the synchronization configuration welcome information 51cto (config) # banner motd # (Press ENTER) to enter a welcome message and end. (Press ENTER) configure the vro password 51cto (config) # enable password cisco \ set the enable password to cisco51cto (config) for the vro) # enable secret ciscolab \ configure the vro port IP address 51cto (config) interface fastethernet 0/051cto (config-if) for the vro enabling password ciscolab) # ip add 192.168.1.1 255.255.255.051cto (config-if) # no shutdown51cto (config-if) # exit 51cto (config) # exit configuration vrof0 f0/0 port description 51cto (config) interface fastethernet 0/051cto (config-if) # description "information to be described" Enter the serial port configuration mode of the vro 51cto (config) # interface serial 0/051cto (config_if) # Set the serial clock frequency to 51cto (config) # interface serial 0/051cto (config_if) # clock rate 64000 set the serial bandwidth to 51cto (config) # interface serial 0/051cto (config_if) # bandwidth 64 configure static route 51cto (config) # ip route destination network subnet mask next hop address configure Default route 51cto (config) # ip route 0.0.0.0 0.0.0.0 next hop address 51cto # copy running-config startup-config \ save configuration information to the disk (stored in NVRAM) 51cto # show running-config \ view the current configuration information (Information in RAM) 51cto # show startup-config \ view the information of the saved disk (Information in NVRAM) 51cto # show ip route \ view route table information 51cto # show cdp neighbors \ check which cisco devices are connected to this vro 51cto # erase startup-config \ recover the vro to the factory configure 51cto # reload \ restart vro password recovery 1 start up press Ctrl + Break2 run confreg 0x21423 run reset4 run copy startup-config running-config copy vro configuration to running-config 5. Change the password in global configuration mode, run config-register 0x21026 copy running-config startup-config to save the information. 7. reload and restart the basic configuration of the vroswitch Switch: switch> \ The user mode Switch that the Switch enters when it is started> enable \ type this command to enter the authorization mode Switch # \ This display mode indicates that it has already entered the authorization mode Switch # configure terminal \ type this command to enter global configuration mode Switch (config) # \ This display mode indicates that the global configuration mode is in Switch (config) # hostname 51cto \ enter this command to change the Switch name to "51cto" 51cto (config) # enable password cisco \ set the enable password for the switch to cisco51cto (config) # enable secret cisco \ set the enable password for the switch to cisco51cto (config) # interface FastEthernet 0/10 \ enter the vswitch's Fast Ethernet port f0/1051cto (config-if) # description link to Server A \ configure the description of f0/10, description This port is connected to Server A1. port 51cto (config-if) # duplex full \ Configure port f0/10 as full-duplex 51cto (config-if) # speed 10 \ Configure port f0/10 to 10 Mb/s51cto (config-if) # exit \ exit port mode to global configuration mode 51cto (config) # exit \ exit from global mode to license mode 51cto # copy running-config startup-config \ Save the configuration information to the disk (stored in NVRAM) 51cto # show version \ view vswitch version information 51cto # show running-config \ view current configuration information (Information in RAM) 51cto # show startup-config \ view the information of the saved disk (Information in NVRAM) 51cto # show mac-address-table \ view vswitch MAC address table content 51cto # show cdp neighbors \ view which cisco devices are connected to this vswitch 51cto # erase startup-config \ restore the vswitch to factory configuration 51cto # reload \ restart the vswitch www.2cto.com Cisco ipvst2950 and resume the password 1. shutdown 2. press and hold the "MODE" key to start the instance. 3. when the Super Terminal shows that it has been started, release the "MODE" Key 4. run the flash_init command to view the flash content. dir flash: 5. run the "config. text File named "config. old "rename flash: config. text flash: config. old6. run boot to start vswitch 7. run the "config. the old file is renamed as "config. text "rename flash: config. old flash: config. text8. set "config. text is written into the system's "running-config" copy flash: config. text running-config9. change Password and save disk Information

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.