Two vswitch configuration modes: Configure VLAN Based on port division as an example.

Source: Internet
Author: User
Tags cisco switch

Two vswitch configuration modes: Configure VLAN Based on port division as an example.

Vswitch configuration modes can be divided into two categories: one is the configuration mode represented by a CISCO switch, and the other is the configuration mode represented by a Huawei or H3C switch. In fact, the two configuration modes are not essentially different, but the command names and configuration methods are different. If you grasp the basic principles of vswitch configuration, it is not difficult to grasp, and you can trigger the configuration of vswitches of other brands. To sum up, if you use VLAN configuration on a vswitch as an example, you can refer to the following basic principles or steps:

  • The vswitch is initially connected through the Management port on the vswitch. The Management port has various forms. It is a comport on the switch (the other end is also a comport), and an RJ45 interface on the switch (the other end is a comport) or both ends are USB interfaces (the client needs a driver ).
  • After the Management port is connected to the vswitch through HyperTerminal or Putty software on the client, you can configure all the vswitches. If the Management port connection is inconvenient, you can set the management IP address of the switch, enable the telnet or http/https connection mode, and manage it through the LAN connection switch.
  • The configuration command of a vswitch has a hierarchical structure. It is a command tree that allows you to configure detailed items through commands. After a command is followed by a question mark, you can get the prompts and instructions for the sub-commands that the command has. This is very useful, so you do not need to remember the entire command tree. In addition, the command can be abbreviated to the first three letters of the complete command.
  • For example, to configure a VLAN Based on port division, you should create a VLAN, set the vlan id, and then add the network port to the VLAN. You need to query the naming rules of Fixed Network Ports of the vswitch in advance to enter the network port through the name for configuration.

Next, we will connect the vswitches in these two modes for actual configuration.

1. connect to a vswitch

At first, you can only use terminal software such as HyperTerminal or Putty to connect to the vswitch through the Management port. HyperTerminal is provided by the system in Windows XP, but will not be available in later versions. You can download it here; putty supports multiple connection methods, including the COM port, which can be downloaded here. Connect to the vswitch first.

1. Use HyperTerminal

During HyperTerminal initialization, You need to configure the country and region numbers. Next, create a new connection and select the COM port, for example, configure the connection parameters.

 

After confirmation, press Enter. The travel command prompt indicates that the connection is successful.

 

2. Putty

Run Putty and set comport connection parameters in Serial

 

In Terminal/Keyboard, select The Backspace Key as Control-H. Otherwise, The Backspace Key may be unavailable.

 

In Session, select Serial as the connection type, save the Session, Open it, press Enter, and the command prompt shows that the connection is successful.

 

2. Configure VLAN Based on port Division

The following uses VLAN Based on port division as an example to discuss the differences between the two modes. Note that the commands may be different on different products ?, To view the command prompts and instructions. In addition, you should first check the product instructions before making complex configurations.

1. Configuration Mode represented by CISCO switches

The configuration mode represented by the CISCO switch has an intuitive sense that there is an additional command level. You need to explicitly use the command config to enter the configuration status and exit before you can view it, you can use a command prompt to know the status changes.

Switch # enableSwitch # show interface status // display the port status, note the Port column Flow Link Back MdixPort Type Duplex Speed Neg ctrl State Pressure Mode ......................... ........................................ .... g1 1G-Copper Full 1000 Enabled Off Up Disabled Ong2 1G-Copper Full 1000 Enabled Off Up Disabled Offg3 1G-Copper Full 1000 Enabled Off Up Disabled OffSwitch # config // enter the configuration status Switch (config) # hostname sw02 // change the device name to sw02sw02 (config) # enable password level 15 xxxxxx // set the login password to xxxxxxsw02 (config) # vlan database // enter the VLAN configuration status sw02 (config-vlan) # vlan 100 // create VLAN100 // sw02 (config-vlan) # no vlan 100 Delete VLAN100sw02 (config-vlan) # exit // exit VLAN configuration status sw02 (config) # interface ethernet g1 // enter port configuration status sw02 (config-if) # switchport access vlan 100 // configure VLANsw02 (config-if) for the port exit // exit the port configuration status sw02 (config) exit // exit configuration status sw02 # show vlan // display VLAN configuration Vlan Name Ports Type Authorization ---- ----------------- ------------------------------------------- 1 1g (1-16), ch (1-8) other Required100 100g (17-24) permanent Required

 

2. Configuration Mode Based on Huawei and H3C Switches

<HUAWEI> system-view [HUAWEI] sysname sw01 // change the device name to sw01 [sw01] user-interface console 0 // go to the console user interface [sw01-ui-console0] user privilege level 15 [sw01-ui-console0] authentication-mode password [sw01-ui-console0] set authentication password cipher xxxxxx // set logon password to xxxxxx [sw01-ui-console0] quit // exit console user interface [sw01] display interface ethernet brief // display port status, note that the Interface column PHY: Physical * down: administratively down (l): loopback (B): BFD downinui/outui: input utility/output utilityInterface PHY Auto-Neg Duplex Bandwidth inuioutuitrunkgigabitethernet0/0/1 up enable full 1000 M 0% 0.12% -- GigabitEthernet0/0/2 up enable full 1000 M 0% 0.13% -- GigabitEthernet0/0/3 up full 1000 M 0% 0.13% -- [sw01] vlan 100 // create or enter VLAN configuration status [sw01-vlan 100] quit // exit VLAN configuration status [sw01] interface gigabitethernet 0/0/1 // enter port configuration status [sw01-GigabitEthernet0/0/1] port link-type access [sw01-GigabitEthernet0/0/1] port default vlan 100 // configure VLAN for port [sw01-GigabitEthernet0/0/1] quit // exit port configuration status [sw01] display vlan // display VLAN configuration The total number of vlans is: listen: Up; D: Down; TG: Tagged; UT: Untagged; MP: Vlan-mapping; ST: Vlan-stacking; #: ProtocolTransparent-vlan; *: Management-vlan; specified VID Type Ports limit 1 common UT: GE0/0/1 (U) GE0/0/2 (U) GE0/0/3 (U) GE0/0/4 (U) GE0/0/5 (U) GE0/0/6 (U) GE0/0/7 (U) GE0/0/8 (U) GE0/0/9 (D) GE0/0/10 (U) GE0/0/11 (D) GE0/0/12 (D) GE0/0/13 (D) GE0/0/14 (D) GE0/0/15 (D) GE0/0/16 (D) GE0/0/25 (D) GE0/0/26 (D) GE0/0/27 (D) GE0/0/28 (D) 100 common UT: GE0/0/17 (U) GE0/0/18 (U) GE0/0/19 (D) GE0/0/20 (D) GE0/0/21 (D) GE0/0/22 (D) GE0/0/23 (D) GE0/0/24 (D) VID Status Property MAC-LRN Statistics Description ---------------------------------------------------------------------------------- 1 enable default enable disable VLAN 0001100 enable default enable VLAN 0100

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.