Syntax
broadcast-suppression { ratio | bandwidth bandwidth | pps
pps }
undo broadcast-suppression
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 and defaults to 100. The smaller
the ratio is, the less broadcast traffic is allowed.
bandwidth
bandwidth: Specifies the maximum bandwidth of
broadcast traffic received on the Ethernet port. For a 100 Mbps port, the bandwidth
argument is in the range of 1 to 100 (in Mbps); for a gigabit port, the
bandwidth argument is in the range of 1 to 1000 (in Mbps).
pps pps: Specifies the maximum number of broadcast packets allowed to be
received per second on an Ethernet port (in pps).
l
For a 100 Mbps Ethernet port, the pps
argument is in the range of 0 to 148,810.
l
For a gigabit Ethernet port, the pps
argument is in the range of 0 to 1,488,100.
Description
Use the broadcast-suppression
command to limit broadcast traffic allowed to be received on the current port.
Use the undo broadcast-suppression
command to restore the default broadcast suppression setting.
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.
By default, broadcast suppression is
disabled.
l
Broadcast suppression is set in different ways
for different LPUs of the S7500 series switches: For type-A LPUs, broadcast
suppression must be set in VLAN view; for non-type-A LPUs, broadcast
suppression must be set in Ethernet port view.
l
Type-A LPUs include LS81FT48A, LS81FM24A, LS81FS24A,
LS81GB8UA, and LS81GT8UA.
A port supports one way of broadcast
suppression at the same time. If broadcast suppression has been configured for
a port for multiple times, only the latest configuration takes effect.
Example
# Allow incoming broadcast traffic 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 GigabitEthernet 1/0/1
[H3C-Ethernet1/0/1]
broadcast-suppression 20
Syntax
broadcast-suppression { ratio | pps pps
}
undo broadcast-suppression
View
VLAN 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 and defaults to 100. The smaller the
ratio is, the less broadcast traffic is allowed.
pps pps: Specifies the maximum number of broadcast packets allowed to be
received per second on an Ethernet port (in pps).
l
For a 100 Mbps Ethernet port, the pps
argument is in the range of 0 to 148,800.
l
For a gigabit Ethernet port, the pps
argument is in the range of 0 to 1,488,100.
Description
Use the broadcast-suppression
command to limit broadcast traffic allowed to be received on all ports in the
current VLAN.
Use the undo broadcast-suppression command
to restore the default broadcast suppression setting.
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.
By default, broadcast suppression is
disabled.
l
Broadcast suppression is set in different ways
for different LPUs of the S7500 series switches: For type-A LPUs, broadcast suppression
must be set in VLAN view; for non-type-A LPUs, broadcast suppression must be
set in Ethernet port view.
l
Type-A LPUs include LS81FT48A, LS81FM24A,
LS81FS24A, LS81GB8UA, and LS81GT8UA.
A port supports one way of broadcast
suppression at the same time. If broadcast suppression has been configured for
a port for multiple times, only the latest configuration takes effect.
Example
# Allow incoming broadcast traffic to
occupy at most 20% of the bandwidth on the port.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] vlan 1
[H3C-vlan1] broadcast-suppression 20
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 384. The
port with the smallest port number in the aggregation group is used as the
source port.
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.
destination-agg-id:
Destination aggregation group number, in the range of 1 to 384.
Description
Use the copy configuration command
to copy the configuration on a port to some other ports to keep consistent
configuration on them.
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).
Example
# Copy the configuration of Ethernet3/01 to
Ethernet3/0/2.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] copy configuration source
Ethernet3/0/1 destination Ethernet3/0/2
The operation will be invalid for
some special port(s) in the destination port
list, such as aggregation port.
Copying VLAN configuration...
Copying Protocol based VLAN
configuration...
Copying LACP configuration...
Copying QOS configuration...
Copying STP configuration...
Copying speed/duplex configuration...
Port configuration copy complete
Syntax
description text
undo description
View
Ethernet port view
Parameter
text: Port
description, a string of up 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 Ethernet1/0/1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1]
description lanswitch-interface
Syntax
display brief interface [ interface-type interface-number ] [ | { begin
| include | exclude } regular-expression ]
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:
Specifies to display entries that begin with a specified character or string.
include:
Specifies to display entries that include a specified character or string.
exclude:
Specifies to display entries that exclude a specified character or string.
regular-expression: Regular expression, a string of 1 to 256 characters.
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 mode, link
type, default VLAN ID and port description string (only the first 33 characters
are displayed).
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 GigabitEthernet1/0/1.
<H3C> display brief interface
GigabitEthernet1/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
-------------------------------------------------------------------------
GE3/0/1 UP A1000M Afull
hybrid 1 abc123
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 mode
|
|
Type
|
Link type: access, hybrid or trunk
|
|
PVID
|
Default VLAN ID
|
|
Description
|
Port description string (only the first
33 characters are displayed)
|
Syntax
display interface
[ interface-type | interface-type interface-number ]
View
Any view
Parameter
interface-type:
Port type.
interface-number: Port number.
Description
Use the display interface command to
display port configuration.
When using this command:
l
If you do not specify port type and port number,
the command displays information about all ports.
l
If you only specify the port type, the command
displays information about all ports of the specified type.
l
If you specify both port type and port number,
the command displays information about the specified port.
Example
# Display the configuration information
about Ethernet1/0/1.
<H3C>
display interface Ethernet1/0/1
Ethernet1/0/1 current state : DOWN
IP Sending Frames' Format is
PKTFMT_ETHNT_2, Hardware address is 000f-e20f-3f11
The Maximum Transmit Unit is 1500
Media type is twisted pair, loopback
not set
Port hardware type is 100_BASE_TX
Unknown-speed mode, unknown-duplex
mode
Link speed type is autonegotiation,
link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 1536
Broadcast-suppression 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
- broadcasts, - multicasts
Input(normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
Input: 0 input errors, 0 runts, 0
giants, 0 throttles, 0 CRC
0 frame, - overruns, -
aborts, - ignored, - parity errors
Output(total): 0 packets, 0 bytes
- broadcasts, - multicasts,
- pauses
Output(normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts,
0 pauses
Output: 0 output errors, -
underruns, - buffer failures
- aborts, 0 deferred, 0
collisions, 0 late collisions
- lost carrier, - no carrier
Table 1-2
Description on the fields of the display
interface command
|
Field
|
Description
|
|
Ethernet1/0/1 current state
|
Status of the current Ethernet port:
Down/Up
|
|
IP Sending Frames' Format
|
Ethernet frame format
|
|
Hardware address
|
Port hardware address
|
|
The Maximum Transmit Unit
|
The maximum transmit unit (MTU)
|
|
Media type
|
Media type
|
|
Port hardware type
|
Port hardware type
|
|
Flow-control is not enabled
|
Flow-control status of the port
|
|
The Maximum Frame Length
|
Maximum frame length allowed on the port
|
|
Broadcast-suppression ratio (%)
|
Broadcast suppression ratio on the port
|
|
Allow jumbo frame to pass
|
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
- broadcasts, - multicasts
Input(normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
Input: 0 input errors, 0 runts, 0
giants, 0 throttles, 0 CRC
0 frame, - overruns, - aborts,
- ignored, - parity errors
Output(total): 0 packets, 0 bytes
- broadcasts, - multicasts, -
pauses
Output(normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0
pauses
Output: 0 output errors, - underruns, -
buffer failures
- aborts, 0 deferred, 0
collisions, 0 late collisions
- 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 running, the time interval for loopback detection and the loopback
port information will also be displayed.
Example
# Display information about the port
loopback detection.
<H3C> display loopback-detection
Loopback-detection is running
Detection interval time is 30
seconds
There is no loopback link
Table 1-3
Description on the fields of the display
loopback-detection command
|
Field
|
Description
|
|
Loopback-detection is running
|
Loopback detection is enabled.
|
|
Detection interval time is 30 seconds
|
Time interval for loopback detection is
30 seconds.
|
|
There is no loopback link
|
No loopback port exists.
|
Syntax
display port
{ hybrid | trunk }
View
Any view
Parameter
hybrid:
Displays hybrid ports.
trunk:
Displays trunk ports.
Description
Use the display port command to
display whether there are hybrid ports or trunk ports in the current system. If
there is such a port, the port name and the ID of the VLANs permitted on the
port are displayed.
Example
# Display the trunk ports in the current
system.
<H3C> display port trunk
Interface VLAN passing
Ethernet3/0/3 1
Ethernet3/0/11 1-2, 4-5, 10
1.1.9 display transceiver-information
interface
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 transceiver-information
interface command to display information about a specified optical port.
Example
# Display information about optical
interface GigabitEthernet1/0/1.
<H3C> display transceiver-information interface
GigabitEthernet 1/0/1
Hardware Type : SM
Interface Type : SFP
Wave Length(nm) : 1310
Vendor Name : OCP
Serial Number : 2786837
Transfer Distance(m)
9um Fiber : 69000
50um Fiber : 0
62.5um Fiber : 0
Copper Line : 0
Table 1-4 describes the fields of the display transceiver-information
interface command.
Table 1-4 Description on the fields of the
display transceiver-information interface command
|
Field
|
Description
|
|
Hardware Type
|
Hardware type: single-mode (SM) or
multi-mode (MM)
|
|
Interface Type
|
Port type, including SFP, XFP and GBIC
|
|
Wave Length(nm)
|
Wavelength (in nm)
|
|
Vendor Name
|
Name of the vendor
|
|
Serial Number
|
Serial number
|
|
Transfer Distance(m)
|
Transfer distance (in meters)
|
1.1.10 duplex
Syntax
duplex {
auto | full | half }
undo duplex
View
Ethernet port view
Parameter
auto: Sets
the port to auto-negotiation mode (automatically negotiate the duplex mode of
the port).
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 mode.
By default, the duplex mode of a port is in
auto-negotiation mode.
Example
# Set the duplex mode of
GigabitEthernet1/0/1 to full-duplex mode.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1] duplex
full
Syntax
flow-control
undo flow-control
View
Ethernet port view
Parameter
None
Description
Use the flow-control command to
enable flow control on the port so as to avoid packet loss during congestion.
Use the undo flow-control command to
disable flow control on the port.
By default, flow control is disabled on a
port.
Enable flow control on the port following
the two steps:
l
Enable flow control globally;
l
Enable flow control on the port in Ethernet port
view.
Example
# Enable flow control on
GigabitEthernet1/0/1.
<H3C>
system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface GigabitEthernet1/0/1
[H3C-Ethernet1/0/1] flow-control
Syntax
flow-control enable
undo flow-control disable
View
System view
Parameter
None
Description
Use the flow-control enable command
to enable flow control globally.
Use the flow-control disable command
to disable flow control globally.
By default, flow control is disabled
globally.
Example
# Enable flow control globally.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] flow-control enable
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 displays the average rates of the traffic flow passing through
the port during the specified 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
Ethernet1/0/1 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
hardspeedup enable
hardspeedup disable
View
System view
Parameter
None
Description
Use the hardspeedup enable command
to enable the hardware speedup function inside the port.
Use the hardspeedup disable command
to disable the hardware speedup function inside the port.
By default, the hardware speedup function
inside the port is enabled.
l
The two commands are applicable to type-A LPUs
only, including LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA, and LS81GT8UA.
l
The two commands are for diagnostic use. Do not
use them at discretion.
Example
# Enable the hardware speedup function
inside the port.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] hardspeedup enable
Syntax
interface interface-type
interface-number
View
System view
Parameter
interface-type:
Port type, which can be Aux, Ethernet, GigabitEthernet, LoopBack, M-Ethernet,
NULL, Tunnel or Vlan-interface.
interface-number: Port number, in the format of LPU slot number/subcard slot
number/port number.
Table 1-5
Range of LPU slot number/subcard slot number/port
number
|
Description
Device
|
Range of LPU number
|
Subcard slot number
|
Range of port number
|
|
S7502
|
0 to 1
|
0
|
Depending
on the number of ports on the LPU you select
|
|
S7503
|
0 to 3
|
0
|
|
S7506
|
0 to 6
|
0
|
|
S7506R
|
0 to 7
|
0
|
Description
Use the interface command to enter
Ethernet port view. To configure parameters for a port, you must use this
command to enter Ethernet port view first.
Example
# Enter GigabitEthernet1/0/1 port view.
<H3C>
system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1]
Syntax
jumboframe enable [ jumboframe-value ]
undo jumboframe enable
View
Ethernet port view
Parameter
jumboframe-value: Size of the permitted jumbo frame, in the range of 1,536 to 9,216
in byte.
Description
Use the jumboframe enable command to
allow jumbo frames to pass through the current Ethernet port.
Use the undo jumboframe enable
command to inhibit jumbo frames from passing through the current Ethernet port.
By default, jumbo frames that are larger
than 1,518 bytes and smaller than 1,536 bytes are allowed to pass through the
Ethernet port.
Example
# Allow jumbo frames smaller than 1,536
bytes to pass through GigabitEthernet1/0/1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1] jumboframe
enable
Syntax
loopback-detection enable
undo loopback-detection enable
View
System view
Parameter
None
Description
Use the loopback-detection enable command
to enable loopback detection on ports.
Use the undo loopback-detection enable
command to disable loopback detection on ports.
By default, the port loopback detection
feature is disabled.
l
If loopback is found on an access port, the
system disables the port, sends a Trap message to the terminal and removes the
corresponding MAC address forwarding entry.
l
If loopback is found on a trunk or hybrid port,
the system disables the port, sends a Trap message to the terminal and removes
the corresponding MAC address forwarding entry.
Related command: display
loopback-detection.
Example
# Enable the loopback detection feature.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] loopback-detection enable
1.1.18 loopback-detection interval-time
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System view
Parameter
time:
Interval for detecting external loopback on ports, 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 the interval for detecting external loopback on ports.
Use the undo loopback-detection
interval-time command to restore the default interval.
Related command: display
loopback-detection.
Example
# Set the interval for detecting external
loopback on each port to 10 seconds.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] loopback-detection
interval-time 10
Syntax
mdi {
across | auto | normal }
undo mdi
View
Ethernet port view
Parameter
across:
Specifies the network cable to be crossover network cable.
auto:
Identifies the network cable type (crossover or straight through)
automatically.
normal:
Specifies the network cable to be straight through network cable.
Description
Use the mdi command to set the
network types that can be identified by the Ethernet port.
Use the undo mdi command to restore
the default network cable type that can be identified by the Ethernet port.
By default, the port identifies the network
type automatically.
Caution:
The S7500 series
switches support the auto mode only. If another mode is specified, the
system prompts “Operation not supported!”.
Example
# Specify Ethernet1/0/1 to identify the
network cable type automatically.
<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 | bandwidth { mbps-value | kbps
kbps-value } | 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.
mbps-value:
Maximum bandwidth (in Mbps) for receiving multicast traffic on an Ethernet
port. The range of the mbps-value argument depends on the port type:
l
1 to 100 for 100 Mbps Ethernet ports;
l
1 to 1,000 for Gigabit Ethernet ports;
l
1 to 10,000 for 10 Gbps Ethernet ports.
kbps
kbps-value: Specifies the maximum bandwidth (in
Kbps) for receiving multicast traffic, in the range of 64 to 1,024,000 in the
steps of 64.
max-pps:
Maximum number of multicast packets allowed to be received per second on the
Ethernet port (in pps). The range of the max-pps argument depends on the
port type.
l
1 to 148,810 for 100 Mbps Ethernet ports;
l
1 to 1,488,100 for Gigabit Ethernet ports;
l
1 to 262,143 for 10 Gbps Ethernet ports.
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.
Caution:
Note that type-A LPUs (including LS81FT48A, LS81FM24A, LS81FS24A,
LS81GB8UA, and LS81GT8UA) do not support multicast suppression.
Example
# Allow the incoming multicast traffic on
Ethernet1/0/1 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 forwarded per second by Ethernet1/0/1 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 2 to 4,094.
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 (VLAN 3 is
an existing VLAN).
<H3C>
system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] port access vlan
3
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 hybrid port.
Set the default VLAN ID of the local hybrid
port to the same value as that of the hybrid port on the peer switch.
Otherwise, packets cannot be forwarded properly.
Related command: port link-type.
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 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. The VLAN range can be
discrete. vlan-id-list = [ vlan-id1 [ to vlan-id2 ]
]&<1-10>, where, vlan-id is in the range of 1 to 4094, 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.
untagged:
Strips VLAN tags when the packets of the specified VLANs are forwarded.
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 by the command 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, and keep the VLAN tags when the packets
of these VLANs are sent through the port.
<H3C>
system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] port hybrid vlan
2 4 50 to 100 tagged
Syntax
port link-type { access | hybrid | trunk }
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.
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 a port is
access.
The three types of ports can co-exist on
the same Ethernet switch. However, a trunk port cannot be directly switched to
a hybrid port, and vice versa. To set a trunk/hybrid port to hybrid/truck, you
must first set the port to an access port and then set the access port to the
required type. For example, a trunk port cannot be directly set to a hybrid
port. You must set the trunk port to an access port and then set it to a hybrid
port.
Example
# Specify Ethernet1/0/1 as a trunk port.
<H3C>
system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] port link-type
trunk
Syntax
port trunk permit vlan { vlan-id-list | all }
undo port trunk permit vlan { vlan-id-list | all }
View
Ethernet port view
Parameter
vlan-id-list:
VLAN range to which the trunk port will be added. The range can be discrete.
vlan-id-list = [ vlan-id1 [ to vlan-id2 ]
]&<1-10>, where, vlan-id is in the range of 1 to 4094, and
&<1-10> means you can input up to ten VLAN IDs/ID ranges.
all: Adds
the trunk port into all VLANs.
Description
Use the port trunk permit vlan
command to add the trunk port into the specified VLANs.
Use the undo port trunk permit vlan
command to remove the hybrid port from the specified VLANs.
A trunk port can belong to multiple VLANs.
When you use the command several times, all VLAN specified by the command will
be allowed to pass the port.
Related command: port link-type.
Example
# Add the trunk port Ethernet1/0/1 to VLAN
2, VLAN 4 and VLAN 50 through VLAN 100.
<H3C>
system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] port trunk permit
vlan 2 4 50 to 100
Please wait...
Done.
# Remove Ethernet1/0/1 form VLAN1.
[H3C-Ethernet1/0/1] undo port trunk
permit vlan 1
Please wait...
Done.
Syntax
port trunk pvid vlan vlan-id
undo port
trunk 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
trunk pvid vlan command to set the default VLAN ID
for the trunk port.
Use the undo port trunk pvid command to restore the
default setting.
To guarantee the proper packet
transmission, the default VLAN ID of the local trunk port must be identical
with that of the trunk port on the peer switch.
Related command: port link-type.
Example
# Set the default VLAN ID of the trunk 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 trunk pvid vlan 100
Syntax
reset counters interface [ interface-type | interface-type
interface-number ]
View
User view
Parameter
interface-type:
Port type.
interface-number: Port number.
Description
Use the reset counters interface
command to clear the statistics of the port, preparing for a new statistics
collection.
l
If you specify neither port type nor port
number, the command clears statistics of all ports.
l