Easy setup for H3C switches

Source: Internet
Author: User

We generally have to set the name of the switch, the management IP address (this can not be set), the user and password to log in and partition the appropriate VLAN, and so on.

1. Use the sysname command to set the name of the switch, such as:

2. Next set up management VLAN and management IP, manage VLAN and manage IP You may not understand what it means! Each switch by default is a VLAN 1 exists, in the H3C switch, this VLAN 1 is the default management VLAN, management IP is used to remotely manage the IP address of this switch, the management IP to be set on the Management VLAN, if our company core switch does not set VLAN 1, That is, VLAN 1 is not defined by IP address, then we need to set the other VLAN for the management VLAN, so that the IP address can be set to remotely manage the switch!

There can only be one Management VLAN in a switch, so we need to remove the original management VLAN, set up the new management VLAN, the following command: Delete the original management VLAN with the Undo command (Undo is the command to cancel the setting)

[Hua3c]undo Interface Vlan-interface 1 (the member that manages the VLAN first, which is VLAN 1 with VLAN ID 1)

[Hua3c]undo Manage-vlan (Management VLAN has no members, you can de-manage VLAN settings, there is no management VLAN exists)

Set VLAN 4 for the Management VLAN, if you want to set VLAN 4 for the Management VLAN, we first want to establish VLAN 4, the VLAN on the H3C switch is very simple, as long as the Input VLAN command, followed by the VLAN ID number on it! As shown, is not very simple ah!

3. Below we exit VLAN 4, set VLAN 4 for the Management VLAN:

[Hua3c-vlan4]quit (Quit with quit command)

[Hua3c]management-vlan 4 (Set the Management VLAN, VLAN ID 4 VLAN for the Management VLAN)

You have to understand what I mean by annotation!! Operation Look!

4.H3C Switch command also can be abbreviated, here I have no shorthand, afraid you do not understand!!

OK, so the management VLAN is set up. Then we go into the management VLAN and set the managed IP address to 192.168.4.254 (this management IP can be set to any IP in the VLAN defined IP segment of the Management VLAN), operate as follows:

[Hua3c]interface Vlan-interface 4 (here is the setting to enter the Management VLAN 4, which is not the same as entering VLAN 4)

[Hua3c-vlan-interface4]ip address 192.168.4.254 255.255.255.0 (input set IP and subnet mask)

5. So the management IP of the switch is set up!

In order for the network of different VLANs to be able to connect to the management IP of the switch, we also set the default route of the switch.

Gateway to VLAN 4 by default 192.168.4.1

[Hua3c-vlan-interface4]quit (Exit Management VLAN Operation view interface)

[Hua3c]ip route-static 0.0.0.0 0.0.0.0 192.168.4.1 (set the default route to VLAN 4 gateway address)

6. Manage IP Settings OK, next we will set up Telnet remote login to manage the user name and password of the switch, as well as the user name and password entered through the console port connection.

To set the user interface for remote access, proceed as follows. If you do not understand, you can check the relevant information, in order to understand!

[Hua3c]user-interface vty 0 4 (Enter user interface view)

[Hua3c-ui-vty0-4]authentication-mode Scheme (authentication mode)

[Hua3c-ui-vty0-4]user Privilege level 3 (login user, 3 is highest)

7. The authentication and permissions of the remote access user's interface are set up, and the user and password settings are shown below.

To add a user name and password for remote access, proceed as follows:

[Hua3c]local-user Admin (Add user as Admin)

[Hua3c-luser-admin]service-type telnet Level 3 (user type is Telnet)

[Hua3c-luser-admin]password Simple 123456 (easy password set is 123456)

8. This is set up, you can access the switch remotely via FTP and web!

The security connection setting for the console port is basically the same, User-interface enters the aux, the user sets the Service-type type with terminal or lan-access

Let's talk about VLAN settings! First of all, let me give you a brief look at the interface of my h3c switch.

It has 24 Ethernet ports, the first interface is Ethernet 1/0/1, the second port is Ethernet 1/0/2 .... and so on.

Two cascade gigabitethernet ports, one upstream port is gigabitethernet 1/1/1, one downlink is Gigabitethernet 1/2/1

All we have to do is to have VLAN 2 and VLAN 4 connected through the Cascade gigabitethernet 1/1/1 to the switch above.

The Ethernet 1/0/12 belongs to VLAN 2, and the other Ethernet ports are VLAN 4 members.

We have added a VLAN 4 before, we add another VLAN 2, this is very easy, no longer say!

Then set Ethernet 24 ports to belong to VLAN 4, the type is Access interface and set Gigabitethernet 1/1/1 Cascade is a member of VLAN 4 and vlan2, the interface type is trunk! (Intuitively speaking, the access port is used to connect to the computer, the trunk port is used for cascade switches)

[Hua3c]vlan 4 (Enter VLAN 4)

[Hua3c-vlan4]port Ethernet 1/0/1 to Ethernet 1/0/24 (set Ethernet 1–24 Port as a member of VLAN 4)

9. In this way, 1 to 24 ports are set to members of VLAN 4, and the default is Access interface, below to set gigabitethernet 1/1/1 as trunk port and allow VLAN 4 and VLAN 2 to pass, operate as follows:

[Hua3c]interface gigabitethernet 1/1/1 (Enter interface gigabitethernet 1/1/1)

[Hua3c-gigabitethernet1/1/1]port Link-type Trunk

(set interface type to trunk) [Hua3c-gigabitethernet1/1/1]port Trunk Permit VLAN 4 (set this trunk port allows Vlan4 to pass)

[Hua3c-gigabitethernet1/1/1]port Trunk Permit VLAN 2 (set this trunk port allows vlan2 to pass)

10. So the VLAN 4 is set up (because I am on the switch already set up, so the result is not shown), and then we will assign the Ethernet 1/0/12 port to VLAN 2, the operation is as follows, there are two ways:

First, enter the VLAN and join the port.

[Hua3c]vlan 2 (Enter VLAN 2)

[Hua3c-vlan2]port Ethernet 1/0/12 (default is Access interface type)

Second, enter the port and join the VLAN.

[Hua3c]interface Ethernet 1/0/12 (Enter interface Ethernet 1/0/12)

[Hua3c-ethernet1/0/12]port Access VLAN 2 (set port as a member of Access VLAN 2)

11. Finally, we can save all configurations with the Save command!

Easy setup for H3C switches

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.