Page 1
H3C S7500E Switch Series Comware 7 Interface Command Reference New H3C Technologies Co., Ltd. http://www.h3c.com.hk Software version: Release 7557 and later versions Document version: 6W100-20170831...
Page 2
, H3CS, H3CIE, H3CNE, Aolynk, Care, , IRF, NetPilot, Netflow, SecEngine, SecPath, SecCenter, SecBlade, Comware, ITCMM and HUASAN are trademarks of New 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 This command reference covers the interface configuration commands. This preface includes the following topics about the documentation: • Audience. • Conventions • Obtaining documentation • Technical support • Documentation feedback Audience This documentation is intended for: • Network planners. •...
Page 4
Convention Description Folder. Symbols Convention Description An alert that calls attention to important information that if not understood or followed WARNING! can result in personal injury. An alert that calls attention to important information that if not understood or followed CAUTION: can result in data loss, data corruption, or damage to hardware or software.
Page 5
Obtaining documentation To access the most up-to-date H3C product documentation, go to the H3C website at http://www.h3c.com.hk To obtain information about installation, configuration, and maintenance, click http://www.h3c.com.hk/Technical_Documents...
Bulk configuring interfaces You can enter interface range view to bulk configure multiple interfaces with the same feature instead of configuring them one by one. For example, you can execute the shutdown command in interface range view to shut down a range of interfaces. Configuration restrictions and guidelines When you bulk configure interfaces in interface range view, follow these restrictions and guidelines: •...
Step Command Remarks • interface range { interface-type interface-number [ to interface-type By using the interface range name interface-number ] } &<1-24> command, you assign a name to an Enter interface range • interface range and can specify this interface range name name view.
Configuring Ethernet interfaces The Switch Series supports Ethernet interfaces, management Ethernet interfaces, and Console interfaces. Your device supports the following types of Ethernet interfaces: • Layer 2 Ethernet interfaces—Physical Ethernet interfaces operating at the data link layer (Layer 2) to switch packets. •...
Step Command Remarks (Optional.) Shut down By default, the management Ethernet shutdown the interface. interface is up. Ethernet interface naming conventions When the switches operate in standalone mode, the Ethernet interfaces are named in the format of interface-type A/B/C, where the following definitions apply: •...
Changing the active port of a combo interface Step Command Remarks Enter system view. system-view Enter Ethernet interface interface interface-type view. interface-number Activate the copper combo By default, the fiber combo port is combo enable { copper | fiber } port or fiber combo port.
If you need higher bandwidth on a single interface, you can combine the four 10-GE breakout interfaces into a 40-GE interface. After you combine the four 10-GE breakout interfaces, replace the dedicated 1-to-4 cable with a dedicated 1-to-1 cable or a 40-GE transceiver module. For more information about the cable or transceiver module, see the installation guide.
Changing 40-GE interfaces to 100-GE interfaces in batches To improve network flexibility, you can change 40-GE interfaces to 100-GE interfaces in batches. For this configuration to succeed, make sure all interfaces in one group are specified in this configuration. On the LSQM1CQGS12SG0 interface modules, three continuous interfaces starting from 1 are organized into one group.
Page 14
Step Command Remarks By default, an Ethernet interface autonegotiates the speed with its peer. Support for the keywords of this command varies by interface type. For more information, execute the speed ? command in interface view. For Ethernet interfaces connected to the same physical link to operate correctly, you must configure the same speed for Set the speed for the...
Step Command Remarks By default, an Ethernet subinterface is up. Bring up the Ethernet Do not use the shutdown undo shutdown subinterface. command on an interface configured with the loopback command. Configuring the link mode of an Ethernet interface CAUTION: After you change the link mode of an Ethernet interface, all commands (except the shutdown and combo enable commands) on the Ethernet interface are restored to their defaults in the new link mode.
Step Command Remarks Enter Ethernet interface interface interface-type view. interface-number By default, an Ethernet interface allows jumbo frames within 9126 bytes to pass through. Configure jumbo frame jumboframe enable [ size ] support. If you set the size argument multiple times, the most recent configuration takes effect.
Configuring dampening on an Ethernet interface The interface dampening feature uses an exponential decay mechanism to prevent excessive interface flapping events from adversely affecting routing protocols and routing tables in the network. Suppressing interface state change events protects the system resources. If an interface is not dampened, its state changes are reported.
Figure 1 Change rule of the penalty value Penalty Ceiling Suppress limit Reuse limit Time Not suppressed Suppressed Not suppressed Configuration restrictions and guidelines When you configure dampening on an Ethernet interface, follow these restrictions and guidelines: • The dampening command and the link-delay command cannot be configured together on an interface.
IMPORTANT: This feature is used only for debugging and troubleshooting. IMPORTANT: This feature is used only for debugging and troubleshooting. Perform this task to determine whether an Ethernet link works correctly. Loopback testing includes the following types: • Internal loopback testing—Tests the device where the Ethernet interface resides. The Ethernet interface sends outgoing packets back to the local device.
• TxRx-mode generic flow control—Enabled by using the flow-control command. With TxRx-mode generic flow control enabled, an interface can both send and receive flow control frames: When congestion occurs, the interface sends a flow control frame to its peer. When the interface receives a flow control frame from its peer, it suspends sending packets to its peer.
Step Command Remarks Enter system view. system-view Enter Ethernet interface interface interface-type view. interface-number Enable EEE on the By default, EEE is disabled on eee enable Ethernet interface. an Ethernet interface. Setting the statistics polling interval Step Command Remarks Enter system view. system-view Enter Ethernet interface interface interface-type...
Page 22
Figure 2 Forcibly bring up a fiber port When Ethernet interfaces Correct fiber When Ethernet interfaces cannot be or are not forcibly connection are forcibly brought up brought up Device A Device A Device A Device B Device B Device B Fiber port Tx end Rx end...
Step Command Remarks Only GE fiber ports, 10-GE fiber ports, 40-GE fiber ports, and 100-GE fiber Enter Ethernet interface interface interface-type ports support this feature. view. interface-number Copper ports and combo interfaces do not support this feature. By default, a fiber port is not forcibly Forcibly bring up the fiber brought up, and the physical state of a port up-mode...
Step Command Remarks Enable unknown unicast suppression and set the unicast-suppression { ratio | pps By default, unknown unicast unknown unicast max-pps | kbps max-kbps } suppression is disabled. suppression threshold. Configuring storm control on an Ethernet interface About storm control Storm control compares broadcast, multicast, and unknown unicast traffic regularly with their respective traffic thresholds on an Ethernet interface.
Step Command Remarks (Optional.) Enable storm control, and set the lower storm-constrain { broadcast | By default, storm control is and upper thresholds for multicast | unicast } { pps | kbps disabled. broadcast, multicast, or | ratio } upperlimit lowerlimit unknown unicast traffic.
Step Command Remarks Enter system view. system-view Enter Ethernet interface interface interface-type view. interface-number By default, a copper Ethernet Set the MDIX mode of the mdix-mode { automdix | mdi | interface operates in auto mode to Ethernet interface. mdix } negotiate pin roles with its peer.
Configuring a Layer 3 Ethernet interface or subinterface Setting the MTU for an Ethernet interface or subinterface The maximum transmission unit (MTU) of an Ethernet interface affects the fragmentation and reassembly of IP packets on the interface. Typically, you do not need to modify the MTU of an interface.
Page 28
Task Command (In standalone mode.) Clear the Ethernet reset ethernet statistics [ slot slot-number ] module statistics. (In IRF mode.) Clear the Ethernet reset ethernet statistics [ chassis chassis-number slot module statistics. slot-number ]...
Configuring loopback, null, and inloopback interfaces This chapter describes how to configure a loopback interface, a null interface, and an inloopback interface. Configuring a loopback interface A loopback interface is a virtual interface. The physical layer state of a loopback interface is always up unless the loopback interface is manually shut down.
applying an ACL. For example, if you specify a null interface as the next hop of a static route to a network segment, any packets routed to the network segment are dropped. To configure a null interface: Step Command Remarks Enter system view.