Basic configuration command set for Cisco switches (1)

Source: Internet
Author: User
Tags cisco switch

Switch configurationIt plays an important role in the network topology. It not only connects to the same type of network, but also acts as an interconnection between different types of networks. Therefore, vswitch configuration is a very important link, but basicCommandThe statement is the basis for implementing the switch configuration. The following describes the Cisco switch commands Based on vswitch 1924:

Sw1924_ B # delete nvram

Clear all configurations of the vswitch

Sw1924_ B # reload

Restart the vswitch. The initial prompt is>)

Sw1924_ B # hostname sw1924

Set the vswitch Host Name

Sw1924_ B # enable secret cisco

Set encryption Password

Sw1924_ B # enable password level 1 cisco1

Set Level Password 1 to the lowest)

Sw1924_ B # enable password level 15 cisco15

Set the top 15 password levels)

Sw1924_ B # ip address 192.168.14.1 255.255.0

Set the management IP address of a vswitch

Sw1924_ B # ip default-gateway 192.168.198.2

Set the gateway address of the vswitch

Sw1924_ B # ip domain-name pctc.com.cn

Set the Domain Name of the domain connected to the vswitch

Sw1924_ B # ip name-server 218.87.18.230

Set the IP address of the Domain Name Server in the domain connected to the vswitch

Sw1924_ B # show ip

View the preceding Environment

Sw1924_ B # show version

View vswitch version and other information

Sw1924_ B # show running-config

View All information such as the current running configuration of the vswitch.

Sw1924_ B # show int e0/1

View the 1st ports of a vswitch

2912 vswitch Configuration

Sw2912_a # erase nvram

Clear all configurations of the vswitch

Sw2912_a # reload

Restart the switch. The initial prompt is switch>)

Sw2912_a # int vlan 1

Enter vlan 1 special interface configuration mode

Sw2912_a # ip address 192.168.15.1 255.255.255.0

Set the management IP address of a vswitch

Sw2912_a # ip default-gateway 192.168.198.2

Set the gateway address of the vswitch

Sw2912_a # ip domain-name pctc.com.cn

Set the Domain Name of the domain connected to the vswitch

Sw2912_a # ip name-server 218.87.18.230

Set the IP address of the Domain Name Server in the domain connected to the vswitch

Sw2912_a # show int vlan 1

View VLAN 1 special interface configuration information of a vswitch

Sw2912_a # show run

View All information such as the current running configuration of the vswitch.


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.