03-Layer 2 Command Reference

HomeSupportReference GuidesCommand ReferencesH3C Access Controllers Command References(E3703P61 R2509P61 R3709P61 R2609P61 R3509P61)-6W10203-Layer 2 Command Reference
01-Ethernet Interface Commands
Title Size Download
01-Ethernet Interface Commands 146.81 KB

Ethernet interface configuration commands

General Ethernet interface and subinterface configuration commands

combo enable

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use combo enable to activate the copper or fiber combo port of a combo interface.

Syntax

combo enable { copper | fiber }

Default

The copper combo port of a combo interface is activated.

Views

Ethernet interface view (the interface must be a combo interface)

Default command level

2: System level

Parameters

copper: Activates the copper combo port. In this case, use twisted pairs to connect the port.

fiber: Activates the fiber combo port. In this case, use optical fibers to connect the port.

Usage guidelines

A combo interface is a logical interface that physically contains one fiber combo port and one copper combo port on the device panel. The two ports share one forwarding interface. As a result, they cannot work simultaneously. When you activate either port, the other port is automatically disabled. You can select to activate the copper combo port or fiber combo port.

Examples

# Activate the copper combo port of combo interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] combo enable copper

# Activate the fiber combo port of combo interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] combo enable fiber

default

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use default to restore the default settings for an Ethernet interface.

Syntax

default

Views

Ethernet interface view, Ethernet subinterface view

Default command level

2: System level

Usage guidelines

CAUTION

CAUTION:

The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network.

 

This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. Use the display this command in interface view to identify these commands, and then use their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.

Examples

# Restore the default settings for interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] default

This command will restore the default settings. Continue? [Y/N]:y

# Restore the default settings for subinterface GigabitEthernet 1/0/5.1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/5.1

[Sysname-GigabitEthernet1/0/5.1] default

This command will restore the default settings. Continue? [Y/N]:y

description

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use description to change the description of the interface.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The default description of an interface is the interface name plus Interface. For example, GigabitEthernet1/0/1 Interface.

Views

Ethernet interface view, Ethernet subinterface view

Default command level

2: System level

Parameters

text: Specifies the interface description, a case-sensitive string of 1 to 80 characters.

When you specify a description, follow these guidelines:

·     Each Unicode character takes the space of two regular characters.

·     To use Unicode characters or symbols in an interface description, install the specific input method editor and log in to the device through remote login software that supports the character type.

·     When the length of a description string reaches or exceeds the maximum line width on the terminal software, the software starts a new line, possibly breaking a Unicode character in half. This might result in garbled characters at the end of a line.

Examples

# Change the description of interface GigabitEthernet 1/0/1 to lanswitch-interface.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] description lanswitch-interface

# Change the description of subinterface GigabitEthernet 1/0/5.1 to l3-subinterface1/0/5.1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/5.1

[Sysname-GigabitEthernet1/0/5.1] description l3-subinterface1/0/5.1

Related commands

display interface

display interface

Use display interface to display Ethernet interface information.

Syntax

display interface [ interface-type ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]

display interface interface-type { interface-number | interface-number.subnumber } [ brief ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

interface-number.subnumber: Specifies a subinterface number, where interface-number is an 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. Support for this argument depends on the device model. For more information, see About the H3C Access Controllers Command References.

brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.

down: Displays information about interfaces in the down state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Usage guidelines

If no interface type is specified, this command displays information about all interfaces.

If an interface type is specified but no interface number or subinterface number is specified, this command displays information about all interfaces of the specified type.

Examples

# Display detailed information about Layer 2 interface GigabitEthernet 1/0/1.

<Sysname> display interface gigabitethernet 1/0/1

 GigabitEthernet1/0/1 current state: UP

 IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 0000-000f-0007

 Description: GigabitEthernet1/0/1 Interface

 Loopback is not set

 Media type is twisted pair, promiscuous mode set

 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 4096

 Broadcast MAX-ratio: 100%

 Unicast MAX-ratio: 100%

 Multicast MAX-ratio: 100%

 Allow jumbo frame to pass

 PVID: 1

 Port link-type: access

  Tagged   VLAN ID : none

  Untagged VLAN ID : 1

 Port priority: 0

 Output queue: (Urgent queuing :Size/Length/Discards) 0/100/0

 Output queue: (Protocol queuing: Size/Length/Discards) 0/500/0

 Output queue: (FIFO queuing: Size/Length/Discards) 0/75/0

 Last clearing of counters:  Never

 Last 300 seconds input:  0 packets/sec 74 bytes/sec 0%

 Last 300 seconds output:  0 packets/sec 12 bytes/sec 0%

 Input (total):  21322 packets, 1748554 bytes

          68235 unicasts, 4718 broadcasts, 7852 multicasts, - pauses

 Input (normal):  21322 packets, - bytes

          1268 unicasts, 7560 broadcasts, 12494 multicasts, 0 pauses

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

          0 CRC, - frame, - overruns, - aborts

          - ignored, - parity errors

 Output (total): 1502 packets, 138924 bytes

          - unicasts, 2 broadcasts, 406 multicasts, 0 pauses

 Output (normal): - packets, - bytes

          1094 unicasts, - broadcasts, - multicasts, - pauses

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

          - aborts, 1 deferred, 2 collisions, 0 late collisions

          - lost carrier, - no carrier

# Display information about Layer 3 interface GigabitEthernet 1/0/5.

<Sysname> display interface gigabitethernet 1/0/5 | include current state:|bytes

GigabitEthernet1/0/5 current state: DOWN ( Administratively )

Line protocol current state: DOWN

    Last 300 seconds input rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec

    Last 300 seconds output rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec

    Input: 0 packets, 0 bytes, 0 buffers

    Output:0 packets, 0 bytes, 0 buffers

Table 1 Command output

Field

Description

GigabitEthernet1/0/1 current state

Physical state of the Ethernet interface. For more information, see Table 2.

IP Packet Frame Type

Ethernet framing format on the interface.

Loopback

Loopback testing status of the interface.

1000Mbps-speed mode

The interface is operating at 1000 Mbps.

This field displays Unknown-speed mode when the interface is disconnected from the peer with which it will automatically negotiate a port speed.

full-duplex mode

The interface is operating in full-duplex mode.

This field displays link duplex type is force link when the duplex mode of the interface is fixed and not configurable.

Link speed type is autonegotiation

The interface will negotiate a speed with its peer.

link duplex type is autonegotiation

The interface will negotiate a duplex mode with its peer.

The Maximum Frame Length

Maximum Ethernet frame length allowed on the interface.

Broadcast MAX-ratio

Broadcast suppression threshold as a percentage of the maximum interface rate. When the threshold is exceeded, the interface drops broadcast packets.

Unicast MAX-ratio

Unknown unicast suppression threshold as a percentage of the maximum interface rate. When the threshold is exceeded, the interface drops unknown unicast packets.

Multicast MAX-ratio

Multicast suppression threshold as a percentage of the maximum interface rate. When the threshold is exceeded, the interface drops multicast packets.

Allow jumbo frame to pass

Jumbo frames are allowed to pass through the interface.

PVID

Port VLAN ID.

Port link-type

Link type of the interface:

·     access.

·     trunk.

·     hybrid.

Tagged   VLAN ID

VLANs for which the interface sends packets without removing VLAN tags.

Untagged VLAN ID

VLANs for which the interface sends packets after removing VLAN tags.

Output queue

Information about the output queues. This field is displayed only for WX5510E ACs.

Urgent queuing

This field is displayed only for WX5510E ACs.

Protocol queuing

This field is displayed only for WX5510E ACs.

FIFO queuing

This field is displayed only for WX5510E ACs.

Size

Number of packets in the queue. This field is displayed only for WX5510E ACs.

Length

Length of the queue. This field is displayed only for WX5510E ACs.

Discards

Number of discarded packets. This field is displayed only for WX5510E ACs.

Last clearing of counters:  Never

Time when the reset counters interface command was last used to clear statistics on the interface. Never indicates that the reset counters interface command was never used since the device was started.

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

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

Average rate of input and output traffic in the last 300 seconds, in pps and Bps.

Input (total):  21322 packets, 1748554 bytes

          68235 unicasts, 4718 broadcasts, 7852 multicasts, - pauses

Inbound traffic statistics (in packets and bytes) for the interface. All inbound normal and abnormal packets (including unicast, broadcast, and multicast), and pause frames were counted.

Input (normal):  21322 packets, - bytes

          1268 unicasts, 7560 broadcasts, 12494 multicasts, 0 pauses

Inbound normal traffic (including unicast, broadcast, and multicast) and pause frame statistics (in packets and bytes) for the interface.

input errors

Statistics of error packets received on the interface.

runts

Inbound frames that are shorter than 64 bytes, that are in correct format, and that contain valid CRCs.

giants

Inbound frames larger than the maximum frame length supported on the interface.

·     For an Ethernet interface that does not permit jumbo frames, giants refer to frames larger than 1536 bytes (without VLAN tags) or 1540 bytes (with VLAN tags).

·     For an Ethernet interface that permits jumbo frames, giants refer to frames larger than the maximum size of Ethernet frames that are allowed to pass through, which is configured when you configure jumbo frame support on the interface.

- throttles

Number of times that the port shut down because of buffer or CPU overload.

CRC

Total number of inbound frames that had a normal length but contained checksum errors.

frame

Total number of inbound frames that contained checksum errors and a non-integer number of bytes.

- overruns

Number of packets dropped because the input rate of the port exceeded the queuing capability.

aborts

Total number of illegal inbound packets:

·     Fragment frames—CRC error frames shorter than 64 bytes. The length can be an integer or non-integer value.

·     Jabber frames—CRC error frames greater than the maximum frame length supported on the Ethernet interface (with an integer or non-integer length). For an Ethernet interface that does not permit jumbo frames, jabber frames refer to CRC error frames greater than 1518 bytes (without VLAN tags) or 1522 bytes (with VLAN tags). For an Ethernet interface that permits jumbo frames, jabber frames refer to CRC error frames greater than the maximum size of Ethernet frames that are allowed to pass through the interface (which is configured when you configure jumbo frame support on the interface).

·     Symbol error frames—Frames that contained at least one undefined symbol.

·     Unknown operation code frames—Non-pause MAC control frames.

·     Length error frames—Frames whose 802.3 length fields did not accord with the actual frame length (46 to 1500 bytes).

ignored

Number of inbound frames dropped because the receiving buffer of the port ran low.

- parity errors

Total number of frames with parity errors.

Output (total): 1502 packets, 138924 bytes

          - unicasts, 2 broadcasts, 406 multicasts, 0 pauses

Outbound traffic statistics (in packets and bytes) for the port. All outbound normal and abnormal packets (including unicast, broadcast, and multicast), and pause frames were counted.

Output (normal): - packets, - bytes

          1094 unicasts, - broadcasts, - multicasts, - pauses

Outbound normal traffic (including unicast, broadcast, and multicast) and pause frame statistics (in packets and bytes) for the interface.

output errors

Statistics of error packets sent out of the interface.

- underruns

Number of packets dropped because the output rate of the interface exceeded the output queuing capability. This is a low-probability hardware anomaly.

- buffer failures

Number of packets dropped because the transmitting buffer of the interface ran low.

aborts

Number of packets that failed to be transmitted, for example, because of Ethernet collisions.

deferred

Number of frames that the interface deferred to transmit because of detected collisions.

collisions

Number of frames that the interface stopped transmitting because Ethernet collisions were detected during transmission.

late collisions

Number of frames that the interface deferred to transmit after transmitting their first 512 bits, because of detected collisions.

lost carrier

Number of carrier losses during transmission. This counter applies to serial WAN interfaces.

- no carrier

Number of times that the port failed to detect the carrier when attempting to send frames. This counter applies to serial WAN interfaces.

 

 

NOTE:

If an output field is not available, a hyphen (-) is displayed.

 

Table 2 Description on the possible physical states of a Layer 2 Ethernet interface

Field

Description

UP

The interface is physically up.

DOWN

The interface is physically down because no physical connection exists (possibly because the network cable is disconnected or faulty).

DOWN ( Administratively )

The interface was shut down with the shutdown command. To restore its physical state, use the undo shutdown command.

DOWN ( Link-Aggregation interface down )

The interface is down because the aggregate interface corresponding to the aggregation group to which it belongs was shut down with the shutdown command.

DOWN ( OAM connection failure )

The interface is down because an OAM connection failed to be established on it or the OAM connection is disconnected.

DOWN ( DLDP connection failure )

The interface is down because a DLDP connection failed to be established on it or the DLDP connection is disconnected.

DOWN ( Loopback detection-protected )

The interface is shut down because a loop is detected on it.

DOWN ( BPDU-protected )

The interface is shut down by the BPDU guard function.

DOWN ( Monitor-Link uplink down )

The interface is down because the uplink of the monitor link group to which it belongs is down.

 

# Display information about Layer 3 subinterface GigabitEthernet 1/0/5.1.

<Sysname> display interface gigabitethernet 1/0/5.1

GigabitEthernet1/0/5.1 current state: DOWN                                     

Line protocol current state: DOWN                                              

Description: GigabitEthernet1/0/5.1 Interface                                  

The Maximum Transmit Unit is 1500                                              

Internet protocol processing : disabled                                        

IP Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 000f-e212-ff11        

IPv6 Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 000f-e212-ff11      

 Last clearing of counters:  Never                                             

    0 packets input, 0 bytes, 0 drops                                          

    0 packets output, 0 bytes, 0 drops

Table 3 Command output

Field

Description

GigabitEthernet1/0/5.1 current state

State of the Ethernet subinterface:

·     DOWN ( Administratively )—The Ethernet subinterface was shut down with the shutdown command. The subinterface is administratively down.

·     DOWN ( Link-Aggregation interface down )—The Ethernet subinterface is physically down because the aggregate interface corresponding to the aggregation group to which the Ethernet subinterface belongs was shut down with the shutdown command.

·     DOWN—The Ethernet subinterface is administratively up but physically down (possibly because no physical link is present or the link has failed).

·     UP—The Ethernet subinterface is both administratively and physically up.

Line protocol current state

Link layer state of the subinterface:

·     DOWN—The subinterface is physically down.

·     UP—The subinterface is physically up.

Internet protocol processing

Disabled indicates that the subinterface cannot process IP packets.

For a subinterface configured with an IP address, this field changes to Internet Address is.

Last clearing of counters

Time when the reset counters interface command was last used to clear the interface statistics. This field displays Never if the reset counters interface command has never been used on the interface since device startup.

 

# Display brief information about all interfaces.

<Sysname> display interface brief

The brief information of interface(s) under route mode:                        

Link: ADM - administratively down; Stby - standby                              

Protocol: (s) - spoofing                                                        

Interface            Link Protocol Main IP         Description                 

NULL0                UP   UP(s)    --                                          

Vlan1                UP   UP       192.168.11.1                                 

                                                                               

The brief information of interface(s) under bridge mode:                       

Link: ADM - administratively down; Stby - standby                               

Speed or Duplex: (a)/A - auto; H - half; F - full                              

Type: A - access; T - trunk; H - hybrid                                        

Interface            Link Speed   Duplex Type PVID Description                 

BAGG1                UP   2G(a)   F(a)   A    1                                

GE1/0/1              UP   1G      F(a)   A    1                                

GE1/0/2              UP   1G      F(a)   A    1

# Filter the brief interface information to display the line starting with the (s) string and all subsequent lines.

<Sysname> display interface brief | begin (s)

The brief information of interface(s) under route mode:                         

Link: ADM - administratively down; Stby - standby                              

Protocol: (s) - spoofing                                                       

Interface            Link Protocol Main IP         Description                  

NULL0                UP   UP(s)    --                                          

Vlan1                UP   UP       192.168.11.1                                

                                                                               

The brief information of interface(s) under bridge mode:                       

Link: ADM - administratively down; Stby - standby                              

Speed or Duplex: (a)/A - auto; H - half; F - full                              

Type: A - access; T - trunk; H - hybrid                                        

Interface            Link Speed   Duplex Type PVID Description                 

BAGG1                UP   2G(a)   F(a)   A    1                                

GE1/0/1              UP   1G      F(a)   A    1                                

GE1/0/2              UP   1G      F(a)   A    1

When you use the begin keyword to filter the output, the system only searches the Layer 2 interface list.

# Display brief information about all UP interfaces.

<Sysname> display interface brief | include UP

The brief information of interface(s) under route mode:                        

Link: ADM - administratively down; Stby - standby                              

Protocol: (s) - spoofing                                                        

Interface            Link Protocol Main IP         Description                 

NULL0                UP   UP(s)    --                                          

Vlan1                UP   UP       192.168.11.1                                

                                                                               

The brief information of interface(s) under bridge mode:                       

Link: ADM - administratively down; Stby - standby                              

Speed or Duplex: (a)/A - auto; H - half; F - full                              

Type: A - access; T - trunk; H - hybrid                                        

Interface            Link Speed   Duplex Type PVID Description                 

BAGG1                UP   2G(a)   F(a)   A    1                                

GE1/0/1              UP   1G      F(a)   A    1                                

GE1/0/2              UP   1G      F(a)   A    1

# Display the brief information about all interfaces except Ethernet interfaces.

<Sysname> display interface brief | exclude GE

The brief information of interface(s) under route mode:                        

Link: ADM - administratively down; Stby - standby                              

Protocol: (s) - spoofing                                                       

Interface            Link Protocol Main IP         Description                 

NULL0                UP   UP(s)    --                                           

Vlan1                UP   UP       192.168.11.1                                

                                                                               

The brief information of interface(s) under bridge mode:                        

Link: ADM - administratively down; Stby - standby                              

Speed or Duplex: (a)/A - auto; H - half; F - full                              

Type: A - access; T - trunk; H - hybrid                                         

Interface            Link Speed   Duplex Type PVID Description                 

BAGG1                UP   2G(a)   F(a)   A    1

# Display information about interfaces in the down state and the relevant causes.

<Sysname> display interface brief down

The brief information of interface(s) under bridge mode:                       

Link: ADM - administratively down; Stby - standby                              

Interface            Link Cause                                                

GE1/0/2             ADM  Administratively

Table 4 Command output

Field

Description

The brief information of interface(s) under route mode:

The command displays brief information about Layer 3 interfaces.

Link: ADM - administratively down; Stby - standby

Link layer state of the interface:

·     ADM—The interface has been shut down by the network administrator. To recover its physical layer state, use the undo shutdown command.

·     Stby—The interface is a standby interface. You can use the display standby state command to check the corresponding primary interface.

Protocol: (s) - spoofing

If the network layer protocol state of an interface is shown as UP but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag, (a letter s in parentheses). This attribute is typical of interface Null 0 and loopback interfaces.

Interface

Interface name.

Link

Physical link state of the interface:

·     UP—The link is up.

·     DOWN—The link is physically down.

·     ADM—The link has been administratively shut down. To recover its physical state, use the undo shutdown command.

·     Stby—The interface is a standby interface.

Protocol

Protocol connection state of the interface:

·     UP.

·     DOWN.

·     UP(s).

Description

Interface description.

Information displayed in this field is restricted by space. To view the complete interface description, use the display interface command without specifying the brief keyword.

The brief information of interface(s) under bridge mode:

Brief information about Layer 2 interfaces.

Speed or Duplex: (a)/A - auto; H - half; F - full

If the speed of an interface is automatically negotiated, its speed attribute includes the auto negotiation flag, the letter a in parentheses.

If the duplex mode of an interface is automatically negotiated, its duplex mode attribute includes the following options:

·     (a)/A—Auto negotiation.

·     H—Half negotiation.

·     F—Full negotiation.

Type: A - access; T - trunk; H - hybrid

Link type options for Ethernet interfaces.

Speed

Interface rate, in bps.

Duplex

Duplex mode of the interface:

·     AAuto negotiation.

·     FFull duplex.

·     F(a)Auto-negotiated full duplex.

·     HHalf duplex.

·     H(a)Auto-negotiated half duplex.

Type

Link type of the interface:

·     AAccess.

·     HHybrid.

·     TTrunk.

PVID

Port VLAN ID.

 

Table 5 Causes for the physical state of an interface to be DOWN

Field

Description

Not connected

No physical connection exists (possibly because the network cable is disconnected or faulty).

Administratively

The port was shut down with the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

Link-Aggregation interface down

The aggregate interface corresponding to the aggregation group to which the interface belongs was shut down with the shutdown command.

OAM connection failure

The OAM connection failed (possibly because the connection failed to be established or the connection is disconnected).

DLDP connection failure

The DLDP connection failed (possibly because the connection failed to be established or the connection is disconnected).

Loopback detection-protected

The interface is shut down because a loop was detected on it.

BPDU-protected

The interface is shut down by the BPDU guard function.

Monitor-Link uplink down

The uplink of the monitor link group to which the interface belongs is down.

 

Related commands

interface

duplex

Use duplex to set the duplex mode for an Ethernet interface.

Use undo duplex to restore the default duplex mode of the Ethernet interface.

Syntax

duplex { auto | full | half }

undo duplex

Default

Ethernet interfaces operate in auto negotiation mode.

Views

Ethernet interface view

Default command level

2: System level

Parameters

auto: Sets the interface to operate in auto negotiation mode.

full: Sets the interface to operate in full duplex mode.

half: Sets the interface to operate in half-duplex mode. This keyword is not available for 10-GE interfaces.

Usage guidelines

Support for this command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Configure interface GigabitEthernet 1/0/1 to operate in full duplex mode.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] duplex full

flow-control

Use flow-control to enable TxRx mode generic flow control on an Ethernet interface.

Use undo flow-control to disable generic flow control on the Ethernet interface.

Syntax

flow-control

undo flow-control

Default

Generic flow control on an Ethernet interface is disabled.

Views

Ethernet interface view

Default command level

2: System level

Usage guidelines

TxRx mode flow control allows an Ethernet interface to receive common pause frames from its peer, and send common pause frames to notify its peer of congestion.

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.

·     Upon receiving a flow control frame from its peer, the interface suspends sending packets.

To implement flow control on a link, enable the generic flow control function at both ends of the link.

Support for this command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Enable TxRx mode generic flow control on the interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] flow-control

flow-interval

Use flow-interval to set the interface statistics polling interval.

Use undo flow-interval to restore the default interval.

Syntax

flow-interval interval

undo flow-interval

Default

The interface statistics polling interval is 300 seconds.

Views

Layer 2 Ethernet interface view

Default command level

2: System level

Parameters

interval: Sets the statistics polling interval, in seconds. It is in the range of 5 to 300 and must be a multiple of 5.

Examples

# Set the statistics polling interval to 100 seconds on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] flow-interval 100

interface

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use interface to enter interface view.

Syntax

interface interface-type { interface-number | interface-number.subnumber }

Views

System view

Default command level

2: System level

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

interface-number.subnumber: Specifies a subinterface number, where interface-number is an 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.

Examples

# Enter GigabitEthernet 1/0/1 interface view (assuming that the interface is a Layer 2 Ethernet interface).

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1]

# Enter GigabitEthernet 1/0/5 interface view.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/5

[Sysname-GigabitEthernet1/0/5]

# Create Layer 3 Ethernet subinterface GigabitEthernet 1/0/5.1 and enter its view.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/5.1

[Sysname-GigabitEthernet1/0/5.1]

jumboframe enable

Use jumboframe enable to allow jumbo frames within the specified length to pass through an Ethernet interface, a group of Ethernet interfaces, or all Ethernet interfaces.

Use undo jumboframe enable to prevent jumbo frames from passing through an Ethernet interface, a group of Ethernet interfaces, or all Ethernet interfaces.

Syntax

jumboframe enable [ value ]

undo jumboframe enable

Default

The device allows jumbo frames within a specified length to pass through Layer 2 Ethernet interfaces.

Views

Layer 2 Ethernet interface view, port group view

Default command level

2: System level

Parameters

value: Sets the maximum size of Ethernet frames that are allowed to pass through. Support for this argument, and the valid value range and default setting of this argument vary with device models. For more information, see About the H3C Access Controllers Command References. If you set the value argument multiple times, the last configuration takes effect.

Usage guidelines

In Ethernet interface view, this command applies only to the Ethernet interface.

In port group view, this command applies to the Ethernet interfaces in the port group.

Examples

# Enable jumbo frames to pass through all Ethernet interfaces in port group group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2

[Sysname-port-group-manual-group1] jumboframe enable

# Enable jumbo frames to pass through GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] jumboframe enable

loopback

Use loopback to enable loopback testing on an Ethernet interface.

Use undo loopback to disable loopback testing on an Ethernet interface.

Syntax

loopback { external | internal }

undo loopback

Default

Loopback testing is disabled on Ethernet interfaces.

Views

Ethernet interface view

Default command level

2: System level

Parameters

external: Enables external loopback testing for all on-chip functions related to Ethernet interfaces.

internal: Enables internal loopback testing for the hardware of Ethernet interfaces.

Usage guidelines

Management Ethernet interfaces do not support this command.

Enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem.

You cannot perform internal or external loopback testing on an administratively down (ADM DOWN) port. On a physically down (DOWN) port, you can perform only internal loopback testing.

During loopback testing, the speed, duplex, and shutdown commands are not available. In addition, the port is operating in full duplex mode, regardless of its duplex configuration. After loopback testing is disabled, the duplex configuration of the port is restored.

Examples

# Enable internal loopback testing on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] loopback internal

port link-mode

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use port link-mode to change the link mode of an Ethernet interface.

Use undo port link-mode to restore the default.

Syntax

port link-mode { bridge | route }

undo port link-mode

Default

For WAC360 or WAC361 access controllers, interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 operate in bridge mode, and interface GigabitEthernet 1/0/5 operates in route mode.

For WX2540E access controllers, interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 operate in bridge mode, and interfaces GigabitEthernet 1/0/5 through GigabitEthernet 1/0/6 operate in route mode.

Views

Ethernet interface view

Default command level

2: System level

Parameters

bridge: Specifies the Layer 2 mode.

route: Specifies the Layer 3 mode.

Usage guidelines

Depending on the hardware structure of interface cards, some interfaces can operate only as Layer 2 Ethernet interfaces (in bridge mode), some can operate only as Layer 3 Ethernet interfaces (in route mode), and others can operate as either Layer 2 or Layer 3 Ethernet interfaces (you can set the link mode to bridge or route).

Interface GigabitEthernet 1/0/5 on a WAC360 or WAC361 access controller does not support bridge mode.

Interfaces GigabitEthernet 1/0/5 through GigabitEthernet 1/0/6 on a WX2540E access controller do not support bridge mode.

After you change the link mode of an Ethernet interface, all settings are restored to their default values in the new link mode.

Examples

# Configure GigabitEthernet 1/0/1 to operate in route mode.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] display this

#

interface GigabitEthernet1/0/1

 port link-mode bridge

#

Return

The output shows that GigabitEthernet 1/0/1 operates in bridge mode.

[Sysname-GigabitEthernet1/0/1] port link-mode route

[Sysname-GigabitEthernet1/0/1] display this

#

interface GigabitEthernet1/0/1

 port link-mode route

#

Return

The output shows that GigabitEthernet 1/0/1 is now operating in route mode.

 

 

NOTE:

The display this command displays the configuration that takes effect in the current view.

 

Related commands

port link-mode interface-list

port link-mode interface-list

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use port link-mode interface-list to change the link mode of Ethernet interfaces.

Syntax

port link-mode { bridge | route } interface-list

Views

System view

Default command level

2: System level

Parameters

bridge: Specifies the Layer 2 mode.

route: Specifies the Layer 3 mode.

interface-list: Specifies an Ethernet interface list, in the format of interface-type interface-number [ to interface-type interface-number ].

Usage guidelines

Depending on the hardware structure of interface cards, some interfaces can operate only as Layer 2 Ethernet interfaces (in bridge mode), some can operate only as Layer 3 Ethernet interfaces (in route mode), and others can operate as either Layer 2 or Layer 3 Ethernet interfaces (you can set the link mode to bridge or route).

Configuring the port link-mode interface-list command in system view and configuring the port link-mode command in Ethernet interface view lead to the same result. The difference is that the former changes the link mode of multiple Ethernet interfaces in batch, and the latter changes the link mode of one Ethernet interface at a time.

After you change the link mode of an Ethernet interface, all the settings of the Ethernet interface are restored to their defaults under the new link mode.

The link mode configuration for an Ethernet interface in system view and that in interface view supersede each other, and the one configured last takes effect.

Examples

# Configure interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to operate in route mode.

<Sysname> system-view

[Sysname] port link-mode route gigabitethernet 1/0/1 to gigabitethernet 1/0/4

reset counters interface

Use reset counters interface to clear the Ethernet interface statistics.

Syntax

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

Views

User view

Default command level

2: System level

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

interface-number.subnumber: Specifies a subinterface number, where interface-number is an 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. Support for this argument depends on the device model. For more information, see About the H3C Access Controllers Command References.

Usage guidelines

Clear old statistics on the interface before collecting new traffic statistics for a specific period of time.

·     If no interface type is specified, this command clears statistics for all interfaces on the device.

·     If only the interface type is specified, this command clears statistics for all interfaces of the specified type.

·     If both the interface type and number are specified, this command only clears statistics for the specified interface.

Examples

# Clear the statistics of GigabitEthernet 1/0/1.

<Sysname> reset counters interface gigabitethernet 1/0/1

shutdown

Use shutdown to shut down an Ethernet interface.

Use undo shutdown to bring up an Ethernet interface.

Syntax

shutdown

undo shutdown

Default

Ethernet interfaces and subinterfaces are up.

Views

Ethernet interface view, Ethernet subinterface view, port group view

Default command level

2: System level

Usage guidelines

You might need to shut down and then bring up an Ethernet interface to activate configuration changes such as speed or duplex mode changes.

Support for this command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Shut down and then bring up 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 GigabitEthernet 1/0/5.1.

<Sysname> system-view

[Sysname] interface gigabitethernet1/0/5.1

[Sysname-GigabitEthernet1/0/5.1] shutdown

[Sysname-GigabitEthernet1/0/5.1] undo shutdown

# Shut down all member ports in the port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] shutdown

speed

Use speed to set the speed of an Ethernet interface.

Use undo speed to restore the default.

Syntax

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

undo speed

Views

Ethernet interface view

Default command level

2: System level

Parameters

10: Sets the interface speed to 10 Mbps.

100: Sets the interface speed to 100 Mbps.

1000: Sets the interface speed to 1000 Mbps.

10000: Sets the interface speed to 10000 Mbps.

auto: Enables the interface to negotiate a speed with its peer.

Usage guidelines

For an Ethernet copper port, use the speed command to set its speed to match the speed of the peer interface.

Support for this command and parameters of the command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Configure GigabitEthernet 1/0/1 to operate at 100 Mbps.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] speed 100

Layer 2 Ethernet interface configuration commands

broadcast-suppression

Use broadcast-suppression to set the broadcast suppression threshold on an Ethernet interface or a group of Ethernet interfaces.

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

Syntax

broadcast-suppression { ratio | pps max-pps }

undo broadcast-suppression

Default

Ethernet interfaces do not suppress broadcast traffic.

Views

Layer 2 Ethernet interface view, port group view

Default command level

2: System level

Parameters

ratio: Sets the broadcast suppression threshold as a percentage of the maximum interface rate. The smaller the percentage, the less broadcast traffic is allowed to be received. This argument is in the range of 1 to 100.

pps max-pps: Specifies the maximum number of broadcast packets that the Ethernet interface can receive per second. The value range for the max-pps argument varies by device model. For more information, see About the H3C Access Controllers Command References.

·     When the pps keyword is specified, and a suppression granularity larger than 1 is specified on the device, the value of the pps keyword must be no smaller than, and an integer multiple of, the granularity. The broadcast suppression threshold value configured through this keyword on an Ethernet interface might not be the one that actually takes effect. To display the actual broadcast suppression threshold value on an Ethernet interface, use the display interface command.

·     When the pps keyword is not specified, or the suppression granularity is set to 1, the value of the pps keyword must be no smaller than 1, and the broadcast suppression threshold value is the one that actually takes effect on the Ethernet interface.

Usage guidelines

In Ethernet interface view, the configuration takes effect only on the interface. In port group view, the configuration takes effect on all the ports in the port group.

When the received broadcast traffic exceeds the broadcast suppression threshold, the interface discards broadcast packets until broadcast traffic drops below the threshold.

If you set different broadcast suppression thresholds in Ethernet interface view or port group view multiple times, the one configured most recently takes effect.

Examples

# Set the broadcast suppression threshold to 20% on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] broadcast-suppression 20

# Set the broadcast suppression threshold to 20% on all ports in the manual port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member GigabitEthernet 1/0/1

[Sysname-port-group-manual-group1] group-member GigabitEthernet 1/0/2

[Sysname-port-group-manual-group1] broadcast-suppression 20

display loopback-detection

Use display loopback-detection to display the status of the loop detection function.

Syntax

display loopback-detection [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Usage guidelines

If loop detection is enabled, this command also displays the detection interval and all ports in a loop condition.

Support for this command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Display information about loop detection.

<Sysname> display loopback-detection

 Loopback detection is running.

 Detection interval is 30 seconds.

 No port is detected with loopback.

Table 6 Command output

Field

Description

Detection interval time is 30 seconds.

The loop detection interval is 30 seconds.

No port is detected with loopback.

No loops are detected on any port.

 

display port-group manual

Use display port-group manual to display information about port groups.

Syntax

display port-group manual [ all | name port-group-name ] [ | { begin | exclude | include } regular-expression ]

Views

Any view

Default command level

2: System level

Parameters

all: Displays information about all port groups.

name port-group-name: Specifies the name of a port group, a string of 1 to 32 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Usage guidelines

If the all keyword is specified, this command displays the name and member Ethernet interfaces of each port group on the device.

If a port group is specified, this command displays its name and member Ethernet interfaces.

If you do not specify the all keyword or any port group name, the command displays the name of each port group on the device.

Examples

# Display the names of all port groups.

<Sysname> display port-group manual

The following manual port group exist(s):

group1                                    group2

# Display detailed information about all port groups.

<Sysname> display port-group manual all

Member of group1:

    GigabitEthernet1/0/1            GigabitEthernet1/0/2            GigabitEthernet1/0/3

    GigabitEthernet1/0/4

 

Member of group2:

None

# Display detailed information about the port group named group1.

<Sysname> display port-group manual name group1

Member of group1:

    GigabitEthernet1/0/1            GigabitEthernet1/0/2            GigabitEthernet1/0/3

    GigabitEthernet1/0/4

group-member

Use group-member to assign Ethernet interfaces to a port group.

Use undo group-member to remove Ethernet interfaces from the port group.

Syntax

group-member interface-list

undo group-member interface-list

Default

A port group does not contain any member ports.

Views

Port group view

Default command level

2: System level

Parameters

interface-list: Specifies an Ethernet interface list, in the form of interface-type interface-number [ to interface-type interface-number ] &<1-10>, where &<1-10> indicates that you can specify up to 10 interfaces or interface ranges.

Usage guidelines

If you use the group-member interface-type interface-start-number to interface-type interface-end-number command to add multiple ports in batches to the specified port group, make sure all these ports are of the same type and on the same interface card, and the interface-end-number argument must be greater than the interface-start-number argument.

Examples

# Assign GigabitEthernet 1/0/1 to the port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1

loopback-detection control enable

Use loopback-detection control enable to enable loop detection control on trunk or hybrid ports.

Use undo loopback-detection control enable to restore the default.

Syntax

loopback-detection control enable

undo loopback-detection control enable

Default

Loop detection control is disabled on trunk and hybrid ports.

Views

Layer 2 Ethernet interface view, port group view

Default command level

2: System level

Usage guidelines

When a hybrid or trunk port detects a loop condition, it sends traps, whether loop detection control is enabled or not. However, the port performs the protective action that you configure with the loopback-detection action command only after loop detection control is enabled.

This command is not applicable to access ports.

Support for this command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Enable loop detection control on the trunk port GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] loopback-detection enable

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] port link-type trunk

[Sysname-GigabitEthernet1/0/1] loopback-detection enable

[Sysname-GigabitEthernet1/0/1] loopback-detection control enable

loopback-detection enable

Use loopback-detection enable to enable loop detection globally in system view or on interfaces in Ethernet interface or port group view. To use loop detection on an Ethernet interface, you must enable the function both globally and on the port.

Use undo loopback-detection enable to disable loop detection globally or on Ethernet interfaces.

Syntax

loopback-detection enable

undo loopback-detection enable

Default

Loop detection is disabled on all Ethernet interfaces.

Views

System view, Layer 2 Ethernet interface view, port group view

Default command level

2: System level

Usage guidelines

The undo loopback-detection enable command in system view disables loop detection on all interfaces.

If an interface receives a packet that it sent out, a loop has occurred. Loops might cause broadcast storms, which degrade network performance. You can enable loop detection to detect loops on an interface and, if the interface supports the loopback-detection action command, configure the protective action to take (for example, shut down the port) when a loop is detected.

In addition to the configured protective action, the device also performs other actions to alleviate the impact of the loops. For more information, see Table 7.

Table 7 Actions to take upon detection of a loop condition

Port type

Actions

No protective action is configured

A protective action is configured

Access port

·     Place the interface in controlled mode. The interface discards all incoming packets, but still forwards outgoing traffic.

·     Generate traps.

·     Delete all MAC address entries of the interface.

·     Perform the configured protective action.

·     Generate traps and log messages.

·     Delete all MAC address entries of the interface.

Hybrid or trunk port

·     Generate traps.

·     If loop detection control is enabled, set the interface to controlled mode. The interface discards all incoming packets, but still forwards outgoing packets.

·     Delete all MAC address entries of the interface.

·     Generate traps and log messages.

·     If loop detection control is enabled, take the configured protective action on the interface.

·     Delete all MAC address entries of the interface.

 

Support for this command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Enable loop detection on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] loopback-detection enable

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] loopback-detection enable

Related commands

loopback-detection control enable

loopback-detection interval-time

Use loopback-detection interval-time to set the loop detection interval.

Use undo loopback-detection interval-time to restore the default loop detection interval.

Syntax

loopback-detection interval-time time

undo loopback-detection interval-time

Default

The loop detection interval is 30 seconds.

Views

System view

Default command level

2: System level

Parameters

time: Specifies the loop detection interval in the range of 5 to 300 seconds.

Usage guidelines

Support for this command varies with device models. For more information, see About the H3C Access Controllers Command References.

Examples

# Set the loop detection interval to 10 seconds.

<Sysname> system-view

[Sysname] loopback-detection interval-time 10

Related commands

display loopback-detection

multicast-suppression

Use multicast-suppression to set the multicast suppression threshold on an Ethernet interface or a group of Ethernet interfaces.

Use undo multicast-suppression to restore the default multicast suppression threshold.

Syntax

multicast-suppression { ratio | pps max-pps }

undo multicast-suppression

Default

Ethernet interfaces do not suppress multicast traffic.

Views

Layer 2 Ethernet interface view, port group view

Default command level

2: System level

Parameters

ratio: Sets the multicast suppression threshold as a percentage of the maximum interface rate. The value range for this argument is 1 to 100. The smaller the percentage, the less multicast traffic is allowed to be received.

pps max-pps: Specifies the maximum number of multicast packets that the Ethernet interface can receive per second. The value range for the max-pps argument varies by device model. For more information, see About the H3C Access Controllers Command References.

·     When the pps keyword is specified, and a suppression granularity larger than 1 is specified on the device, the value of the pps keyword must be no smaller than, and an integer multiple of, the granularity. The multicast suppression threshold value configured through this keyword on an Ethernet interface might not be the one that actually takes effect. To display the actual multicast suppression threshold value on an Ethernet interface, use the display interface command.

·     When the pps keyword is not specified, or the suppression granularity is set to 1, the value of the pps keyword must be no smaller than 1, and the multicast suppression threshold value is the one that actually takes effect on the Ethernet interface.

Usage guidelines

In Ethernet interface view, the configurations take effect only on the interface. In port group view, the configurations take effect on all ports in the port group.

When the received multicast traffic exceeds the threshold, the system discards multicast packets until multicast traffic drops below the threshold.

If you set different multicast suppression thresholds in Ethernet interface view or port group view multiple times, the one configured most recently takes effect.

Examples

# Set the multicast threshold to 20% on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] multicast-suppression 20

# Set the multicast threshold to 20% on all ports in the port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member GigabitEthernet1/0/1

[Sysname-port-group-manual-group1] group-member GigabitEthernet1/0/2

[Sysname-port-group-manual-group1] multicast-suppression 20

port-group manual

Use port-group manual to create a port group and enter port group view.

Use undo port-group manual to remove a port group.

Syntax

port-group manual port-group-name

undo port-group manual port-group-name

Default

No port groups exist.

Views

System view

Default command level

2: System level

Parameters

port-group-name: Sets the port group name, a string of 1 to 32 characters.

Examples

# Create port group group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1]

unicast-suppression

Use unicast-suppression to set the unknown unicast suppression threshold on an Ethernet interface or a group of Ethernet interfaces.

Use undo unicast-suppression to restore the default.

Syntax

unicast-suppression { ratio | pps max-pps }

undo unicast-suppression

Default

Ethernet interfaces do not suppress unknown unicast traffic.

Views

Layer 2 Ethernet interface view, port group view

Default command level

2: System level

Parameters

ratio: Sets the unknown unicast suppression threshold as a percentage of the maximum interface rate. The value range for this argument is 1 to 100. The smaller the percentage, the less unknown unicast traffic is allowed to be received.

pps max-pps: Specifies the maximum number of unknown unicast packets that the Ethernet interface can receive per second. The value range for the max-pps argument varies by device model. For more information, see About the H3C Access Controllers Command References.

pps max-pps: Specifies the maximum number of unknown unicast packets that the Ethernet interface can receive per second. The value range of the max-pps argument depends on the device model. For more information, see About the H3C Access Controllers Command References.

·     When the pps keyword is specified, and a suppression granularity larger than 1 is specified on the device, the value of the pps keyword must be no smaller than, and an integer multiple of, the granularity. The unknown unicast suppression threshold value configured through this keyword on an Ethernet interface might not be the one that actually takes effect. To display the actual unknown unicast suppression threshold value on an Ethernet interface, use the display interface command.

·     When the pps keyword is not specified, or the suppression granularity is set to 1, the value of the pps keyword must be no smaller than 1, and the unknown unicast suppression threshold value is the one that actually takes effect on the Ethernet interface.

Usage guidelines

In Ethernet interface view, the configuration will take effect only on the interface. In port group view, the configuration will take effect on all ports in the port group.

When the received unknown unicast traffic exceeds the threshold, the system discards unknown unicast packets until unknown unicast traffic drops below the threshold.

If you set different unknown unicast suppression thresholds in Ethernet interface view or port group view multiple times, the one configured most recently takes effect.

Examples

# Set the unknown unicast threshold to 20% on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] unicast-suppression 20

# Set the unknown unicast threshold to 20% on all ports of port group group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member GigabitEthernet1/0/1

[Sysname-port-group-manual-group1] group-member GigabitEthernet1/0/2

[Sysname-port-group-manual-group1] unicast-suppression 20

Layer 3 Ethernet interface and subinterface configuration commands

mac-address

Use mac-address to set the MAC address of a Layer 3 Ethernet interface or subinterface.

Use undo mac-address to restore the default.

Syntax

mac-address mac-address

undo mac-address

Default

A Layer 3 Ethernet interface uses the MAC address displayed on the RFID of the device.

The MAC address of a Layer 3 Ethernet subinterface is the same as the MAC address of its main interface.

Views

Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view

Default command level

2: System level

Parameters

mac-address: Specifies a MAC address, in the format of H-H-H.

Usage guidelines

Make sure the MAC address specified for a Layer 3 Ethernet subinterface is different from the MAC address of its main interface.

As a best practice, do not set a MAC address in the VRRP-reserved MAC address range for a Layer 3 Ethernet subinterface.

Examples

# Set the MAC address of GigabitEthernet 1/0/1 to 0001-0001-0001.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] mac-address 1-1-1

mtu

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use mtu to set the MTU for an Ethernet interface or subinterface.

Use undo mtu to restore the default.

Syntax

mtu size

undo mtu

Default

The MTU of an Ethernet interface or subinterface is 1500 bytes.

Views

Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view

Default command level

2: System level

Parameters

size: Sets the maximum transmission unit (MTU) in bytes. The value range for this argument is 46 to 1560 bytes.

Usage guidelines

As the size of MTU decreases, the number of fragments grows. When setting MTU for an interface, you should consider QoS queue lengths (for example, the default FIFO queue length is 75) to avoid a too small MTU causing packet drop in QoS queuing. To achieve the best result, you can tune MTU with the mtu command or QoS queue lengths with the qos fifo queue-length command. For more information, see ACL and QoS Command Reference.

Examples

# Set the MTU to 1430 bytes for the Layer 3 Ethernet interface GigabitEthernet 1/0/5.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/5

[Sysname-GigabitEthernet1/0/5] mtu 1430

# Set the MTU to 1400 bytes for the Layer 3 Ethernet subinterface GigabitEthernet 1/0/5.1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/5.1

[Sysname-GigabitEthernet1/0/5.1] mtu 1400

promiscuous

IMPORTANT

IMPORTANT:

Support for this command depends on the device model. For more information, see About the H3C Access Controllers Command References.

 

Use promiscuous to configure a Layer 3 Ethernet interface to operate in promiscuous mode.

Use undo promiscuous to cancel the promiscuous operating mode.

Syntax

promiscuous

undo promiscuous

Default

A Layer 3 Ethernet interface does not operate in promiscuous mode.

Views

Layer 3 Ethernet interface view

Examples

# Configure GigabitEthernet 1/0/5 to operate in promiscuous mode.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/5

[Sysname-GigabitEthernet1/0/5] promiscuous

  • 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
新华三官网