Cisco switch configuration key steps and statements

Source: Internet
Author: User
Tags config switches domain name server cisco switch

It is also helpful to understand some of the knowledge about switch configuration, and here we explain the main statements and procedures for Cisco switch configuration. Last talk with you about how to properly connect the switch, today with some configuration clips to introduce the port configuration. Given that most of the online configuration cases are show-run results. Not conducive to novice understanding of the command configuration process, so the author of the Cisco switch configuration clips and attention to the place are noted, I hope to help beginners quickly understand how to configure the switch correctly.





when iOS enters commands as long as the abbreviation does not cause confusion, use the Cisco switch configuration commands can be used in the form of abbreviations. For example: switch>enable, in user mode, the command to start with en only enable, so it can be abbreviated as switch>en. You can also use the TAB key to automatically complete the command, such as switch>en, press the Keyboard tab after the automatic completion of the switch>enable.


shortcut key:





1.ctrl+a: Move the cursor quickly to the beginning of the entire line


2.ctrl+e: Move the cursor quickly to the end of the entire line


3.esc+b: Back 1 words


4.ctrl+b: Back 1 characters


5.esc+f: forward 1 words


6.ctrl+f: Forward 1 characters


7.ctrl+d: Delete individual 1 characters


8.Backspace: Delete individual 1 characters


9.ctrl+r: 1 rows re-displayed


10.ctrl+u: Erase 1 whole line


11.ctrl+w: delete 1 words


12.ctrl+z exit from Global mode to privileged mode


13.Uparrow or ctrl+p: Displays the last command entered.


14.Downarrow or CTRL + N: Displays the command configuration enable password and host name that you just entered before.





switch.>/* User Direct Line mode prompt


switch.>enable/* into privileged mode


switch.#/* Privileged mode prompt


Switch. #configterminal/* Enter configuration mode


Switch. (config) #/* configuration mode prompt


Switch. (config) #hostnamePconline/* Set host name Pconline


pconline (config) #enablepasswordpconline/* Setting enables password to be pconline


pconline (config) #enablesecretnetwork/* Setting enables the password to be network


pconline (config) #linevty015/* Set up the virtual terminal line


pconline (config-line) #login/* Set Login verification


pconline (config-line) #passwordskill/* Set the virtual terminal login password





Note: By default, if you do not set the virtual terminal password can not be telnet from the remote, remote telnet will be prompted to set the login password. Many beginners will think that Nologin is unable to log from the remote, in fact, Nologin is the representative does not need to verify the password can be from the remote telnet to the switch, anyone can telnet to the switch this is very dangerous, you must note that the Cisco switch configuration IP address, default gateway, domain name , Domain Name server:





should note that the IP address, gateway, domain name, etc. set in the switch is set for managing the switch, regardless of the network device connected to the switch, that is, if you do not configure IP information, plug the cable into the port, so you can work.





pconline (config) #ipaddress192.169.1.1255.255.255.0/* Set Switch IP address/


Pconline (config) #ipdefault-gateway192.169.1.254/* set the default gateway


pconline (config) #ipdomain-namepconline.com/* set the domain name


pconline (config) #ipname-server200.0.0.1/*





set domain Name server Configure switch Port properties: Switch default port settings automatically detect port speed and duplex state, that is, Auto-speed,auto-duplex, generally do not need to set each port. However, according to the Cisco technical white Paper, access to the network device to change the port information situation, it is recommended directly to the Cisco switch configuration appropriate speed and duplex information.




The
speed command can be selected with 10,100 and Auto, representing 10mb/s,100mb/s and automatic negotiation speed respectively. The Duplex command can also select Full,half and Auto to represent Full-duplex, Half-duplex, and auto-negotiate duplex status respectively. The description command is used to describe a specific port name, and it is recommended that you describe the special port: Assuming that the device with Port 1 is now 100mb/s, the duplex State is Full-duplex:





pconline (config) #interfacefastethernet0/1/* into the configuration mode of interface 0/1


pconline (config-if) #speed100/* The rate of setting this port is 100mb/s


pconline (config-if) #duplexfull/* Set this port to full duplex


pconline (config-if) #descriptionup_to_mis/* Settings This port is described as Up_to_mis


pconline (config-if) #end/* Back to Privileged mode


pconline#showinterfacefastethernet0/1/* Query Port 0/1 configuration results





Configure switch port mode:





Switch port mode of operation can generally be divided into three kinds: access,multi,trunk. Trunk mode ports are used for switches and switches, switches and routers, mostly for cascading network devices, so it is also called trunk mode. Access is used for both the access layer and the access mode. We first introduce trunk mode and access mode, multi mode, and so on when we introduce VLAN settings and then introduce. 3lian.com





Interfacerange can be configured for a set of ports that can be set up using the Spanning-treeportfast command if a known port is connected directly to a PC and does not connect to the routing switch and Hub. The fast port no longer experiences the four states of the spanning tree and goes directly into the forwarding state to improve the access speed. Pconline1 (config) #interfacerangefastethernet0/1-20/* to 1-20 port configuration; Pconline1 (Config-if-range) # switchportmodeaccess/* set port to access mode; Pconline1 (config-if-range) #spanning-treeportfast/* set 1-20 port to fast port.




The
switch can be used for automatic negotiation in trunk mode, but as required if the port belongs to the main road it should be clearly indicated that the port belongs to the trunk mode: Pconline1 (config) #interfacefastethernet0/24/* Configure Port 24, Pconline1 (CONFIG-IF) #switchportmodetrunk/* port is trunk mode.





today mainly introduces some basic Cisco switch configurations and considerations for ports. After the introduction of the Switch intermediate configuration VLAN will be a large number of applications, although it is a number of simple commands, but if you want to achieve professional level, it requires to reach the skilled use of the stage


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.