H3C VSR Series Command Reference Manual
H3C VSR Series Command Reference Manual

H3C VSR Series Command Reference Manual

Virtual services routers

Advertisement

Quick Links

H3C VSR Series Virtual Services Routers
Interface
Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: VSR1000_H3C-CMW710-E0321-X64
VSR2000_H3C-CMW710-E0321-X64
Document version: 5W100-20151208

Advertisement

Table of Contents
loading

Summary of Contents for H3C VSR Series

  • Page 1 H3C VSR Series Virtual Services Routers Interface Command Reference Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Software version: VSR1000_H3C-CMW710-E0321-X64 VSR2000_H3C-CMW710-E0321-X64 Document version: 5W100-20151208...
  • Page 2 Copyright © 2015, Hangzhou H3C Technologies Co., Ltd. and its licensors All rights reserved No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of Hangzhou H3C Technologies Co., Ltd.
  • Page 3 Preface The Interface Command Reference describes the configuration commands for various interfaces supported by the H3C VSR1000/VSR2000 routers. This preface includes: Audience • • Conventions Obtaining documentation • Technical support • • Documentation feedback Audience This documentation is intended for: Network planners •...
  • Page 4 The port numbers in this document are for illustration only and might be unavailable on your device. 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 &...
  • Page 5: Table Of Contents

    Contents Bulk interface configuration commands ····················································································································· 1   display interface range ············································································································································ 1   interface range ························································································································································· 1   interface range name ··············································································································································· 3   Ethernet interface commands ······································································································································ 5   bandwidth ································································································································································· 5   dampening ································································································································································ 5   default ········································································································································································ 7  ...
  • Page 6: Bulk Interface Configuration Commands

    Bulk interface configuration commands display interface range Use display interface range to display information about the interface ranges created by using the interface range name command. Syntax display interface range [ name name ] Views Any view Predefined user roles network-admin network-operator Parameters...
  • Page 7 Parameters interface-list: Specifies a space-separated list of up to five interface items. Each item specifies an interface by its type and number or a range of interfaces in the form of interface-type interface-number1 to interface-type interface-number2. When you specify the to keyword, the interfaces before and after the to keyword must be on the same interface card or subcard.
  • Page 8: Interface Range Name

    [Sysname] interface range gigabitethernet 1/0 to gigabitethernet 2/0 [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 9 The maximum number of interface range names is limited only by the system resources. To • guarantee bulk interface configuration performance, H3C recommends that you configure fewer than 1000 interface range names. Examples # Add GigabitEthernet 1/0 and GigabitEthernet 2/0 to the interface range named myEthPort, and enter the interface range view.
  • Page 10: Ethernet Interface Commands

    Ethernet interface commands bandwidth Use bandwidth to set the expected bandwidth of an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth (in kbps) is the interface baud rate divided by 1000. Views Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view Predefined user roles...
  • Page 11 Syntax dampening [ half-life reuse suppress max-suppress-time ] undo dampening Default Interface dampening is disabled on Ethernet interfaces. Views Layer 3 Ethernet interface view Predefined user roles network-admin Parameters half-life: Specifies the amount of time (in seconds) after which a penalty is decreased. The interface has an initial penalty of 0.
  • Page 12: Default

    If you do not specify any keywords, this command uses the default values. Examples # Enable interface dampening on interface GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] dampening # Enable interface dampening on interface GigabitEthernet 1/0/1, and set the following parameters: •...
  • Page 13: Description

    [Sysname] interface gigabitethernet 1/0/1.1 [Sysname-GigabitEthernet1/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, GigabitEthernet1/0/1 Interface).
  • Page 14 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. The interface-number argument is an interface number. The subnumber argument is the number of a subinterface created under the interface. The value range for the subnumber argument is 1 to 4094.
  • Page 15: Display Counters Rate

    Related commands flow-interval • • reset counters interface display counters rate Use display counters rate to display traffic rate statistics for interfaces in up state over the last statistics polling interval. Syntax display counters rate { inbound | outbound } interface [ interface-type [ interface-number | interface-number.subnumber ] ] Views Any view...
  • Page 16: Display Ethernet Statistics

    Overflow: More than 14 digits. --: Not supported. Table 2 Command output Field Description Interface Abbreviated interface name. Average receiving or sending rate (in pps) for unicast packets over the last Total (pkts/sec) statistics polling interval. Average receiving or sending rate (in pps) for broadcast packets over the last Broadcast (pkts/sec) statistics polling interval.
  • Page 17 LLCNum UnknownNum ForwardNum : 4459 MPLS ISIS ISIS2 IPV6 ETH receive error statistics: NullPoint ErrIfindex ErrIfcb IfShut ErrAnalyse : 5988 ErrSrcMAC : 5988 ErrHdrLen ETH send packet statistics: L3OutNum : 211 VLANOutNum FastOutNum : 155 L2OutNum ETH send error statistics: MbufRelayNum NullMbuf ErrAdjFwd...
  • Page 18 Table 3 Output description Field Description ETH receive packet statistics Statistics about the Ethernet packets received on the Ethernet module. Total number of received packets: • ETHIINum—Number of packets encapsulated by using Ethernet II. • SNAPNum—Number of packets encapsulated by using SNAP. •...
  • Page 19: Display Interface

    Field Description encapsulation failures. • ErrTagVLAN—Number of packets that failed to be sent due to VLAN tag encapsulation failures. • IfShut—Number of packets that are being sent when the interface is shut down. • IfErr—Number of packets with incorrect outgoing interfaces. Related commands reset ethernet statistics display interface...
  • Page 20 Examples # Display information about Layer 3 interface GigabitEthernet 1/0/1. <Sysname> display interface gigabitethernet1/0/1 GigabitEthernet1/0/1 Current state: UP Line protocol state: UP Description: GigabitEthernet1/0/1 Interface Bandwidth: 1000000kbps Maximum Transmit Unit: 1500 Internet Address is 172.16.0.112/24 Primary IP Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 000c-29e8-da89 IPv6 Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 000c-29e8-da89 loopback: not set, promiscuous mode: not set 1000Mb/s, Full-duplex, link type: autonegotiation,...
  • Page 21 Field Description • UP—The interface is up at the data link layer. • UP (spoofing)—The data link layer protocol of the interface is UP. However, its link is an on-demand link or not present. This attribute is typical of Null interfaces and loopback interfaces. •...
  • Page 22 Field Description Number of inbound frames meeting the following conditions: • Shorter than 64 bytes. runts • In correct format. • Containing valid CRCs. Number of inbound giants. Giants refer to frames larger than the maximum frame length supported on the interface. For an Ethernet interface that does not permit jumbo frames, the maximum frame length is as follows: •...
  • Page 23 Field Description • Number of outbound unicast packets. • Number of outbound broadcasts. • Number of outbound multicasts. • Number of outbound pause frames. A hyphen (-) indicates that the statistical item is not supported. The two fields on the first line represent the outbound normal traffic and pause frame statistics (in packets and bytes) for the interface.
  • Page 24 # Display brief information about interface GigabitEthernet 1/0/3, including the complete description of the interface. <Sysname> display interface gigabitethernet 1/0/3 brief description Brief information on interface(s) under route mode: Link: ADM - administratively down; Stby - standby Protocol: (s) - spoofing Interface Link Protocol Main IP Description...
  • Page 25: Display Packet-Drop

    Field Description Partial or complete interface description set by using the description command: • If you do not specify the description keyword for the display interface Description brief command, this field displays only the first 27 characters of the interface description. •...
  • Page 26: Flow-Interval

    # Display the summary of dropped packets on all interfaces. <Sysname> display packet-drop summary All interfaces: Packets dropped due to full GBP or insufficient bandwidth: 301 Packets dropped due to FFP: 261 Table 6 Command output Field Description Packets that are dropped because the buffer is used Packets dropped due to full GBP or insufficient bandwidth up or the bandwidth is insufficient.
  • Page 27: Jumboframe Enable

    Predefined user roles network-admin Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. interface-number.subnumber: Specifies a subinterface number. The interface-number argument is an interface number. The subnumber argument is the number of a subinterface created under the interface. The value range for the subnumber argument is 1 to 8192.
  • Page 28: Mac-Address

    Usage guidelines If you set the value argument multiple times, the most recent configuration takes effect. Examples # Allow jumbo frames to pass through GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] jumboframe enable mac-address Use mac-address to assign a MAC address to an Ethernet interface. Use undo mac-address to restore the default.
  • Page 29: Reset Counters Interface

    Views Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view Predefined user roles network-admin Parameters size: Sets the MTU in the range of 46 to 9216 bytes. Usage guidelines A smaller MTU size results in more fragments. When you set the MTU for an interface, consider QoS queue lengths, for example, consider that the default FIFO queue length is 75.
  • Page 30: Reset Ethernet Statistics

    Usage guidelines Use this command to clear history statistics if you want to collect traffic statistics for a specific time period. If you do not specify an interface type, this command clears statistics for all interfaces. If you specify only the interface type, this command clears statistics for all interfaces of that type. If you specify both the interface type and the interface or subinterface number, this command clears statistics for the specified interface or subinterface.
  • Page 31: Reset Packet-Drop Interface

    reset packet-drop interface Use reset packet-drop interface to clear the dropped packet statistics for an interface or multiple interfaces. Syntax reset packet-drop interface [ interface-type [ interface-number ] ] Views User view Predefined user roles network-admin Parameters interface-type: Specify an interface type. If you do not specify an interface type, this command clears dropped packet statistics for all interfaces on the device.
  • Page 32 Examples # Shut down and then bring up the Layer 3 Ethernet interface GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] shutdown [Sysname-GigabitEthernet1/0/1] undo shutdown # Shut down and then bring up the Layer 3 Ethernet subinterface GigabitEthernet 1/0/1.1. <Sysname>...
  • Page 33: Loopback, Null, And Inloopback Interface Commands

    Loopback, null, and inloopback interface commands bandwidth Use bandwidth to configure the expected bandwidth of an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth of a loopback interface is 0 kbps. Views Loopback interface view Predefined user roles...
  • Page 34: Description

    Predefined user roles network-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. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
  • Page 35: Display Interface Inloopback

    display interface inloopback Use display interface inloopback to display information about the inloopback interface. Syntax display interface [ inloopback [ 0 ] ] [ brief [ description ] ] Views Any view Predefined user roles network-admin network-operator Parameters 0: Specifies interface Inloopback 0. brief: Displays brief interface information.
  • Page 36 Field Description UP(spoofing). UP(spoofing) means that the data link layer protocol state of the interface is up, but the link is an on-demand link or is not present. Description string of the interface, which is always InLoopBack0 Description Interface and cannot be configured. Maximum Transmit Unit MTU of the interface, which is always 1536 and cannot be configured Physical: InLoopBack...
  • Page 37: Display Interface Loopback

    Field Description displays UP(s). This attribute is typical of interface Null 0, Inloopback 0, and loopback interfaces. Interface Interface name. Physical layer state of the interface, which is always UP, meaning that the Link link is physically up. Protocol Data link layer protocol state of the interface, which is always UP(s). IP address of the interface.
  • Page 38 If the loopback keyword is specified but the interface-number argument is not specified, the command displays information about all existing loopback interfaces. Examples # Display detailed information about interface loopback 0. (Suppose the loopback interface supports traffic statistics collection.) <Sysname> display interface loopback 0 LoopBack0 Current state: UP Line protocol state: UP(spoofing)
  • Page 39 Field Description Internet Address is 1.1.1.1/32 Primary IP address of the interface (displayed when the interface is Primary configured with a primary IP address). Physical: Loopback The physical type of the interface is loopback. Time when statistics on the logical interface were last cleared by using the reset counters interface command.
  • Page 40: Display Interface Null

    Field Description administrator. To recover its physical layer state, run the undo shutdown command. • Stby—The interface is a standby interface. To view the primary interface information, run the display interface-backup state command. Explains the Protocol field value. (s) represents spoofing. If the data link layer protocol of an interface is up, Protocol: (s) - spoofing but its link is an on-demand link or is not present, the Protocol field displays UP(s).
  • Page 41 Parameters 0: Specifies interface Null 0. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information. description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of interface descriptions. Usage guidelines If the null keyword is not specified, the command displays information about all interfaces of the device.
  • Page 42: Interface Loopback

    For the command output, see Table 9 Table Related commands interface null • reset counters interface null • interface loopback Use interface loopback to create a loopback interface and enter loopback interface view. Use undo interface loopback to remove a loopback interface. Syntax interface loopback interface-number undo interface loopback interface-number...
  • Page 43: Reset Counters Interface Loopback

    Default A device has only one null interface (Null 0), which cannot be created or deleted. Views System view Predefined user roles network-admin Parameters 0: Specifies interface Null 0. The null interface number is always 0. Examples # Enter Null 0 interface view. <Sysname>...
  • Page 44: Reset Counters Interface Null

    reset counters interface null Use reset counters interface null to clear the statistics on the null interface. Syntax reset counters interface [ null [ 0 ] ] Views User view Predefined user roles network-admin Parameters 0: Specifies the number of the null interface, which is always 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.
  • Page 45 Examples # Shut down interface loopback 1. <Sysname> system-view [Sysname] interface loopback 1 [Sysname-LoopBack1] shutdown...
  • Page 46: Index

    Index B D F I J M R S interface,21 interface loopback,37 bandwidth,5 interface null,37 bandwidth,28 interface range,1 interface range name,3 dampening,5 default,28 jumboframe enable,22 default,7 description,29 description,8 mac-address,23 display counters,8 mtu,23 display counters rate,10 display ethernet statistics,1 1 reset counters interface,24 display interface,14...

This manual is also suitable for:

Vsr1000Vsr2000

Table of Contents