Simple configuration of Cisco switches

Source: Internet
Author: User
Tags config switches

1. Switch is the 2nd tier of equipment, mainly as workstations, servers, routers, hubs and other switches of the concentration point

2. The switch includes the central processing unit (CPU), random memory (RAM) and operating system.

3. Configuration mode of the switch:

1> General User mode: Limited permissions for routers are logged on to the default state of the machine.

Identification:switch>

2> Privileged mode: Check, configure, Debug and so on all permissions, through enable to enter this state

Logo: router#

3> Global Setting state: Enter config terminal in the privileged execution state to enter the state

ID: Router (config) #

4> Other setting states: Enter the appropriate command when the privileged execution state is entered, such as interface configuration mode, VLAN configuration mode

4. Configuration of host name

Command: hostname

In global configuration state, such as host name modified to test

Switch (config) #hostname test

Test (config) #

5. Password configuration

There are two types of password configuration: Enabling password (enable password), enabling passwords (Enable secret)

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/jhjs/

Their difference: Passwdor is shown in clear text, secret is displayed in ciphertext, if both modes are set, then secret will work, after secret elimination, password will work again.

Test (config) #enable secret 123456

Test (config) #enable password 654321

6. Basic configuration of interface

Interface configuration mode can be entered in global mode

Test (config) #int F0/1

Test (CONFIG-IF) #

Interface full Duplex configuration, command is Duplex{full | halt | auto}

Test (config-if) #duplex Auto

Switch interface Speed configuration: command: speed{10 | |1000 |auto}

Test (config-if) #speed 100

7. Configuration Management Address

Configure IP addresses on VLAN 1

Test (config) #int vlan 1

Test (CONFIG-IF) #ip address 192.168.1.10 255.255.255.0

Test (CONFIG-IF) #no shutdown

Test (config-if) #ip Default-gateway 192.168.1.254

Test (config) #

8. Telnet into the switch using the host

The switch is also allowed to be telnet, but to configure a VLAN IP address on the switch, this step has been completed, and the next thing to configure is vty,

Test (config) #line vty 0 4

(A connection using Telnet is called a virtual terminal (vty) session, line vty 0 4 means to open 5 user virtual terminals such as 0,1,2,3,4)

Test (Config-line) #pass 456 (telnet login password)

Test (Config-line) #login

(login is generally entered, you need to enter the password to log into this switch, if you use no login, you can enter without the need to input a password)

Test (Config-line) #enable secret 789

(This is the password that is set to enter privileged mode after Telnet)

Note: If a password is set in the vty, the password set in global mode will be replaced by the password in the vty

9. Save Configuration

Switch#copy Running-config Startup-config

Destination filename [startup-config]?

Building configuration ...

[OK]

(This command means to save the current device's running configuration to Flash)

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.