H3C S12500 Series Manual
H3C S12500 Series Manual

H3C S12500 Series Manual

Routing switches
Hide thumbs Also See for S12500 Series:

Advertisement

Quick Links

H3C S12500 Series Routing Switches
Interface Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: S12500-CMW710-R7128
Document version: 6W710-20121130

Advertisement

Table of Contents
loading

Summary of Contents for H3C S12500 Series

  • Page 1 H3C S12500 Series Routing Switches Interface Command Reference Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Software version: S12500-CMW710-R7128 Document version: 6W710-20121130...
  • Page 2 SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners Notice The information in this document is subject to change without notice.
  • Page 3 Preface The H3C S12500 documentation set includes 13 command references, which describe the commands and command syntax options available for the H3C S12500 Series Routing Switches. The Interface Command Reference describes Ethernet, loopback, and null interface configuration commands. This preface includes: •...
  • Page 4 An alert that provides helpful information. Port numbering in examples The port numbers in this document are for illustration only and might be unavailable on your switch. About the H3C S12500 documentation set The H3C S12500 documentation set includes: Category...
  • Page 5 Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support & Documents > Technical Documents] –...
  • Page 6: Table Of Contents

    Contents Ethernet interface commands ······································································································································ 1   Common Ethernet interface commands ·························································································································· 1   default ········································································································································································ 1   description ································································································································································· 2   display counters ························································································································································ 2   display counters rate ················································································································································ 4   display interface ······················································································································································· 5   display interface brief ··········································································································································· 12  ...
  • Page 7: Ethernet Interface Commands

    Ethernet interface commands A switch operating in standard mode does not support Layer 3 Ethernet interfaces, Layer 3 Ethernet • subinterfaces, Layer 3 aggregate interfaces, or Layer 3 aggregate subinterfaces. For more information about the system operating mode commands, see Fundamentals Command Reference. When enhanced IRF is enabled on a switch operating in IRF mode, you cannot create Layer 3 •...
  • Page 8: Description

    [Sysname-GigabitEthernet3/0/1.1] default description Use description to change the description of an interface. Use undo description to restore the default. Syntax description text undo description Default The description of an interface is the interface name plus Interface (for example, GigabitEthernet3/0/1 Interface). Views Ethernet interface view, Ethernet subinterface view Predefined user roles...
  • Page 9 mdc-operator Parameters inbound: Displays inbound traffic statistics. outbound: Displays outbound traffic statistics. interface-type: Specifies an interface type. interface-number: Specifies an interface number. interface-number.subnumber: Specifies a subinterface number, where interface-number is a main interface (which must be a Layer 3 Ethernet interface) number, and subnumber is the number of a subinterface created under the interface.
  • Page 10: Display Counters Rate

    Field Description The command displays Overflow if any of the following cases applies: Overflow: More than 14 • The data length of an Err field value is greater than 7 decimal digits. digits (7 digits for column "Err") • The data length of a non-Err field value is greater than 14 decimal digits. --: Not supported The statistical item is not supported.
  • Page 11: Display Interface

    You can use the flow-interval command to set the statistics polling interval. Examples # Display the inbound traffic rate statistics for all GigabitEthernet interfaces. <Sysname> display counters rate inbound interface gigabitethernet Interface Total (pps) Broadcast (pps) Multicast (pps) GE3/0/1 GE3/0/2 GE3/0/3 ..
  • Page 12 Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. interface-number.subnumber: Specifies a subinterface number, where interface-number is a main interface (which must be a Layer 3 Ethernet interface) number, and subnumber is the number of a subinterface created under the interface. The value range for the subnumber argument is 1 to 4094. Usage guidelines If no interface type is specified, this command displays information about all interfaces.
  • Page 13 Table 3 Command output Field Description State of the interface: • Administratively DOWN—The Ethernet interface was shut down with the shutdown command. The interface is administratively down. GigabitEthernet3/0/1 current state • DOWN—The Ethernet interface is administratively up but physically down (possibly because no physical link is present or the link has failed).
  • Page 14 GigabitEthernet3/0/1 current state: DOWN Line protocol current state: DOWN IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000c-2963-b767 Description: GigabitEthernet3/0/1 Interface Loopback is not set Media type is twisted pair, Port hardware type is 1000_BASE_T 1000Mbps-speed mode, full-duplex mode Link speed type is autonegotiation, link duplex type is autonegotiation Flow-control is not enabled The Maximum Frame Length is 9216 Allow jumbo frame to pass...
  • Page 15 Table 4 Command output Field Description State of the Ethernet interface: • Administratively DOWN—The Ethernet interface was shut down with the shutdown command. The interface is administratively down. GigabitEthernet3/0/1 current state • DOWN—The Ethernet interface is administratively up but physically down (possibly because no physical link is present or the link has failed).
  • Page 16 Field Description Multicast storm suppression threshold in ratio, pps, or kbps. The Multicast MAX- unit of the threshold depends on your configuration. Unicast storm suppression threshold in ratio, pps, or kbps. The unit Unicast MAX- of the threshold depends on your configuration. PVID Port VLAN ID (PVID) of the Ethernet interface.
  • Page 17 Field Description input errors Number of inbound packets with errors. Number of inbound frames shorter than 64 bytes, in correct format, runts and containing valid CRCs. Number of inbound frames larger than the maximum frame length supported on the interface. •...
  • Page 18: Display Interface Brief

    Field Description Outbound traffic statistics (in packets and bytes) for the interface. All outbound normal and abnormal packets and normal pause frames were counted. Output(total): 0 packets, 0 bytes Number of outbound unicast packets, number of outbound 0 unicasts, 0 broadcasts, 0 broadcasts, number of outbound multicasts, and number of multicasts, 0 pauses outbound pause frames.
  • Page 19 Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. interface-number.subnumber: Specifies a subinterface number, where interface-number is a main interface (which must be a Layer 3 Ethernet interface) number, and subnumber is the number of a subinterface created under the interface.
  • Page 20 GE3/0/4 DOWN auto GE3/0/5 DOWN auto GE3/0/6 100M(a) F(a) GE3/0/7 DOWN auto GE3/0/8 100M(a) F(a) GE3/0/9 100M(a) F(a) # Display brief information about interface GigabitEthernet 3/0/3, including the full description of the interface. <Sysname> display interface brief GigabitEthernet 3/0/3 description The brief information of interface(s) under bridge mode: Link: ADM - administratively down Speed or Duplex: (a)/A - auto;...
  • Page 21: Display Packet-Drop

    Field Description The brief information of interface(s) Brief information about Layer 2 interfaces. under bridge mode: If the speed of an interface is automatically negotiated, its speed attribute includes the auto negotiation flag, indicated by the letter a in parentheses. If the duplex mode of an interface is automatically negotiated, its duplex Speed or Duplex: (a)/A - auto;...
  • Page 22 network-operator mdc-admin mdc-operator Parameters interface-type: Specifies an interface type. If you do not specify an interface type, this command displays information about dropped packets on all the interfaces on the device. interface-number: Specifies an interface number. If you specify an interface type only, this command displays information about dropped packets on the specified type of interfaces.
  • Page 23: Duplex

    Field Description Packets that are dropped due to unknown unicast Packets dropped due to unicast-suppression suppression. Packets that are dropped due to multicast Packets dropped due to multicast-suppression suppression. Packets dropped due to Tx packet aging Outbound packets that are timed out. duplex Use duplex to set the duplex mode for an Ethernet interface.
  • Page 24: Flow-Control

    Syntax flag { j0 | j1 } sdh value undo flag { j0 | j1 } sdh Default The J0 and J1 bytes are padded with 0s. Views Ten-GigabitEthernet interface view Predefined user roles network-admin mdc-admin Parameters j0: Specifies the Path Trace byte in the Regenerator Section Overhead. j1: Specifies the Path Trace byte in the High-Order Path Overhead.
  • Page 25: Flow-Interval

    mdc-admin Usage guidelines To implement flow control on a link, enable the generic flow control function at both ends of the link. TxRx mode generic flow control enables an Ethernet interface to receive common pause frames from its peer, and send common pause frames to notify its peer of congestions. With the flow-control command configured, an interface can both send and receive flow control frames: When congested, the interface sends a flow control frame to its peer.
  • Page 26: Interface

    interface Use interface to enter interface or subinterface view. With the interface-number.subnumber argument specified, if the subinterface identified by the argument does not exist, this command creates the subinterface first, and then enters subinterface view. Syntax interface interface-type { interface-number | interface-number.subnumber } Views System view Predefined user roles...
  • Page 27: Link-Delay

    Predefined user roles network-admin mdc-admin Parameters value: Sets the maximum length of Ethernet frames that are allowed to pass through. The value range for the argument is 1552 to 9216. On LST1XP16LEB1 and LST1XP16LEC1 cards, the value range for the argument is 1552 to 8168.
  • Page 28: Loopback

    When the interface goes up, the link-up event is immediately reported. • With the link-delay delay-time mode up command configured: When the interface goes up, the link-up event is not reported to the CPU unless the interface is still • up when the suppression interval (delay-time) expires.
  • Page 29: Port Link-Mode

    An Ethernet interface in a loopback test does not forward data traffic. On a physically down interface (displayed as in DOWN state), you can only perform an internal loopback test, and an external loopback test will fail. On an administratively shut down interface (displayed as in ADM or Administratively DOWN state), you cannot perform an internal or external loopback test.
  • Page 30: Port-Mode

    The following Ethernet interfaces do not support switching the operating mode: aggregation group member ports, reflector port of a remote source mirroring group, and Ethernet interfaces of a switch operating in IRF mode and with enhanced IRF enabled. For more information about reflector ports, see Network Management and Monitoring Configuration Guide.
  • Page 31: Reset Packet-Drop Interface

    Views User view Predefined user roles network-admin mdc-admin Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. interface-number.subnumber: Specifies a subinterface number, where interface-number is a main interface (which must be a Layer 3 Ethernet interface) number; subnumber is the number of a subinterface created under the interface.
  • Page 32: Shutdown

    interface-number: Specify an interface number. If you do not specify this argument, this command clears dropped packet statistics on all interfaces of the specified type. Examples # Clear dropped packet statistics on GigabitEthernet 3/0/1. <Sysname> reset packet-drop interface GigabitEthernet 3/0/1 # Clear dropped packet statistics on all interfaces.
  • Page 33: Layer 2 Ethernet Interface/Subinterface Commands

    Use undo speed to restore the default. Syntax speed { 10 | 100 | 1000 | 10000 | auto } undo speed Default The speed of an Ethernet interface is autonegotiated. Views Ethernet interface view Predefined user roles network-admin mdc-admin Parameters 10: Sets the interface speed to 10 Mbps.
  • Page 34: Mdix-Mode

    undo broadcast-suppression Default Ethernet interfaces do not suppress broadcast traffic. Views Layer 2 Ethernet interface view Predefined user roles network-admin mdc-admin Parameters ratio: Sets the broadcast suppression threshold as a percentage of the maximum interface rate. The value range for the argument is 0 to 100. The smaller the percentage, the less broadcast traffic is allowed to pass through.
  • Page 35: Multicast-Suppression

    Use undo mdix-mode to restore the default. Syntax mdix-mode { automidx | mdi| mdix } undo mdix-mode Default Ethernet interfaces operate in automdix mode. Views Layer 2 Ethernet interface view Predefined user roles network-admin mdc-admin Parameters automidx: Specifies that the interface negotiates pin roles with its peer. mdi: Specifies that pins 1 and 2 are transmit pins and pins 3 and 6 are receive pins.
  • Page 36: Port Up-Mode

    is allowed to pass through. The argument is always 100. As a result, you cannot suppression multicast traffic by using the argument. pps max-pps: Specifies the maximum number of multicast packets that the interface can forward per second. The value range for the max-pps argument (in pps) is 1 to 1.4881 × the maximum interface rate. For example, the value range for the argument is 1 to 1488100 on a GE interface.
  • Page 37: Unicast-Suppression

    Only 10-GE fiber ports operating in LAN mode and GE fiber ports support this command. Copper ports and combo interfaces do not support this command. To configure this command on a port, make sure the port is operating in bridge mode. The port up-mode command is mutually exclusive with any of the shutdown, speed, duplex, and loopback commands.
  • Page 38: Layer 3 Ethernet Interface Or Subinterface Commands

    Usage guidelines You can use the unicast storm suppression function to limit the size of unicast traffic on an interface. When the unicast traffic on the interface exceeds this threshold, the system discards packets until the unicast traffic drops below this threshold. When you configure the suppression threshold in pps or kbps, the device converts the configured value into a multiple of a certain step (6400 for pps and 50 for kbps) supported by the chip.
  • Page 39 Examples # Set the MTU to 1430 bytes for Layer 3 Ethernet interface GigabitEthernet 3/0/1. <Sysname> system-view [Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] mtu 1430 # Set the MTU to 1400 bytes for Layer 3 Ethernet subinterface GigabitEthernet 3/0/1.1. <Sysname> system-view [Sysname] interface GigabitEthernet 3/0/1.1 [Sysname-GigabitEthernet3/0/1.1] mtu 1430...
  • Page 40: Loopback And Null Interface Commands

    Loopback and null interface commands default Use default to restore the default settings for a loopback or null interface. Syntax default Views Loopback interface view, null interface view Predefined user roles network-admin mdc-admin Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command before using it on a live network.
  • Page 41: Display Interface Loopback

    Views Loopback interface view, null interface view Predefined user roles network-admin mdc-admin Parameters text: Specifies an interface description, a string of 1 to 80 characters. Usage guidelines Configure a description for an interface for easy identification and management purposes. You can use the display interface command to view the configured description. Examples # Set the description to for RouterID for interface loopback 1.
  • Page 42 Usage guidelines This command is supported only after a loopback interface is created. If the loopback keyword is not specified, the command displays information about all interfaces of the device. If the loopback keyword is specified but the interface-number argument is not specified, the command displays information about all existing loopback interfaces.
  • Page 43 Field Description Average input rate during the last 300 seconds (displayed when the interface supports traffic statistics collection): Last 300 seconds input: 0 bytes/sec, • packets/sec—Average number of packets received per second. 0 bits/sec, 0 packets/sec • bytes/sec—Average number of bytes received per second. •...
  • Page 44: Display Interface Null

    Field Description Interface Interface name. Physical link state of the interface: • UP—The link is up. • DOWN—The link is physically down. Link • ADM—The link has been administratively shut down. To recover its physical state, run the undo shutdown command. •...
  • Page 45: Interface Loopback

    than 27 characters. When the keyword is specified, all characters of the interface description are displayed. Usage guidelines The device has only one null interface (Null 0). The null interface number is fixed at 0. If the null keyword is not specified, the command displays information about all interfaces of the device. If the null keyword is specified but the 0 keyword is not specified, the command displays information about interface Null 0, because the device has only one null interface Null 0.
  • Page 46: Interface Null

    Use undo interface loopback to remove a loopback interface. Syntax interface loopback interface-number undo interface loopback interface-number Default No loopback interface exists. Views System view Predefined user roles network-admin mdc-admin Parameters interface-number: Specifies a loopback interface by its number, which is in the range of 0 to 1023. Usage guidelines The physical layer state and link layer protocols of a loopback interface are always up unless the loopback interface is manually shut down.
  • Page 47: Reset Counters Interface Loopback

    Examples # Enter Null 0 interface view. <Sysname> system-view [Sysname] interface null 0 [Sysname-NULL0] reset counters interface loopback Use reset counters interface loopback to clear the statistics on the specified or all loopback interfaces. Syntax reset counters interface loopback [ interface-number ] Views User view Predefined user roles...
  • Page 48: Shutdown

    Parameters 0: Specifies the number of the null interface, which is fixed at 0. Usage guidelines To determine whether the null interface works correctly within a period by collecting the traffic statistics within that period, first use the reset counters interface [ null [ 0 ] ] command to clear the statistics, and then have the interface automatically collect the statistics.
  • Page 49: Bulk Interface Configuration Commands

    Bulk interface configuration commands interface range Use interface range to create an interface range and enter the interface range view. Syntax interface range interface-list Views System view Predefined user roles network-admin mdc-admin Parameters interface-list: Specifies an interface list in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-5>.
  • Page 50: Interface Range Name

    <Sysname> system-view [Sysname] interface range GigabitEthernet 3/0/1 to GigabitEthernet 3/0/24 vlan-interface [Sysname-if-range] shutdown interface range name Use interface range name name interface interface-list to create an interface range, configure a name for the interface range, and enter the interface range view. Use interface range name name without the interface keyword to enter the view of an interface range with the specified name.
  • Page 51 The maximum number of interface range names is only limited by the system resources. To • guarantee bulk interface configuration performance, H3C recommends configuring fewer than 1000 interface range names. Examples # Add GigabitEthernet 3/0/1 through GigabitEthernet 3/0/12 to interface range named myEthPort, and enter the interface range view.
  • Page 52: Index

    Index B D F I J L M P R S U jumboframe enable,20 broadcast-suppression,27 link-delay,21 loopback,22 default,1 default,34 description,34 mdix-mode,28 description,2 mtu,32 display counters,2 multicast-suppression,29 display counters rate,4 display interface,5 port link-mode,23 display interface brief,12 port up-mode,30 display interface loopback,35 port-mode,24 display interface...

Table of Contents