Configuration commands for H3C switches

Source: Internet
Author: User
Tags manual reset switches port number

This paper briefly introduces the basic configuration commands of the H3C switch (refer to the H3C Switch operation manual).

For more detailed commands please refer to [Url]http://www.h3c.com.cn/service/document_center/ip_network_product/switches/s[/url]

5500/s5500-ei/

Configure Terminal operation Password:

[St-zc501-lsw-r4c14. I.s2403]user-interface aux 0 into user 0 mode

[St-zc501-lsw-r4c14. I.s2403-ui-aux0]authentication-mode Password Configuration password

No action to disconnect automatically:

Idle-timeout minutes 10 10 minutes no action automatic disconnect

Idle-timeout seconds 10 10 seconds no action automatic disconnect

Lock User:

<st-zc501-lsw-r4c14. I.s2403>lock Lock Current User (then enter password, release press ENTER

Just the password on the line).

To open the Telnet service:

[St-zc501-lsw-r4c14. I.s2403]telnet server enable to start the Telnet service (default shutdown)

Force user offline:

<st-zc501-lsw-r4c14. I.s2403>free web-users all force all online Web users offline

To view the number of port receive, transmit, and discard messages:

<st-zc501-lsw-r4c14. I.s2403>display Garp Statistics Interface (add port number) check

Look at the number of GVRP packets received and transmitted and discarded by the port

VTP configuration:

GVRP Registration Fixed port mode configuration (equivalent to Cisco server Mode VTP) ___ must

Under the trunk operating mode port.

GVRP Registration Forbidden Port mode configuration (equivalent to Cisco's transparent mode VTP) ____

Must be under the trunk operating mode port.

GVRP Registration Normal Port mode configuration (equivalent to Cisco's client mode VTP) ___ must

Under the trunk operating mode port.

[St-zc501-lsw-r4c14. I.S2403]STP Disable

Bpdu-tunnel dot1q STP VTP open (under Port or global mode) default shutdown

Undo Bpdu-tunnel dot1q STP Close VTP (under port or global mode)

Specify the maximum broadcast percentage that the Ethernet port passes:

Broadcast-suppression (1-100) specifies the maximum broadcast allowed by the Ethernet port

Percentage of traffic to the port (default shutdown)--this feature is turned on to ensure normal

Transmission of traffic.

View the device IDs for the local system, including the LACP and MAC addresses:

Display LACP System-id

The priority is set to 64 (the smaller the value the greater the priority):

[St-zc501-lsw-r4c14. I.S2403]LACP system-priority 64

Port aggregation naming:

[St-zc501-lsw-r4c14. I.s2403]link-aggregation Group 1 Description Name

Create a manual aggregation group with group number 8:

[St-zc501-lsw-r4c14. I.s2403]link-aggregation Group 8 Mode Manual

Add ports to the manual aggregation Group with group number 8:

Ports under Port Link-aggregation Group 8

Enter aggregation Port Group 8 mode:

[St-zc501-lsw-r4c14. I.s2403]port-group Aggregation 8

[St-zc501-lsw-r4c14. I.S2403-PORT-GROUP-AGGREGATION-8] This command cannot be added or deleted

Except for Port group members, only configuration commands related to aggregations, including STP, VLAN, QOS, GVRP,

TELNET, Mac, etc. configuration.

Binding IP and MAC address under port:

User-bind ip-address 121.11.86.72 mac-address 0101-0101-0101

View non-normal blocking ports (under any view):

Display STP Abnormal-port The results in reason Formatcompatibility

rotected

View the port information that has been dropped by the STP Protection feature (under any view):

Display STP Down-port

View the root bridge information for all MSTP instances (under any view):

Dis STP root

To clear the statistics for the spanning tree (under User view):

Reset STP

Reset STP Interface Port number------eliminates the statistics for the specified port spanning tree.

View configuration information for the MST domain (spanning tree) that is in effect:

Display STP Region-configuration

Open and close STP features:

[St-zc501-lsw-r4c14. I.S2403]STP enable to open the global STP

The STP is closed under the port:

STP Disable

Port to set the path cost (Root bridge) of the port:

STP instance 0 Cost 16 ___ Specifies that the path to the spanning tree instance 0 is 16

Specifies the root bridge for which the current device is a spanning tree instance 0:

STP Instance 0 Root Primary

Specifies the backup root bridge for which the current device is a spanning tree instance 0:

STP Instance 0 Root Secondary

Root Protection for boot ports under ports:

STP Root-protection

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Network/jhjs/

Port is configured with an Ethernet port as an edge port (that is, a direct turn to the originator port-no blocking):

STP Edged-port Disable

Open loop protection under port:

STP Loop-protection

Routing commands

View summary information for the currently activated route in the routing table:

Display IP routing-table

View summary information for an active route that is filtered through the basic Access control List ACL2000:

Display IP routing-table ACL 2000

View the details of the active and inactive routes filtered through the Basic Access control List ACL2000:

Display IP routing-table ACL verbose

To view summary information for all direct-attached routes:

Display IP routing-table Protocol Direct

To view all static routing tables:

Display IP routing-table protocol static

To view comprehensive information for a route:

Dispaly IP routing-table Statistics

Clears statistics for all routing protocols in the routing table:

Reset IP routing-table Statistics protcol all

Static routing configuration:

[St-zc501-lsw-r4c14. I.S2403]IP route-static Destination Address/mask Next hop IP tag 50

To delete a static route:

[St-zc501-lsw-r4c14. I.s2403]undo IP route-static Destination address/mask Next hop IP tag

50

The default priority for configuring static routes is 120: (Default is 60)

[St-zc501-lsw-r4c14. I.s2403]ip route-static Default-perference 120

To aggregate routing of two segments 11.1.1.0/24 and 11.1.2.0/24 in OSPF area 1 into an aggregate route

11.1.0.0/16 to other regions:

[St-zc501-lsw-r4c14. I.S2403]OSPF 100

[St-zc501-lsw-r4c14. I.s2403-ospf-100]area 1

[St-zc501-lsw-r4c14. I.s2403-ospf-100-0.0.0.1]network 11.1.1.0 0.0.0.255

[St-zc501-lsw-r4c14. I.s2403-ospf-100-0.0.0.1]network 11.1.2.0 0.0.0.255

[St-zc501-lsw-r4c14. I.s2403-ospf-100-0.0.0.1]abr-summary 11.1.0.0

255.255.0.0

Create the OSPF area 0 and enter the OSPF area view:

[St-zc501-lsw-r4c14. I.S2403]OSPF 100

[St-zc501-lsw-r4c14. I.s2403-ospf-100]area 0 (Delete the Undo area 0)

[St-zc501-lsw-r4c14. i.s2403-ospf-100-0.0.0.0]

To set up OSPF to aggregate the introduced routes:

[St-zc501-lsw-r4c14. I.s2403]ip route-static 11.1.1.0 NULL 0

[St-zc501-lsw-r4c14. I.s2403]ip route-static 11.1.2.0 NULL 0

[St-zc501-lsw-r4c14. I.S2403]OSPF 100

[St-zc501-lsw-r4c14. I.s2403-ospf-100]import-route Static

[St-zc501-lsw-r4c14. I.s2403-ospf-100]asbr-summary 11.1.0.0 255.255.0.0 Tag

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.