Syntax
broadcast-suppression { ratio | pps max-pps }
undo broadcast-suppression
View
System view , Ethernet port view
Parameter
ratio: Maximum
ratio of the received broadcast traffic to the total bandwidth on an Ethernet
port. The value ranges from 1 to 100 (in step of 1) and defaults to 100. The
smaller the ratio is, the less broadcast traffic is allowed.
max-pps:
Maximum number of broadcast packets allowed to be received per second on an
Ethernet port (in pps).
In system view, the max-pps argument is in
the range of 1 to 262,143.
In Ethernet port view, the max-pps argument
is in the range of 1 to 148,810.
Description
Use the broadcast-suppression
command to limit broadcast traffic allowed to be received on each port (in
system view) or on a specified port (in Ethernet port view).
Use the undo broadcast-suppression
command to restore the default broadcast suppression setting.
The broadcast-suppression command is
used to enable broadcast suppression. By default, broadcast suppression is
disabled.
When incoming broadcast traffic exceeds the
broadcast traffic threshold you set, the system drops the packets exceeding the
threshold to reduce the broadcast traffic ratio to the reasonable range, so as
to keep normal network service.
You can use the undo broadcast-suppression
command in system view to cancel the broadcast suppression settings on all
ports, or use the broadcast-suppression command in system view to make a global
setting.
Executing the commands in Ethernet port
view only takes effect on the current port.
The global
broadcast suppression setting configured by the broadcast-suppression command in
system view takes effect on all Ethernet ports in the system except for the reflection
ports, stack ports and ports having their own broadcast suppression settings.
If you configure broadcast-suppression
command in both system view and Ethernet port view, the configuration in
Ethernet port view will take effect.
Example
# Allow incoming broadcast traffic on the
Ethernet1/0/1 port to occupy at most 20% of the bandwidth on the port.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1]
broadcast-suppression 20
# Set the maximum number of broadcast
packets that can be received per second by the Ethernet1/0/1 port to 1000.
[H3C-Ethernet1/0/1]
broadcast-suppression pps 1000
Syntax
copy configuration source { interface-type interface-number | aggregation-group
source-agg-id } destination { interface-list [ aggregation-group
destination-agg-id ] | aggregation-group destination-agg-id
}
View
System view
Parameter
interface-type:
Port type.
interface-number: Port number.
source-agg-id: Source aggregation group number, in the range of 1 to 416. The
port with the smallest port number in the aggregation group is used as the
source port.
destination-agg-id:
Destination aggregation group number, in the range of 1 to 416.
interface-list: Destination port list, interface-list =interface-type
interface-number [ to interface-type interface-number ]
&<1-10. &<1-10> means that you can input up to 10 ports/port
ranges.
Description
Use the copy configuration command
to copy the configuration on a port to some other ports to keep consistent
configuration on them.
l
If you specify a source aggregation group ID,
the system uses the port with the smallest port number in the aggregation group
as the source.
l
If you specify a destination aggregation group ID,
the configuration of the source port will be copied to all ports in the
aggregation group and all ports in the group will have the same configuration
as that of the source port.
The configuration that can be copied
includes: VLAN configuration, protocol-based VLAN configuration, LACP
configuration, QoS configuration, GARP configuration, STP configuration and initial
port configuration.
VALN configuration: includes IDs of the VLANs
allowed on the port and the default VLAN ID of the port;
Protocol-based VLAN configuration: includes
IDs and indexes of the protocol-based VLANs allowed on the port;
Link aggregation control protocol (LACP)
configuration: includes LACP enable/disable status;
The copy command can only be used to copy the configuration of
LACP’s enable state, but not to copy the configuration of aggregation
group, i.e., you can not add a port to the aggregation group bye the command.
QoS configuration: includes rate limit,
port priority, and default 802.1p priority on the port;
STP configuration: includes STP enable/disable
status on the port, link attribute on the port (point-to-point or
non-point-to-point), STP priority, path cost, packet transmission rate limit, whether
loop protection is enabled, whether root protection is enabled, and whether the
port is an edge port;
Generic attribute registration protocol
(GARP) configuration: includes GVRP enable/disable status, timer settings, and
registration mode;
Port configuration: includes link type of
the port, port rate and duplex mode.
Example
# Copy the configuration of Ethernet1/0/1
to Ethernet1/0/2 and Ethernet1/0/3.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] copy configuration source ethernet
1/0/1 destination ethernet 1/0/2 ethernet 1/0/3
Note: The following will be removed
from destination port list:
Aggregation
port(s),Voice vlan port(s).
Copying VLAN
configuration...
Copying Protocol based VLAN
configuration...
Copying LACP configuration...
Copying QOS configuration...
Copying GARP configuration...
Copying STP configuration...
Copying speed/duplex
configuration...
l
Any aggregation group port you input in the
destination port list will be removed from the list and the copy command
will not take effect on the port. If you want an aggregation group port to have
the same configuration with the source port, you can specify the aggregation
group of the port as the destination (with the destination-agg-id argument).
l
Any voice-VLAN-enabled port you input in the
destination port list will be removed from the list.
Syntax
description text
undo description
View
Ethernet port view
Parameter
text: Port
description, a string of 1 to 80 characters.
Description
Use the description command to set a
port description string.
Use the undo description command to
remove the port description string.
By default, no description is defined for a
port.
Example
# Set description string "lanswitch-interface"
for the Ethernet1/0/1 port.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet1/0/1
[H3C-Ethernet1/0/1] description
lanswitch-interface
Syntax
display brief interface [ interface-type interface-number ] [ | { begin
| include | exclude } string ]
View
Any view
Parameter
interface-type: Port type.
interface-number:
Port number.
|: Specifies
to use a regular expression to describe the configuration information entries
to be displayed.
begin: Each
entry must begin with a specified character string.
include: Each
entry must include a specified character string.
exclude: Each
entry must not include a specified character string.
string: Regular
expression, a character string of 1 to 256 characters.
For details about regular
expression, refer to the “Configuration File Management” module in
this manual.
Description
Use the display brief interface
command to display the brief configuration information about one or all
interfaces, including: interface type, link state, link rate, duplex attribute,
link type, default VLAN ID and description string.
This command is similar to the display
interface command, but the information it displays is briefer.
Currently, for the
port types other than Ethernet port, this command only displays the link state,
and shows "--" in all other configuration information fields.
Related command: display interface.
Example
# Display the brief configuration
information about the Ethernet1/0/1 port.
<H3C> display brief interface
Ethernet1/0/1
Interface:
Eth - Ethernet GE - GigabitEthernet
TENGE - tenGigabitEthernet
Loop - LoopBack Vlan -
Vlan-interface Cas - Cascade
Speed/Duplex:
A - auto-negotiation
Interface Link Speed Duplex
Type PVID Description
------------------------------------------------------------------------
Eth1/0/1 DOWN A A
hybrid 1 home
Table 1-1
Description on the fields of the display brief
interface command
|
Field
|
Description
|
|
Interface
|
Port type
|
|
Link
|
Link state: UP or DOWN
|
|
Speed
|
Link rate
|
|
Duplex
|
Duplex attribute
|
|
Type
|
Link type: access, hybrid or trunk
|
|
PVID
|
Default VLAN ID
|
|
Description
|
Port description string
|
Syntax
display interface
[ interface-type | interface-type interface-number ]
View
Any view
Parameter
interface-type:
Port type.
interface-number: Port number.
For details about the arguments, refer to
the parameter description of the interface command.
Description
Use the display interface command to
display port configuration.
When using this command:
If you specify neither port type nor port
number, the command displays information about all ports.
If you specify only port type, the command
displays information about all ports of the specified type.
If you specify both port type and port
number, the command displays information about the specified port.
Example
# Display the configuration information of
the Ethernet1/0/1 port.
<H3C> display interface
ethernet1/0/1
Ethernet1/0/1 current state : DOWN
IP Sending Frames' Format is
PKTFMT_ETHNT_2, Hardware address is 0012-a990-2240
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 force link, link
duplex type is force link
Flow-control is enabled
The Maximum Frame Length is 9216
Broadcast MAX-pps: 500
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0
packets/sec 0 bytes/sec
Last 300 seconds output: 0
packets/sec 0 bytes/sec
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts,
- pauses
Input(normal): - packets, - bytes
- broadcasts, - multicasts,
- pauses
Input: 0 input errors, 0 runts, 0
giants, - throttles, 0 CRC
0 frame, - overruns, 0
aborts, 0 ignored, - parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts,
0 pauses
Output(normal): - packets, - bytes
- broadcasts, - multicasts,
- pauses
Output: 0 output errors, -
underruns, - buffer failures
0 aborts, 0 deferred, 0
collisions, 0 late collisions
0 lost carrier, - no
carrier
Table 1-2 Description on the fields of
the display interface command
|
Field
|
Description
|
|
Ethernet1/0/1 current state
|
Current Ethernet port status: up or down
|
|
IP Sending Frames' Format
|
Ethernet frame format
|
|
Hardware address
|
Port hardware address
|
|
Media type
|
Media type
|
|
Port hardware type
|
Port hardware type
|
|
100Mbps-speed mode, full-duplex mode
|
Current speed mode and duplex mode
|
|
Link speed type is force link, link
duplex type is force link
|
Link speed and duplex status ( force or
auto-negotiation)
|
|
Flow-control is enabled
|
Status of flow-control on the port
|
|
The Maximum Frame Length
|
Maximum frame length allowed on the port
|
|
Broadcast MAX-ratio
|
Broadcast suppression ratio on the port
|
|
Unicast MAX-ratio
|
Unknown unicast suppression ratio on the
port
|
|
Multicast MAX-ratio
|
Multicast suppression ratio on the port
|
|
Allow jumbo frame to pass
|
Whether Jumbo frame is allowed on the
port.
|
|
PVID
|
Default VLAN ID of the port
|
|
Mdi type
|
Network cable type
|
|
Port link-type
|
Port link type
|
|
Tagged VLAN ID
|
Identify the VLANs whose packets will be
forwarded with tags on the port.
|
|
Untagged VLAN ID
|
Identify the VLANs whose packets will be
forwarded without tags on the port.
|
|
Last 300 seconds input: 0 packets/sec 0
bytes/sec
Last 300 seconds output: 0 packets/sec 0
bytes/sec
|
Rate and number of incoming and outgoing
packets in the last 300 seconds
|
|
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, -
pauses
Input(normal): - packets, - bytes
- broadcasts, - multicasts, -
pauses
Input: 0 input errors, 0 runts, 0
giants, - throttles, 0 CRC
0 frame, - overruns, 0 aborts,
0 ignored, - parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0
pauses
Output(normal): - packets, - bytes
- broadcasts, - multicasts, -
pauses
Output: 0 output errors, - underruns, -
buffer failures
0 aborts, 0 deferred, 0
collisions, 0 late collisions
0 lost carrier, - no carrier
|
Statistics on the incoming and outgoing
packets and errors on the port
The “-” indicates that the
statistical item is not supported.
|
Syntax
display loopback-detection
View
Any view
Parameter
None
Description
Use the display loopback-detection
command to display the loopback detection status on the port. If loopback
detection is enabled, this information will also be displayed: time interval
for loopback detection and the loopback ports.
Example
# Display the loopback detection status on
the port.
<H3C>
display loopback-detection
Port Ethernet1/0/1 loopback-detection
is running
system Loopback-detection is running
Detection interval time is 30 seconds
There is no port existing loopback
link
Table 1-3 Description
on the fields of the display loopback-detection command
|
Field
|
Description
|
|
Port Ethernet1/0/1 loopback-detection is
running
|
Loopback detection is enabled on the Ethernet1/0/1.
|
|
system Loopback-detection is running
|
Loopback detection is enabled globally.
|
|
Detection interval time is 30 seconds
|
Time interval for loopback detection is
30 seconds.
|
|
There is no port existing loopback link
|
No loopback port exists.
|
Syntax
display transceiver-information
interface interface-type interface-number
View
Any view
Parameter
interface-type:
Port type
interface-number:
Port number
Description
Use the display port display
transceiver-information interface command to display information about a
specified optical port.
This command will display the following
information about an optical port:
l
Hardware type
l
Interface type
l
Wavelength
l
Vendor name
l
Serial number
l
Transfer distance
l
Current receive state: no signal or signal detected,
“-“ means not supported by the current device
Example
# Display the information about the optical
interface GigabitEthernet1/1/1.
<H3C> display
transceiver-information interface GigabitEthernet 1/1/1
Hardware Type : -
Interface Type : SFP
Wave Length(nm) : -
Vendor
Name : 3Com
Serial Number :
L1RP3N0067090
3C
Number :
Transfer Distance(m)
9um Fiber : 0
50um Fiber : 550
62.5um Fiber : 270
Copper Line : 0
Syntax
display port
{ hybrid | trunk }
View
Any view
Parameter
hybrid:
Displays hybrid ports.
trunk:
Displays trunk ports.
Description
Use the display port command to check
whether there are hybrid or trunk ports in the current system and display such
ports (if available).
Example
# Display the hybrid ports in the current
system.
<H3C> display port hybrid
The following hybrid ports exist:
Ethernet1/0/1
Ethernet1/0/2
The above information shows the current
system has two hybrid ports: Ethernet1/0/1 and Ethernet1/0/2.
Syntax
display unit unit-id interface
View
Any view
Parameter
unit-id:
Unit ID, in the range of 1 to 8.
Description
Use the display unit command to display
information about the ports on a specified unit.
Example
# Display information about the ports on unit
1.
<H3C> display unit 1 interface
Aux1/0/0
Description : Aux Interface
Ethernet1/0/1 current state : DOWN
IP Sending Frames' Format is
PKTFMT_ETHNT_2, Hardware address is 0012-a990-2240
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 force link, link
duplex type is force link
Flow-control is enabled
The Maximum Frame Length is 9216
Broadcast MAX-pps: 500
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0
packets/sec 0 bytes/sec
Last 300 seconds output: 0
packets/sec 0 bytes/sec
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts,
- pauses
Input(normal): - packets, - bytes
- broadcasts, - multicasts,
- pauses
Input: 0 input errors, 0 runts, 0
giants, - throttles, 0 CRC
0 frame, - overruns, 0
aborts, 0 ignored, - parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts,
0 pauses
Output(normal): - packets, - bytes
- broadcasts, - multicasts,
- pauses
Output: 0 output errors, -
underruns, - buffer failures
0 aborts, 0 deferred, 0
collisions, 0 late collisions
0 lost carrier, - no
carrier
(The
following displayed information is omitted)
Table 1-4
Description on the fields of the display unit
command
|
Field
|
Description
|
|
Aux1/0/0
Description : Aux Interface
|
The description string of the AUX port is
"Aux Interface".
|
For the description of other fields, refer
to Table 1-2.
Syntax
Duplex {
auto | full | half }
Undo duplex
View
Ethernet port view
Parameter
Auto: Sets
the port to auto-negotiation mode.
Full: Sets
the port to full duplex mode.
Half: Sets
the port to half duplex mode.
Description
Use the duplex command to set the
duplex mode of the current port.
Use the undo duplex command to
restore the default duplex mode, that is, auto-negotiation.
By default, the port is in auto-negotiation
mode.
Related command: speed.
Example
# Set the Ethernet1/0/1 port to
auto-negotiation mode.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] duplex auto
Syntax
flow-control
undo flow-control
View
Ethernet port view
Parameter
None
Description
Use the flow-control command to
enable flow control on the current Ethernet port.
Use the undo flow-control command to
disable flow control on the port.
Suppose flow control is enabled on both the
local and peer switches. When congestion occurs on the local switch,
the local switch sends a message to notify
the peer switch of stopping sending packets to itself or reducing the sending
rate temporarily,
the peer switch will stop sending packets
to the local switch or reduce the sending rate temporarily when it receives the
message; and vice versa. By this way, packet loss is avoided and the network
service operates normally.
By default, flow control is disabled on a
port.
Example
# Enable flow control on the Ethernet1/0/1
port.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] flow-control
[H3C-Ethernet1/0/1]
Syntax
flow-interval interval
undo flow-interval
View
Ethernet port view
Parameter
Interval:
Interval (in seconds) to perform statistics on port information. This argument
ranges from 5 to 300 (in step of 5) and is 300 by default.
Description
Use the flow-interval command to set
the interval to perform statistics on port information.
Use the undo flow-interval command
to restore the default interval.
By default, this interval is 300 seconds.
When you use the display interface
interface-type interface-number command to display the information of a
port, the system performs statistical analysis on the traffic flow passing
through the port during the specified interval and displays the average rates in
the interval. For example, if you set the interval to 100 seconds, the
displayed information is as follows:
Last 100 seconds input: 0
packets/sec 0 bytes/sec
Last 100 seconds output: 0
packets/sec 0 bytes/sec
Related command: display interface.
Example
# Set the interval to perform statistics on
the Ethernet1/0/1 port to 100 seconds.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] flow-interval 100
Syntax
giant-frame statistics enable
undo giant-frame statistics enable
View
System view
Parameter
None
Description
Use the giant-frame statistics enable
command to enable the giant-frame statistics function.
Use the undo giant-frame statistics
enable command to disable the giant-frame statistics function.
By default, the giant-frame statistics
function is not enabled.
Example
# Enable the giant-frame statistics
function.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] giant-frame statistics enable
Syntax
interface interface-type
interface-number
View
System view
Parameter
interface-type:
Port type, which can be Aux, Ethernet, GigabitEthernet, LoopBack, NULL or
Vlan-interface.
interface-number: Port number, in the format of Unit ID/slot number/port number,
where:
Unit ID is in the range of 1 to 8;
The slot number is 0 if the port is an
Ethernet port, the slot number is 1 if the port is a GigabitEthernet port.
The port number is relevant to the device.
Description
Use the interface command to enter
Ethernet port view. To configure parameters for a port, you must enter the port
view first.
Example
# Enter Ethernet1/0/1 port view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1]
Syntax
jumboframe enable
undo jumboframe enable
View
Ethernet port view
Parameter
None
Description
Use the jumboframe enable command to
allow jumbo frames that are not larger than 9216 bytes to pass through the
current Ethernet port.
Use the undo jumboframe enable
command to allow frames that are not larger than 1536 bytes to pass through the
current Ethernet port.
By default, frames that are not larger than
9216 bytes are allowed to pass through the Ethernet port.
Example
# Allow frames that are not larger than
9216 bytes to pass through Ethernet1/0/1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] jumboframe enable
Syntax
loopback {
external | internal }
View
Ethernet port view
Parameter
external: Performs
external loop test. In the external loop test, self-loop headers must be used
on the port of the switch ( for 100M port, the self-loop headers are made from
four cores of the 8-core cables, for 1000M port, the self-loop header are made
from eight cores of the 8-core cables, then the packets forwarded by the port
will be received by itself.). The external loop test can locate the hardware
failures on the port.
internal: Performs
internal loop test. In the internal loop test, self loop is established in the
switching chip to locate the chip failure which is related to the port.
Description
Use the loopback command to perform a
loopback test on the current Ethernet port to check whether the Ethernet port
works normally. The loopback test terminates automatically after running for a specific
period.
By default, no loopback test is performed
on the Ethernet port.
Example
# Perform an internal loop test on
Ethernet1/0/1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] loopback internal
Loopback internal succeeded.
[H3C-Ethernet1/0/1]
Syntax
loopback-detection control enable
undo loopback-detection control enable
View
Ethernet port view
Parameter
None
Description
Use the loopback-detection control
enable command to enable the loopback detection control feature on the current
trunk or hybrid port.
Use the undo loopback-detection control
enable command to disable the loopback detection control feature on the
trunk or hybrid port.
After loopback detection is enabled by using
the loopback-detection enable command, the loopback-detection control
enable command can be used to control the working status of the trunk port
or hybrid port where loopback is found in a VLAN.
If this feature is enabled on a trunk or
hybrid port, when loopback is found on the port, the system sets the port to a controlled
working state and removes the MAC address entries corresponding to the port.
If this feature is disabled on a trunk or
hybrid port, when loopback is found on the port, the system just reports a Trap
message, and the port still works normally.
By default, the loopback detection control feature
is disabled on the trunk or hybrid port.
Note that this command is invalid for an
access port.
Related command: loopback-detection
enable.
Example
# Enable the loopback detection control feature
on Ethernet1/0/1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] port link-type
trunk
[H3C-Ethernet1/0/1]
loopback-detection control enable
[H3C-Ethernet1/0/1]
Syntax
loopback-detection enable
undo loopback-detection enable
View
System view or Ethernet port view
Parameter
None
Description
Use the loopback-detection enable
command to enable the loopback detection feature on ports to detect whether external
loopback occurs on a port.
Use the undo loopback-detection enable
command to disable the loopback detection feature on port.
If loopback is found on an access port, the
switch will set the port to a controlled working state.
For a trunk or hybrid port, the loopback
detection control feature can be implemented by using this command and the
loopback-detection control enable command together.
The loopback detection feature takes effect
on a specified port only when the loopback detection feature is enabled in both
system view and the specified port view.
By default, the loopback detection feature is
disabled on any port.
Related command: loopback-detection
control enable.
Example
# Enable the loopback detection feature on
Ethernet1/0/1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] loopback-detection enable
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1]
loopback-detection enable
[H3C-Ethernet1/0/1]
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System view
Parameter
time: Time
interval for loopback detection, in the range of 5 to 300 (in seconds). It is
30 seconds by default.
Description
Use the loopback-detection interval-time
command to set time interval for loopback detection.
Use the undo loopback-detection interval-time
command to restore the default time interval.
Example
# Set time interval for loopback detection
to 10 seconds.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] loopback-detection
interval-time 10
[H3C]
Syntax
loopback-detection per-vlan enable
undo loopback-detection per-vlan enable
View
Ethernet port view
Parameter
None
Description
Use the loopback-detection per-vlan
enable command to configure the system to run loopback detection on all
VLANs of the current trunk or hybrid port.
Use the undo loopback-detection per-vlan
enable command to restore the default setting.
By default, the system runs loopback
detection only on the default VLAN of the trunk or hybrid port.
Note that the command is invalid for any
access port.
Example
# Configure the system to run loopback
detection on all VLANs of the trunk port Ethernet1/0/1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] port link-type
trunk
[H3C-Ethernet1/0/1]
loopback-detection per-vlan enable
Syntax
mdi {
across | auto | normal }
undo mdi
View
Ethernet port view
Parameter
across: Sets
the port to support MDIX.
auto: Sets
the port to support auto-MDI/MDIX.
normal: Sets
the port to support MDI.
Description
Use the mdi command to set port MDI
attribute.
Use the undo mdi command to restore
the default setting.
By default, the port MDI attribute is auto.
Example
# Set the MDI attribute of Ethernet1/0/1 to
across.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] mdi auto
Syntax
multicast-suppression { ratio | pps max-pps }
undo multicast-suppression
View
Ethernet port view
Parameter
ratio: Maximum
ratio of received multicast traffic to the total bandwidth on the Ethernet
port. The value ranges from 1 to 100 (in step of 1) and defaults to 100. The
smaller the ratio is, the less multicast traffic is allowed to be received.
max-pps: Maximum
number of multicast packets allowed to be received per second on the Ethernet
port (in pps). The value ranges from 1 to 148,810.
Description
Use the multicast-suppression
command to limit multicast traffic allowed to be received on the current port.
Use the undo multicast-suppression
command to restore the default multicast suppression setting on the current
port.
When incoming multicast traffic on the port
exceeds the multicast traffic threshold you set, the system drops the packets
exceeding the threshold to reduce the multicast traffic ratio to the reasonable
range, so as to keep normal network service.
By default, the switch does not suppress
multicast traffic.
Example
# Allow the incoming multicast traffic on
the Ethernet1/0/1 port to occupy at most 20% of the bandwidth on the port.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1]
multicast-suppression 20
# Set the maximum number of multicast
packets that can be received per second by the Ethernet1/0/1 port to 1000 pps.
[H3C-Ethernet1/0/1]
multicast-suppression pps 1000
Syntax
port access vlan vlan-id
undo port
access vlan
View
Ethernet port view
Parameter
vlan-id:
VLAN ID defined in IEEE802.1Q, in the range of 1 to 4094.
Caution:
All access ports
belong to VLAN 1, which is the default VLAN of the system, so you are not
allowed to add an access port to VLAN 1 or remove an access port from VLAN 1.
Otherwise, the system will prompt: “Can't delete ports from or add ports
to the default VLAN!”.
Description
Use the port access vlan command to
add the access port into the specified VLAN.
Use the undo port access vlan
command to remove the access port from the specified VLAN.
You must specify the ID of an existing VLAN
in the command.
Example
# Add Ethernet1/0/1 into VLAN 3.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] vlan 3
[H3C-vlan3] quit
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] port access vlan
3
[H3C-Ethernet1/0/1]
Syntax
port hybrid
pvid vlan vlan-id
undo port hybrid pvid
View
Ethernet port view
Parameter
vlan-id:
VLAN ID defined in IEEE802.1Q, in the range of 1 to 4094. It is 1 by default.
Description
Use the port hybrid pvid vlan
command to set the default VLAN ID for the hybrid port.
Use the undo port hybrid pvid
command to restore the default VLAN ID of the port.
Related command: port link-type.
Caution:
You are recommended
to set the default VLAN ID of the local hybrid or trunk ports to the same value
as that of the hybrid or trunk ports on the peer switch. Otherwise, packet
forwarding may fail on the ports.
Example
# Set the default VLAN ID of the hybrid
port Ethernet1/0/1 to 100.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface ethernet1/0/1
[H3C-Ethernet1/0/1] port link-type
hybrid
[H3C-Ethernet1/0/1] port hybrid pvid
vlan 100
Syntax
port hybrid vlan
vlan-id-list { tagged | untagged }
undo port hybrid vlan vlan-id-list
View
Ethernet port view
Parameter
vlan-id-list:
VLAN range to which the hybrid port will be added. vlan-id-list = [ vlan-id1
[ to vlan-id2 ] ]&<1-10>, where, vlan-id is in
the range of 1 to 4094 and can be discrete, and &<1-10> means you can
input up to ten VLAN IDs/ID ranges.
tagged: Keeps
VLAN tags when the packets of the specified VLANs are forwarded on this port.
untagged: Keeps
no VLAN tags when the packets of the specified VLANs are forwarded on this
port.
Description
Use the port hybrid vlan command to
add the hybrid port into specified VLANs.
Use the undo port hybrid vlan
command to remove the hybrid port from specified VLANs.
A hybrid port can belong to multiple VLANs.
When you use the command several times, all VLAN specified in the commands will
be allowed to pass the port.
The VLAN specified by the vlan-id
argument must exist. Otherwise, this command is invalid. Related command: port
link-type.
Example
# Add the hybrid port Ethernet1/0/1 to VLAN
2, VLAN 4 and VLAN 50 through VLAN 100, with tags assigned to their packets.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] vlan 2
[H3C-vlan2] quit
[H3C] interface ethernet 1/0/1
[H3C-Ethernet1/0/1] port link-type
hybrid
[H3C-Ethernet1/0/1] port hybrid vlan
2 4 50 to 100 tagged
Operation complete, except these
VLAN(s):
Non-existent VLAN(s)
Syntax
port link-type { access | hybrid | trunk | irf-fabric
}
undo port link-type
View
Ethernet port view
Parameter
access: Sets
the port as an access port.
hybrid: Sets
the port as a hybrid port.
trunk: Sets the
port as a trunk port.
irf-fabric:
Sets the port as a fabric port.
Description
Use the port link-type command to
set the link type of the current Ethernet port.
Use the undo port link-type command
to restore the default link type.
By default, the link type of any port is
access.
Pay attention to the following:
The four types of ports can co-exist on the
same Ethernet switch. However, the trunk, hybrid and fabric ports cannot be directly
switched between the three types (trunk, hybrid and fabric). To set a
trunk/hybrid/fab