H3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume
01-Ethernet Port Commands
Title Size Download
01-Ethernet Port Commands 167.57 KB

Chapter 1  Ethernet Port Configuration Commands

1.1  Ethernet Port Configuration Commands

1.1.1  broadcast-suppression

Syntax

broadcast-suppression { ratio | bandwidth bandwidth }

undo broadcast-suppression

View

Ethernet port view

Parameters

ratio: Specifies a percentage of the total port bandwidth for broadcasts on the port. The value range is 1 to 100. The smaller the percentage is, the smaller the broadcast traffic is allowed.

bandwidth: Specifies the maximum bandwidth for broadcasts on the port. The value range is 1 to the maximum port bandwidth.

Description

Use the broadcast-suppression command to enable broadcast suppression. When doing this, you can set the percentage of total port bandwidth for broadcasts or set the maximum port bandwidth for broadcasts. Broadcasts that cross the threshold will be suppressed.

Use the undo broadcast-suppression command to restore the default.

The default percentage of the total port bandwidth for broadcasts is 50%.

The broadcast suppression setting you configured with the broadcast-suppression command will overwrite the previous broadcast suppression setting, if any.

 

  Caution:

l      You cannot enable both broadcast suppression and multicast suppression on the same card. Namely, once you have enabled broadcast suppression on some ports of a card, you cannot enable multicast suppression on the other ports of the card, and vice versa.

l      While broadcast suppression does not work on multicasts, multicast suppression can suppress broadcasts.

l      No distinction is made between known multicast and unknown multicast for multicast suppression.

 

Related commands: multicast-suppression.

Examples

# Set the threshold that triggers broadcast suppression to 40.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] broadcast-suppression 40

# Set the maximum broadcast traffic size that triggers broadcast suppression to 40 Mbps.

[H3C-Ethernet2/1/1] broadcast-suppression bandwidth 40

# Restore the default broadcast suppression setting.

[H3C-Ethernet2/1/1] undo broadcast-suppression

1.1.2  copy configuration

Syntax

copy configuration source { interface-type interface-number | interface-name | aggregation-group agg-id } destination { interface-list [ aggregation-group agg-id ] | aggregation-group agg-id }

View

System view

Parameters

interface-type: Source port type.

interface-number: Source port number.

interface-list: Destination port list. You can specify individual ports and port ranges in the list, but the total number of them cannot exceed 10. Specify an individual port in the form of interface-type interface-number where interface-type is the port type and interface-number is the port number. Specify a port range in the form of interface-type interface-number to interface-type interface-number where the end port must be greater than the start port.

agg-id: Source or destination aggregation group ID. If it is a source aggregation group, the port with minimum port number is the source port; if it is a destination aggregation group, the configurations of all its member ports change to be consistent with those of the source port.

Description

Use the copy configuration command to copy the configuration of a port to other ports to keep their configurations consistent.

Examples

# Copy the configuration of aggregation group 1 to aggregation group 2.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] copy configuration source aggregation-group 1 destination aggregation-group 2

1.1.3  description

Syntax

description text

undo description

View

Ethernet port view

Parameters

text: Port description character string, with 64 characters at most.

Description

Use the description command to configure the description character string for Ethernet port.

Use the undo description command to cancel the port description character string.

By default, the port description character string is null.

Examples

# Configure the description character string of Ethernet port Ethernet 2/1/1 as lanswitch-interface.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] description lanswitch-interface

1.1.4  display counters

Syntax

display counters [ rate ] { inbound | outbound } interface [ interface-type ]

View

Any view

Parameters

rate: Displays the rate information of the ports in the Up state during the latest sampling period. If this keyword is not specified in the command, the system displays packet counts. The sampling period is 300 seconds by default. You can use the flow-interval to set the sampling period.

inbound: Displays the import statistic information.

outbound: Displays the export statistic information.

interface-type: Specifies the port type. Three types are available: Ethernet, Gigabit Ethernet, POS, and RPR.

Description

Use the display counters command to view the statistics on the ports of the specified types. If the port type is not specified, the system displays statistics orderly on all the ports.

Examples

# Display the inbound statistics on the GigabitEthernet ports.

<H3C> display counters inbound interface GigabitEthernet

Interface          Total(pkts)    BroadCast(pkts)    MultiCast(pkts) Err(pkts)

GE3/2/1   12,345,678,912,345           OverFlow 12,345,678,912,345 1,234,567

GE3/2/2                      0                  0                  0                 0

GE3/2/3                      0                  0                  0                 0

GE3/2/4                      0                  0                  0                 0

 OverFlow :more than 14 decimal digits(7 digits for column "Err").

:not supported.

 

&  Note:

l      Statistic values are comma-separated decimal numbers.

l      For the Total, BroadCast and MultiCast items, decimal numbers of 14 digits can be displayed at most, and those of more than 14 digits are indicated with “OverFlow”.

l      For the Err item, decimal numbers of 7 digits can be displayed at most, and those of more than 7 digits are indicated with “OverFlow”.

 

1.1.5  display interface

Syntax

display interface [ interface-type | interface-type interface-number [ packets] ]

View

Any view

Parameters

interface-type: Specifies the port type.

interface-number: Specifies the port number.

Description

Use the display interface command to view the configuration information on the port.

l           If the port type and number are not specified when displaying the port information, the information of all the ports will be displayed.

l           If only the port type is specified, all the information of the ports of this type will be displayed.

l           If both port type and port number are specified, the information of the designated port will be displayed.

Examples

# Display configuration information of Ethernet 2/1/1.

<H3C> display interface ethernet2/1/1

Ethernet2/1/1 current state : UP

 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc00-85ff

 The Maximum Transmit Unit is 1500

 Media type is twisted pair, loopback not set

 Port hardware type is 100_BASE_TX

 100Mbps-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 1552

 Broadcast MAX-ratio: 100%

 Allow jumbo frame to pass

 MixInsert-Port VPN status: not enable MixInsert access

 PVID: 48

 Mdi type: auto

 Port link-type: access

  Tagged   VLAN ID : none

  Untagged VLAN ID : 48

 Last 300 seconds input:  0 packets/sec 61 bits/sec       1%

 Last 300 seconds output:  0 packets/sec 0 bits/sec       1%

 Input(total):  54 packets, 7465 bytes

          42 broadcasts, 5 multicasts

 Input(normal):  54 packets, 7465 bytes

          - broadcasts, - multicasts

 Input:  0 input errors, 0 runts, 0 giants,  0 throttles, 0 CRC

          0 frame,  0 overruns, - aborts, 0 ignored, - parity errors

 Output(total): 1 packets, 64 bytes

          0 broadcasts, 0 multicasts, 0 pauses

 Output(normal): 1 packets, 64 bytes

          - broadcasts, - multicasts, 0 pauses

 Output: 0 output errors,  - underruns, - buffer failures

          0 aborts, 0 deferred, - collisions, 0 late collisions

          - lost carrier, - no carrier

 Receive Packet Peak Value Info: 7215 bytes, happened at 03:30:35 3-7-2001

 Transmit Packet Peak Value Info: 64 bytes, happened at 03:30:35 3-7-2001 

Table 1-1 Description on the fields of the display interface command

Field

Description

Ethernet2/1/1 current state

The current status of Ethernet port (enabled or disabled)

IP Sending Frames' Format

Ethernet frame format

Hardware address

Port hardware address

The Maximum Transmit Unit

Maximum transmit unit

Media type

Type of media

loopback not set

Port loopback test status

Port hardware type

Port hardware type

100 Mbps-speed mode, full-duplex mode

Link speed type is autonegotiation, link duplex type is autonegotiation

Both the duplex mode and the rate are set to auto-negotiation. The rate of 100 Mbps and the mode of full-duplex are adopted after negotiating with its peer

Flow-control is not enabled

Port flow control status

The Maximum Frame Length

Maximum length of the Ethernet frames that can pass the port

Broadcast MAX-ratio

Port broadcast storm suppression ratio

Allow jumbo frame to pass

Jumbo frame is allowed to pass the port

Port VPN status

Port VPN status (enable or not VPN access)

PVID

Port default VLAN ID

Mdi type

Cable type

Port link-type

Port link type

Tagged VLAN ID

The VLANs with packets tagged

Untagged VLAN ID

The VLANs with packets untagged

Last 300 seconds input:  0 packets/sec 0 bits/sec

Last 300 seconds output:  0 packets/sec 0 bits/sec

The input/output rate and the passing packet number on this port in the last 300 seconds.

Input(total):  0 packets, 0 bytes

         0 broadcasts, 0 multicasts

 Input(normal):  0 packets, 0 bytes

         - broadcasts, - multicasts

 Input:  0 input errors, 0 runts, 0 giants,  0 throttles, 0 CRC

         0 frame,  0 overruns, - aborts, 0 ignored, - parity errors

 Output(total): 0 packets, 0 bytes

         0 broadcasts, 0 multicasts, 0 pauses

 Output(normal): 0 packets, 0 bytes

         - broadcasts, - multicasts, 0 pauses

 Output: 0 output errors,  - underruns, - buffer failures

         0 aborts, 0 deferred, - collisions, 0 late collisions

         - lost carrier, - no carrier

The statistics information of input/output packets and errors on this port. “-” indicates that the item doesn’t supported by the switch.

 

1.1.6  display jumboframe configuration

Syntax

display jumboframe configuration

View

Any view

Parameters

None

Description

Use the display jumboframe configuration command to view the Jumbo frame configuration on all cards. The supported Jumbo frame length ranges, as well as the default values, may vary by card.

Examples

# Display the current Jumboframe configuration in the system.

[H3C] display jumboframe configuration

The jumboframe configuration at present:

Slot 2:

 Allow jumbo frame to pass

 The Maximum Frame Length is 1552

1.1.7  display port

Syntax

display port { hybrid | trunk }

View

Any view

Parameters

hybrid: Displays hybrid ports.

trunk: Displays trunk ports.

Description

Use the display port command to display hybrid or trunk ports.

If a hybrid or trunk port is present, the output displays the port name and VLANs on the port.

Examples

# Display hybrid ports.

<H3C> display port hybrid

Interface                VLAN passing:

Ethernet3/1/1            Tagged  : 3, 5, 7, 9, 11

                         Untagged: 1-2, 4, 6,

Ethernet3/1/2            Tagged  : none

                         Untagged: 1

The output shows that two hybrid ports are present on the device: Ethernet 3/1/1 and Ethernet 3/1/2. Ethernet 3/1/1 carries tagged VLANs 3, 5, 7, 9, and 11, and untagged VLANs 1, 2, 4, and 6. Ethernet 3/1/2 carries untagged VLAN 1 but no tagged VLANs.

# Display trunk ports.

<H3C> display port trunk

Interface                VLAN passing

Ethernet3/1/3            1, 3-5, 10

Ethernet3/1/4            none

Ethernet3/1/7            1

The output shows that three trunk ports are present on the device: Ethernet 3/1/3, Ethernet 3/1/4, Ethernet 3/1/7. Ethernet 3/1/3 carries VLANs 1, 3, 4, 5, and 10. Ethernet 3/1/4 carries no VLANs. Ethernet 3/1/7 carries VLAN 1.

1.1.8  display transceiver alarm

Syntax

display transceiver alarm interface [ interface-type interface-number ]

View

Any view

Default Level

2: System level

Parameters

interface-type interface-number: Interface type and interface number.

Description

Use the display transceiver alarm command to display the current alarm information of the optical transceiver plugged in the specified port or all optical transceivers if no port is specified.

If no error has occurred, None is displayed.

Examples

# Display the current alarm information of the pluggable transceiver in interface GigabitEthernet 1/1/1.

<H3C> display transceiver alarm interface GigabitEthernet 1/1/1

GigabitEthernet1/1/1 transceiver current alarm information:

  TX fault

  PCS receive local fault

  Laser temperature fault

The following table describes the output that the display transceiver alarm command may display.

Table 1-2 Description on the fields of the display transceiver alarm command

Field

Remarks

RX loss of signal

Receive signal is lost.

RX power high

Receive power level is high.

RX power low

Receive power level is low.

TX fault

Transmit fault

TX bias high

Transmit bias current is high.

TX bias low

Transmit bias current is low.

TX power high

Transmit power is high.

TX power low

Transmit power is low.

Temp high

Temperature is high.

Temp low

Temperature is low.

Voltage high

Voltage is high.

Voltage low

Voltage is low.

Transceiver info I/O error

Transceiver information read and write error

Transceiver info checksum error

Transceiver information checksum error

Transceiver type and port configuration mismatch

The transceiver type does not match the port configuration.

Transceiver type not supported by port hardware

The transceiver type is not supported on the port.

RX not ready

Receiver is not ready

RX CDR loss of lock

Receive clock cannot be recovered.

TX not ready

Transmitter is not ready.

TX fault

Transmit fault

TX CDR loss of lock

Transmit clock cannot be recovered.

Module not ready

Module is not ready.

APD supply fault

Avalanche photo diode (APD) supply fault

TEC fault

Thermoelectric cooler (TEC) fault

Wavelength unlocked

Wavelength of optical signal exceeds the manufacturer’s tolerance.

Transceiver info checksum error

Transceiver information checksum error

Transceiver type and port configuration mismatch

Transceiver type does not match port configuration.

Transceiver type not supported by port hardware

Transceiver type is not supported on the port.

WIS local fault

Local fault of the WAN interface sublayer (WIS)

Receive optical power fault

Receive optical power fault

PMA/PMD receiver local fault

Physical medium attachment/physical medium dependent (PMA/PMD) receiver local fault

PCS receive local fault

Local fault of the physical coding sublayer (PCS) receiver

PHY XS receive local fault

Local fault of the PHY extended sublayer (PHY XS) receiver

Laser bias current fault

Laser bias current fault

Laser temperature fault

Laser temperature fault

Laser output power fault

Laser output power fault

 

1.1.9  display transceiver diagnosis

Syntax

display transceiver diagnosis interface [ interface-type interface-number ]

View

Any view

Default Level

2: System level

Parameters

interface-type interface-number: Interface type and interface number.

Description

Use the display transceiver diagnosis command to display the currently measured values of the diagnosis parameters for the pluggable optical transceiver in the specified port or all transceivers if no port is specified.

 

&  Note:

The diagnosis information is available only for H3C customized anti-spoofing transceivers.

 

Examples

# Display the currently measured values of the digital diagnosis parameters for the optical transceiver plugged in interface GigabitEthernet 1/1/1.

<H3C> display transceiver diagnosis interface GigabitEthernet 1/1/1

GigabitEthernet1/1/1 transceiver diagnostic information:

  Current diagnostic parameters:

Temp.(°C)  Voltage(V)  Bias(mA)  RX power(dBM)  TX power(dBM)

40         3.3         1.1          20.0              -30.0

Table 1-3 Description on the fields of the display transceiver diagnosis command

Field

Description

Temp.(°C)

Digital diagnosis parameter – temperature in degrees centigrade

Voltage(V)

Digital diagnosis parameter – voltage, in V, accurate to the first decimal place.

Bias(mA)

Digital diagnosis parameter – bias current, in mA, accurate to the first decimal place.

RX power(dBM)

Digital diagnosis parameter – receive power, in dBM, accurate to the first decimal place.

TX power(dBM)

Digital diagnosis parameter – transmit power, in dBM, accurate to the first decimal place.

 

&  Note:

N/A is displayed for parameters not supported on the device.

 

1.1.10  display transceiver interface

Syntax

display transceiver interface [ interface-type interface-number ]

View

Any view

Default Level

2: System level

Parameters

interface-type interface-number: Interface type and interface number.

Description

Use the display transceiver interface command to display the major parameters of the optical transceiver plugged in the specified port or all optical transceivers if no port is specified.

Examples

# Display the major parameters of the optical transceiver plugged in interface GigabitEthernet 1/1/1.

<H3C> display transceiver interface GigabitEthernet 1/1/1

GigabitEthernet1/1/1 transceiver information:

  Transceiver Type                   : 1000_BASE_LX_SFP

  Connector Type                 : LC

  Wavelength(nm)                 : 1310

  Transfer Distance              : 10km(9um)

  Digital Diagnostic Monitoring  : YES

  Vendor Name                        : H3C

Table 1-4 Description on the fields of the display transceiver interface command

Field

Description

Transceiver Type

Physical type of the transceiver

Connector Type

Type of the connectors of the transceiver:

l      Optical connectors, SC or LC

l      Other connectors, RJ-45, CX 4, or any other type

Wavelength(nm)

Wavelength (in nm) of the transmit laser. If the transceiver supports multiple wavelengths, they are separated by commas (,).

Transfer Distance

Maximum transmission distance. If the transceiver supports multiple transmission media, their values are displayed separated by commas (,) each followed by the corresponding medium enclosed in brackets. The following are possible transmission media:

l      9 um: 9/125 μm single-mode fiber

l      50 um: 50/125 μm multi-mode fiber

l      62.5 um: 62.5/125 μm multi-mode fiber

l      TP: twisted pair

l      CX4: CX4 cable

l      STACK: stack cable

Digital Diagnostic Monitoring

Indicates support for digital diagnosis, YES for supported and NO for not supported.

Vendor Name

Module vendor

l      For an H3C customized anti-spoofing transceiver: the vendor name in the RFID1 of the module is displayed.

l      For other transceivers: The original vendor names on the modules are displayed.

Note: RFID = radio frequency identification (also called e-tag)

 

1.1.11  display transceiver manuinfo interface

Syntax

display transceiver manuinfo interface [ interface-type interface-number ]

View

Any view

Default Level

2: System level

Parameters

interface-type interface-number: Interface type and interface number.

Description

Use the display transceiver manuinfo interface command to display the radio frequency identification (RFID) information of the pluggable optical transceiver in the specified port or all optical transceivers if no port is specified.

Examples

# Display the RFID information of the optical transceiver plugged in interface GigabitEthernet 1/1/1.

<H3C> display transceiver manuinfo interface GigabitEthernet 1/1/1

GigabitEthernet1/1/1 transceiver manufacture information:

  Manu. Serial Number        : 213410A0000054000251

  Manufacturing Date     : 2005-09-01

  Vendor Name                : H3C

Table 1-5 Description on the fields of display transceiver manuinfo interface

Field

Description

Manu. Serial Number

Serial number generated for an H3C customized optical transceiver during transceiver debugging and testing. The information is stored in the RFID.

Manufacturing Date

Debugging and testing date.

Vendor Name

The specified vendor name for the transceiver. The information is stored in the RFID.

 

1.1.12  duplex

Syntax

duplex { auto | full | half }

undo duplex

View

Ethernet port view

Parameters

auto: Operates in auto-negotiation mode.

full: Operates in full-duplex mode.

half: Operates in half-duplex mode.

Description

Use the duplex command to configure the duplex mode of the Ethernet port.

Use the undo duplex command to restore the default.

By default, an Ethernet port operates in auto-negotiation mode.

Related commands: speed.

Examples

# Configure Ethernet 2/1/1 to operate in auto-negotiation mode.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] duplex auto

1.1.13  flag

flag { j0 | j1 } { sdh | sonet } flag-value

undo flag { j0 | j1 } { sdh | sonet }

View

Gigabit Ethernet port view

Parameters

j0: Specifies the trace field in the regeneration section. The field is a section overhead field and is used to test the connectivity of the connection between two ports on the section level. The field is default by default.

j1: Specifies the channel trace field, which is a high-order channel overhead field. The field is used to test the connectivity of the connection between two ports on the channel level. The field is a string of 1 to 63 characters and is default by default.

sdh: Specifies the frame format as SDH. For 10 GE WAN interfaces, the frame format can only be SDH.

sonet: Specifies the frame format as SONET.

flag-value: Value of the overhead to be set. The range of this argument varies with the keyword specified, as listed below.

l           C2: 0x0 to 0xFF.

l           J0 in SDH frame format: a string of 1 to 15 characters.

l           J1 in SDH frame format: a string of 1 to 15 characters.

l           J0 in SONET frame format: 0x0 to 0x7F.

Description

Use the flag command to set an overhead field for a port.

Use the undo flag command to restore an overhead field of a port to the default value.

Note that the flag command is available only to GE ports in WAN mode.

Examples

# Set the overhead field j0 for the 10 GE WAN port GigabitEthernet 4/2/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface GigabitEthernet4/2/1

[H3C-GigabitEthernet4/2/1] port-mode wan

[H3C-GigabitEthernet4/2/1] flag j0 sdh 1

1.1.14  flow-control

Syntax

flow-control

undo flow-control

View

Ethernet port view

Parameters

None

Description

Use the flow-control command to enable flow control on the Ethernet port to avoid discarding data packets due to congestion.

Use the undo flow-control command to disable flow control.

By default, flow control is disabled on an Ethernet port.

Examples

# Enable flow control on Ethernet 2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] flow-control

1.1.15  flow-interval

Syntax

flow-interval interval

undo flow-interval

View

Ethernet port view

Parameters

interval: Interval of performing statistics on ports in seconds, in the range of 5 to 300.

Description

Use the flow interval command to set the interval for collecting statistics on ports. The switch collects the statistics about the average speed during the interval.

Use the undo flow-interval to restore the interval to the default.

By default, the interval for collecting statistics on ports is 300 seconds.

Related commands: display interface.

Examples

# Set the interval of collecting statistics on Ethernet 3/1/1 to 100 seconds.

<H3C>system-view

System View: return to User View with Ctrl+Z.

[H3C]interface Ethernet 3/1/1

[H3C-Ethernet3/1/1] flow-interval 100

# Restore the interval of collecting statistics on Ethernet 3/1/1 to the default value.

[H3C-Ethernet3/1/1] undo flow-interval

1.1.16  interface

Syntax

interface interface-type interface-number

View

System view

Parameters

interface-type: Specifies the port type. It can be Aux, Ethernet, Loopback, M-Ethernet, NULL, VLAN-interface, GigabitEthernet and 10-GigabitEthernet, POS, RPR.

interface-number: Specifies the port number. It adopts slot-number/subslot-number/ port-number format. slot-number specifies the LPU slot number of the port. For S9505, it ranges from 2 to 6. For S9508, it ranges from 0 to 3 and 6 to 9 (slot number 4 and 5 are SRPU). For S9512, it ranges from 0 to 5 and 8 to 13 (slot number 6 and 7 are SRPU). subslot-number specifies the sub-slot number of the port and ranges from 1 to 3. port-number specifies the port number on the daughter card. It is 1 or ranges from 1 to 12, 20, or 48, depending on the service board type. M-Ethernet is used to update and maintain. It ranges from 0/0/0.

Description

Use the interface command to enter various types of Ethernet port views.

Before you can configure the related parameters of a type of Ethernet port, you must first use this command to enter the Ethernet port view of this type.

Examples

# Enter the Ethernet 2/1/1 port view.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

1.1.17  jumboframe enable

Syntax

jumboframe enable [ jumboframe-value ] slot slot-number

jumboframe disable slot slot-number

View

System view

Parameters

slot-number: Specifies the slot number of the card.

jumboframe-value: Specifies the maximum size (in bytes) of jumbo frames permitted to pass the card.

Description

Use the jumboframe enable command to permit jumbo frames to pass the card on the specified slot and set the maximum size of Jumbo frames.

Use the jumboframe disable slot command to prohibit jumbo frames from passing the card on the specified slot.

By default, jumbo frame is permitted to pass cards.

Related commands: display jumboframe configuration.

 

&  Note:

The system supports discrete values of Jumbo frame size ranging from 1,552 to 10,240. However, effective Jumbo frame values fall into several sections: the effective Jumbo frame sizes for the 1,552-9,022 section are 1,552 and 9,022, that for the 9,023-9,192 section is 9,192, and that for the 9,193-10,240 section is 10,240.

 

Examples

# Permit jumbo frames to pass the card on slot 6 and set the maximum size of Jumbo frames to 9022.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] jumboframe enable 9022 slot 6

1.1.18  link-status hold

Syntax

link-status hold hold-time

undo link-status hold

View

System view

Parameters

hold-time: Link-state hold time in seconds. If this argument is set to 0, the state change of a link is reported to the upper layer without delay. If this argument is set to an integer other than 0, link state change will be reported after the specified interval instead of immediately.

Description

Use the link-status hold command to set the link-state hold time.

Use the undo link-status hold command to restore the default link-state hold time.

By default, the link-state hold time is 3 seconds.

Related commands: display interface.

Examples

# Set the link-state hold time to 5 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] link-status hold 5

# Set the link-state hold time to 0 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] link-status hold 0

1.1.19  loopback

Syntax

loopback { external | internal }

undo loopback

View

Ethernet port view

Parameters

external: Places the Ethernet port in an external loopback. Currently, the Ethernet ports on the S9500 series do not support this mode.

internal: Places the Ethernet port in an internal loopback.

Description

Use the loopback command to enable loopback on the Ethernet port.

Use the undo loopback command to disable loopback on the Ethernet port.

By default, loopback is disabled on Ethernet ports.

Examples

# Place Ethernet 2/1/1 to operate in internal loopback mode.

<H3C>system-view

System View: return to User View with Ctrl+Z.

[H3C]interface ethernet2/1/1

[H3C-Ethernet2/1/1] loopback internal

1.1.20  mdi

Syntax

mdi { across | auto | normal }

undo mdi

View

Ethernet port view

Parameters

across: Network cable type is cross-over cable.

auto: Network cable will be recognized whether it is straight-through cable or cross-over cable.

normal: Network cable of the port is straight-through cable.

Description

Use the mdi command to configure the network cable type of the Ethernet ports.

Use the undo mdi command to restore the default type.

By default, the network cable type will be recognized automatically.

 

  Caution:

This command only takes effect on the 10/100 Mbps and 10/100/1,000 Mbps electrical ports.

 

Examples

# Configure the network cable type of Ethernet port Ethernet 2/1/1 as auto.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] mdi auto

1.1.21  multicast-suppression

Syntax

multicast-suppression { ratio | bandwidth bandwidth }

undo multicast-suppression

View

Ethernet port view

Parameters

ratio: Specifies a percentage of the total bandwidth for multicasts on the Ethernet port. The value range is 1 to 100. The smaller the ratio is, the smaller the multicast traffic is allowed.

bandwidth: Specifies the maximum bandwidth for multicasts on the port. The value range is 1 to the maximum port bandwidth.

Description

Use the multicast-suppression command to enable multicast suppression. When doing this, you can set the percentage of total port bandwidth for multicasts or set the maximum port bandwidth for multicasts. Multicasts that cross the threshold will be suppressed.

Use the undo multicast-suppression command to disable multicast suppression.

By default, all broadcasts are allowed to pass, that is the ratio argument is set to 100.

The multicast suppression setting you configured with the multicast-suppression command will overwrite the previous multicast suppression setting, if any.

 

  Caution:

l      You cannot enable both multicast suppression and broadcast suppression simultaneously on the same card. Namely, once you have enabled broadcast suppression on some ports of a card, you cannot enable multicast suppression on the other ports of the card, and vice versa. Although the commands are based on ports, the mutual exclusion between these two commands is based on cards.

l      While broadcast suppression does not work on multicasts, multicast suppression can suppress broadcasts.

l      No distinction is made between known multicast and unknown multicast for multicast suppression.

 

Related commands: broadcast-suppression.

Examples

# Set the threshold that triggers multicast suppression to 40%.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C]interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] multicast-suppression 40

# Set the maximum multicast traffic size that triggers multicast suppression to 40 Mbps.

[H3C-Ethernet2/1/1] multicast-suppression bandwidth 40

# Disable multicast suppression.

[H3C-Ethernet2/1/1] undo multicast-suppression

1.1.22  port access vlan

Syntax

port access vlan vlan-id

undo port access vlan

View

Ethernet port view

Parameters

vlan-id: VLAN ID defined in IEEE802.1Q, ranging from 2 to 4094.

Description

Use the port access vlan command to assign the access port to the specified VLAN.

Use the undo port access vlan command to restore the default.

By default, all Ethernet ports are access ports and belong to VLAN 1.

The condition for using this command is that the VLAN indicated in vlan-id must exist.

Examples

# Assign Ethernet 2/1/1 to VLAN 3 (assuming VLAN 3 already exists).

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port access vlan 3

1.1.23  port hybrid pvid vlan

Syntax

port hybrid pvid vlan vlan-id

undo port hybrid pvid

View

Ethernet port view

Parameters

vlan-id: VLAN ID defined in IEEE802.1Q, ranging from 1 to 4094 and the default vlan-id is 1.

Description

Use the port hybrid pvid vlan command to configure the default VLAN ID of the local hybrid port.

Use the undo port hybrid pvid command to restore the default VLAN ID of the local hybrid port.

The default VLAN ID of local hybrid port shall be consistent with that of the peer one, otherwise, the packet cannot be properly transmitted.

Related commands: port link-type.

Examples

# Configure the default VLAN of the hybrid port Ethernet 2/1/1 as VLAN 100.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port hybrid pvid vlan 100

1.1.24  port hybrid vlan

Syntax

port hybrid vlan vlan-id-list { tagged | untagged }

undo port hybrid vlan vlan-id-list

View

Ethernet port view

Parameters

vlan-id-list: vlan-id-list = [ vlan-id1 [ to vlan-id2 ] ]&<1-10>: Specifies which VLAN the hybrid port will be added to. It can be discrete. The vlan-id ranges from 1 to 4,094. &<1-10> indicates that the former parameter can be input 10 times repeatedly at most.

tagged: Packet of specified VLAN will have tag.

untagged: Packet of specified VLAN will not have tag.

Description

Use the port hybrid vlan command to assign the hybrid port to the specified existing VLAN.

Use the undo port hybrid vlan command to remove the hybrid port from the specified VLAN.

A hybrid port can be assigned to multiple VLANs. If the port hybrid vlan vlan-id-list { tagged | untagged } command is used for many times, the VLANs carried by the hybrid port is the set of vlan-id-list.

Before assigning a hybrid port to a VLAN, create the VLAN first.

Related commands: port link-type.

Examples

# Assign hybrid port Ethernet 2/1/1 to VLANs 2, 4, and 50 through 100 in tagged mode.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port hybrid vlan 2 4 50 to 100 tagged

1.1.25  port link-type

Syntax

port link-type { access | hybrid | trunk }

undo port link-type

View

Ethernet port view

Parameters

access: Configures the port as an access port.

hybrid: Configures the port as a hybrid port.

trunk: Configures the port as a trunk port

Description

Use the port link-type command to configure the link type of the Ethernet port.

Use the undo port link-type command to restore the default.

To change the link type of a port from trunk to hybrid or vice versa, you must set the link type to access first.

By default, the link type of a port is access.

Examples

# Configure Ethernet 2/1/1 as a trunk port.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port link-type trunk

1.1.26  port-mode

Syntax

port-mode { wan | lan }

undo port-mode

View

Ethernet port view

Parameters

wan: Configures the port to work in WAN mode. Use this mode for connecting to an SDH network. This mode is available only on 10-GE ports.

lan: Configures the port to work in LAN mode. Use this mode for connecting to Ethernet.

Description

Use the port-mode command to configure the network mode of the port.

Use the undo port-mode command to restore the default.

By default, Ethernet ports work in LAN mode.

 

&  Note:

Ports on the XP4CA and XP4B boards do not support the WAN mode.

 

Examples

# Set GigabitEthernet 2/1/1 to work in WAN mode.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface GigabitEthernet2/1/1

[H3C-GigabitEthernet2/1/1] port-mode wan

# Restore the default (LAN) mode on GigabitEthernet 2/1/1.

[H3C-GigabitEthernet2/1/1] undo port-mode

1.1.27  port trunk permit vlan

Syntax

port trunk permit vlan { vlan-id-list | all }

undo port trunk permit vlan { vlan-id-list | all }

View

Ethernet port view

Parameters

vlan-id-list: vlan-id-list = [ vlan-id1 [ to vlan-id2 ] ] & <1-10> is the VLAN range joined by the trunk port. It can be discrete. The vlan-id ranges from 2 to 4,094. &<1-10> indicates that the former parameter can be input 10 times repeatedly at most.

all: Assigns the trunk port to all VLANs.

Description

Use the port trunk permit vlan command to assign the trunk port to the specified VLAN(s).

Use the undo port trunk permit vlan command to remove the trunk port from the specified VLAN(s).

A trunk port can be assigned to multiple VLANs. If the port trunk permit vlan command is used many times, the VLANs that the trunk port belongs to are the set of these vlan-id-list.

Related commands: port link-type.

Examples

# Remove the trunk port from the default VLAN.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] undo port trunk permit vlan 1

# Assign the trunk port to all VLANs.

[H3C-Ethernet2/1/1] port trunk permit vlan all

1.1.28  port trunk pvid vlan

Syntax

port trunk pvid vlan vlan-id

undo port trunk pvid

View

Ethernet port view

Parameters

vlan-id: VLAN ID defined in IEEE802.1Q, ranging from 1 to 4,094 and the default vlan-id is 1.

Description

Use the port trunk pvid vlan command to configure the default VLAN ID of the trunk port.

Use the undo port trunk pvid command to restore the default.

The default VLAN ID of the local trunk port should be consistent with that of the peer one. Otherwise, the packets cannot be properly transmitted.

Related commands: port link-type.

Examples

# Configure the default VLAN of the trunk port Ethernet 2/1/1 as 100.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] port trunk pvid vlan 100

1.1.29  reset counters interface

Syntax

reset counters interface [ interface-type | interface-type interface-number ]

View

User view

Parameters

interface-type: Specifies the port type.

interface-number: Specifies the port number.

Description

Use the reset counters interface command to clear statistics for ports.

If the port type and number are not specified, the statistics of all ports are cleared. If only the port type is specified, all the statistics of the ports of this type are cleared. If both port type and port number are specified, only the statistics of the specified port are cleared.

This command cannot clear the statistics of 802.1x-enabled ports.

Examples

# Clear the statistics of Ethernet port Ethernet 2/1/1.

<H3C> reset counters interface ethernet2/1/1

1.1.30  shutdown

Syntax

shutdown

undo shutdown

View

Ethernet port view

Parameters

None

Description

Use the shutdown command to disable the Ethernet port.

Use the undo shutdown command to enable the Ethernet port.

By default, the Ethernet port is enabled.

Examples

# Enable Ethernet 2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] undo shutdown

1.1.31  speed

Syntax

speed { 10 | 100 | 1000 | 10000 | auto }

undo speed

View

Ethernet port view

Parameters

10: Speed on the port is 10 Mbps.

100: Speed on the port is 100 Mbps.

1000: Speed on the port is 1,000 Mbps.

10000: Speed on the port is 10 Gbps.

auto: Port speed is in peer auto-negotiation status.

Description

Use the speed command to configure the port speed.

Use the undo speed command to restore the default speed.

The optional parameters of this command are determined by the port types and duplex modes. For example, the 10/100/1,000 Mbps electrical ports support three optional parameters including 10 Mbps, 100 Mbps, and 1,000 Mbps. You can select proper port speed as you require. But when the duplex mode is changed into half duplex mode, the port speed can be set to 1,000 Mbps or auto.

By default, the speed is auto.

Related commands: duplex.

Examples

# Configure Ethernet 2/1/1 port speed as 100 Mbps.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] speed 100

1.1.32  vlan filter enable

Syntax

vlan filter enable

vlan filter disable

View

Ethernet port view

Parameters

None

Description

Use the vlan filter enable command to enable the VLAN filtering function for a port.

Use the vlan filter disable command to disable the VLAN filtering function for the port.

By default, the VLAN filtering function is enabled on a port.

Examples

# Enable the VLAN filtering function on Ethernet 2/1/1.

<H3C> system-view

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] vlan filter enable

1.1.33  vlan-vpn enable

Syntax

vlan-vpn enable

undo vlan-vpn

View

Ethernet port view

Parameters

None

Description

Use the vlan-vpn enable command to enable VLAN VPN on the port.

Use the undo vlan-vpn command to disable VLAN VPN on the port.

Note that if anyone of GVRP, STP, NTP or 802.1x has been enabled on a port, VLAN VPN cannot be enabled on it.

By default, VLAN VPN is disabled on a port.

Examples

# Enable VLAN VPN on Ethernet 2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] vlan-vpn enable

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网