Switch Technology Introduction: Network Switch configuration skills

Source: Internet
Author: User
Tags cisco switch

3. Basic vswitch Configuration

After entering the configuration page, if this is the first configuration, You need to configure the IP address first, which is mainly for remote configuration later. The IP address configuration method is as follows:

Enter "I" in "Enter Selection:" On the configuration page that appears, and click Enter. The following configuration information is displayed:

The IP Configuration Menu appears.

Catalyst 1900-IP Configuration

Ethernet Address: 00-E0-1E-7E-B4-40

[I] IP address

[S] Subnet mask

[G] Default gateway

[B] Management Bridge Group

[M] IP address of DNS server 1

[N] IP address of DNS server 2

[D] Domain name

[R] Use Routing Information Protocol

------------- Actions -------------------

[P] Ping

[C] Clear cached DNS entries

[X] Exit to previous menu

Enter Selection:

Enter "Enter Selection:" at the end of the configuration interface and Enter the "I" letter again. Select the "IP address" option in the configuration menu to configure the IP address of the switch, after you click the Enter key, the following configuration page is displayed:

Enter administrative IP address in dotted quad format (nnn. Nnn. Nnn. Nnn): // press "nnn. Nnn. Nnn. Nnn "format input IP Address

Current setting ==> // the IP address before the switch is not configured is "", representing any IP Address

New setting ==> // enter a New IP address here

If you want to configure the subnet mask and default gateway of the vswitch, select "S" and "G" on the IP configuration page. Now let's take a look at the Password Configuration:

In the IP configuration menu above, select "X" to return to the switch configuration interface described above.

Enter the "P" letter, press the Enter key, and then enter a 4-8-bit password at the prompt that appears (for security reasons, it is displayed on the screen ), after entering the information, press enter to confirm and return to the logon page.

After you have configured the IP address and password, the switch can work properly according to the default configuration. To change the vswitch configuration and monitor the network conditions, you can use the control command menu, or use WEB-based Catalyst 1900 Switch Manager anywhere.

If the switch is running Cisco Catalyst 1900/2820 Enterprise Edition Software. You can change the configuration through command-line interface CLI. After entering the configuration main interface, the item "Command Line" is added to the display menu, while the item "Console Password" is missing, which is carried out in the lower menu.

1 user (s) now active on Management Console.

User Interface Menu

[M] Menus

[K] Command Line

[I] IP Configuration

Enter Selection:

The configuration methods in this version are basically the same as those described earlier, the difference is that in this version, you can use the Command method (Select the "[K] Command Line" item) to perform some advanced configurations. The following is only a brief introduction, in the next article, we will introduce a common advanced configuration, that is, VLAN configuration.

4. Common commands for advanced Switch configuration

In advanced configurations of A vswitch, you can use the "[K] Command Line" item in the preceding configuration menu.

The software system used by the Cisco switch is Catalyst IOS. CLI is called "Command-Line Interface", and the Chinese name is called "Command Line Interface". It is a software system mode based on doscommand Line, it is case insensitive (that is, it is case insensitive ). In this mode, not only switches, routers, and firewalls, but also a series of related commands. However, unlike the doscommand, CLI can be abbreviated as commands and parameters, as long as it contains enough characters to distinguish it from other currently available commands and parameters. Although vswitches can be configured and managed in multiple ways, you can use the character-only command line and Menu ), you can also use a graphical Web browser or specialized network management software (such as CiscoWorks 2000 ). In comparison, the command line method is more powerful, but more difficult to grasp. The following describes some common configuration commands of vswitches.

Cisco IOS has six different command modes: User EXEC mode, Privileged EXEC mode, VLAN dataBase mode, Global configuration mode, Interface configuration mode, and Line configuration mode. In different modes, different prompts are displayed on the CLI interface. Table 1 lists the usage, prompts, access, and exit methods of the six CLI command modes for your convenience.

Table 1: CLI command mode feature table mode

Table 1: CLI command mode feature table


Access Method


Exit Method


User Exec

Start a process


Type "logout" or "quit"

Change terminal settings and execute basic test to display system information

Privilege-d Exec

In "User Exec" mode, type the "enable" command.

Switch #

Type "disable" to exit

Verify the input command. Password-protected mode

VLAN Database

In "Privileged Exec" mode, type the "vlan database" command.

Switch (vlan )#

Type "exit" and return to the "Privileged Exec" mode.

Configure VLAN Parameters

Global Configura-tion

In "privileged Exec" mode, type the "configure" command.

Switch (config )#

Type "exit" or "end" or press "Ctrl-Z" to return to the "privileged EXEC" status.

Apply the configured parameters to the entire vswitch.

Interface Configura-tion

In "Global Configuration" mode, type the "interface" command

Switch (config-if )#

Type exit and return to "Global Configuration" mode. Press "Ctrl-Z" or press "end" to return to "Pprivileged Exec" mode.

Configure parameters for "Ethernet interfaces"

Line Configura-tion

In the "Global Configuration" mode, specify a line for the "line console" command

Switch (config-line )#

Type "exit" and return to "Global Configuration" mode. Press "Ctrl-Z" or enter "end", and return to "Privileged Exec" mode.

Configure parameters for "terminal line"

Cisco IOS commands can only be executed in their respective command modes. Therefore, to execute a command, you must first enter the corresponding configuration mode. For example, the "interface type_number" command can only be executed in "Global configuration" mode, while the "duplex full-flow-control" command can only be executed in "Interface configuration" mode.

In the switch CLI command, there is a basic command, that is, the Help Command "? ", In any command mode, just type "? ", That is, all available commands in this command mode and their usage are displayed. This is the help command of the switch. In addition, you can add "? "To seek help.

For example, if you want to see which commands are available in the "Privileged Exec" mode, you can type them at the "#" prompt "? ", And press Enter. For another example, if you want to continue viewing the "Show" command usage, you only need to type "show? "And press Enter. In addition ,"? "The local keyword search function is also available. That is to say, if you only remember the first few characters of a command, you can use "? "Let the system list all commands starting with this character or string. But in the last character and "? There must be no space between them. For example, type "c?" in "Privileged Exec" mode? ", The System Displays all commands starting with" c.

Note that Cisco IOS commands support short commands. That is to say, unless you are familiar with typing, you do not need to enter the complete commands and keywords, as long as the characters in the entered command are long enough to distinguish it from other commands. For example, the "show configure" command can be abbreviated as "sh conf", and the "show configure" command can be abbreviated as "sh conf" and then press enter to execute the command.

The preceding describes common configuration commands in command mode. The configuration process is complex and is not described in detail here.

Ii. Remote Configuration

We have already introduced that in addition to the direct connection between a vswitch and a computer through the Console port, the vswitch can also be connected through the common port of the vswitch. For the stack type, you can also configure several switches together, because they are actually a whole, and generally only one has the network management capability. In this case, the Super Terminal is no longer used when the switch is managed through a common port, but the communication with the managed switch is implemented through Telnet or Web browser. Because we have configured an IP address for the vswitch in the previous local configuration method, we can communicate with the vswitch through the IP address. However, note that this management function is also available only for the vswitch with the network tube type. This remote configuration method can be implemented in two different ways, so we will introduce it separately.

1. Telnet Mode

Telnet is a remote access protocol that can be used to log on to a remote computer, network device, or a dedicated TCP/IP network. Windows 95/98 and later Windows systems, UNIX/Linux and other systems have built-in Telnet client programs, we can use it to achieve communication with remote switches.

Before using Telnet to connect to a vswitch, make sure that you have prepared the following:

· Install the TCP/IP protocol on the computer used for management and configure the IP address information.

· IP address information has been configured on the managed vswitch. If you have not configured the IP address, you must use the Console port to configure the IP address.

· A User Account with administrative permissions is created on the managed vswitch. If no new account is created, the default Administrator Account of the Cisco switch is "Admin".

Article entry: csh responsible editor: csh

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.