Syntax
broadcast-suppression { ratio | pps max-pps }
undo broadcast-suppression
View
Ethernet interface view/port group view
Parameter
ratio:
Specifies the maximal ratio of broadcast traffic for an Ethernet interface. It
ranges between 1 to 100 and defaults to 100. The smaller the ratio, the less
broadcast traffic allowed through the interface.
pps max-pps: Specifies the maximal broadcast packet number per second for an
Ethernet interface. It ranges between 1 to 1,488,000 for GigabitEthernet
port(s) and 1 to 1,488,0000 for 10GE port(s) in pps, representing packets per
second.
Description
Use the broadcast-suppression command
to configure broadcast storm suppression ratio.
Use the undo broadcast-suppression command
to restore the broadcast suppression ratio.
By default, all broadcast traffic is
allowed to go through an Ethernet interface, that is, broadcast traffic is not
suppressed.
The above commands apply to the current
port only while executed under Ethernet interface view, or to all ports in a
port group while executed under port group view.
Note that when broadcast traffic exceeds
the maximum value configured, system will discard the extra packets so that the
traffic ratio falls below the limit again to ensure network functions proper.
Example
# Allow 20% of broadcast traffic to pass
through the interface GigabitEthernet 1/0/28, that is, configure the broadcast
suppression ratio to 80%.
<Sysname> system-view
[Sysname] interface GigabitEthernet
1/0/28
[Sysname-GigabitEthernet1/0/28]
broadcast-suppression 20
# Allow 20% of multicast traffic to pass
through the interface GigabitEthernet1/0/1, that is, configure the multicast
suppression ratio to 80%.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1] group-member
Gigabitethernet1/0/1 to Gigabitethernet1/0/5
[Sysname-port-group-manual-group1]
broadcast-suppression 20
Syntax
copy configuration source interface-type interface-number destination interface-list
View
System view
Parameter
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
interface-list: Destination Ethernet interface list, in the format of
interface-type interface-number [ to interface-type
interface-number ] &<1-10>, where &<1-10> indicates
that you can specify up to 10 port ranges.
Description
Use the copy configuration command
to copy configurations on a specific interface to other interface(s). The
configuration can be copied include port configuration, GVRP, STP, Port-isolate,
VLAN, LACP, QoS and QINQ.
Example
# Copy configurations from the interface GigabitEthernet
1/0/1 to the interface GigabitEthernet 1/0/2.
<SYSNAME> system-view
[SYSNAME] copy configuration source GigabitEthernet
1/0/1 destination GigabitEthernet 1/0/2
Copying speed/duplex configuration...
Copying GVRP configuration...
Copying STP configuration...
Copying Port-isolate
configuration...
Copying VLAN configuration...
Copying LACP configuration...
Copying QoS configuration...
Copying QINQ and BPDU tunnel
configuration...
Syntax
description text
undo description
View
Ethernet interface view
Parameter
text: The
description of an Ethernet interface, a string of 1 to 80 characters.
Description
Use the description command to
configure the description of an Ethernet interface.
Use the undo description command to
remove the description.
Default to interface name followed by the “interface”
string. For example ”GigabitEthernet1/0/1 Interface”.
Example
# Configure the description for interface GigabitEthernet
1/0/2 to “lanswitch-interface”.
<SYSNAME> system-view
[Sysname] interface GigabitEthernet
1/0/2
[Sysname-GigabitEthernet1/0/2]
description lanswitch-interface
Syntax
display brief interface [ interface-type [ interface-number ] ] [ | {
begin | include | exclude } regular-expression ]
View
Any view
Parameter
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
|: Uses regular expression to filter output
configuration.
begin: Displays
information that begins with the specified string.
include:
Displays information that contains the specified string.
exclude:
Displays information that do not contain the specified string.
regular-expression: Regular expression, in the range of 1 to 256 characters, excluding
spaces.
Table 1-1
Special characters in regular expressions
|
Special Characters
|
Special Meaning
|
Notes on Use
|
|
_
|
Underscore, similar to a wildcard
character, can represent one of the following: (^|$|[,(){}])
a space, the beginning of the string, the
end of the string
|
If the regular expression does not begin
with an underscore (-), then, other than the limit imposed by the command
line length, there is no other limit on the number of underscore (-).
If the regular expression begins with an
underscore (-), then the number of consecutive underscores (-) should be less
than five.
If the underscores (-) are not
consecutive, then the first group of underscores (-) can be used to filter
the routing table. The following underscores will be ignored.
|
|
(
|
Left paraphrase, represents a pull in
stack.
|
Users are recommended not to use this
character in a regular expression.
|
|
.
|
Full stop, wildcard character, matches
any single character, including white space.
|
None
|
|
*
|
Star character, matches expressions with
0 or more single-character or multiple-character
|
zo* matches z and zoo.
|
|
+
|
plus, matches expressions with 1 or more
single-character or multiple-character
|
zo+ matches zo and zoo, but not z.
|
Description
Use the display brief interface command
to display brief interface information,
l
Brief information of interface(s) under route
mode, including simple interface name, link state, protocol link state,
protocol type, and main IP address.
l
Brief information of interface(s) under bridge
mode, including port name, link state, port speed, duplex, link type, Default
VLAN ID.
Note that:
l
If neither interface type nor interface number
is specified, all interface information will be displayed;
l
If only interface type is specified, then only
information of this particular type of interface will be displayed.
l
If both interface type and interface number are
specified, then only information of the specified interface will be displayed.
Example
# Display brief information of
interface(s).
<Sysname> display brief interface
The brief information of interface(s)
under route mode:
Interface Link
Protocol-link Protocol type Main IP
NULL0 UP UP(spoofing)
NULL --
Vlan1 UP UP
ETHERNET 192.168.0.52
Vlan2 DOWN DOWN
ETHERNET --
Vlan100 DOWN DOWN
ETHERNET --
The brief information of interface(s)
under bridge mode:
Interface Link
Speed Duplex Link-type PVID
GE1/0/1 DOWN
auto auto trunk 100
GE1/0/2 DOWN
auto auto access 1
GE1/0/3 DOWN
auto auto access 1
GE1/0/4 DOWN
auto auto access 1
GE1/0/5 DOWN
auto auto access 1
GE1/0/6 UP 100M(a)
full(a) access 1
GE1/0/7 DOWN
auto auto access 1
GE1/0/8 DOWN
auto auto access 1
GE1/0/9 DOWN
auto auto access 1
GE1/0/10 DOWN auto
auto access 1
GE1/0/11 DOWN
auto auto access 1
GE1/0/12 DOWN
auto auto access 1
GE1/0/13 DOWN
auto auto access 1
GE1/0/14 DOWN auto
auto access 1
# Display brief interface information that
contains the string “DOWN”.
<Sysname> display brief interface
| include DOWN
The brief information of interface(s)
under route mode:
Interface Link
Protocol-link Protocol type Main IP
Vlan2 DOWN DOWN
ETHERNET --
The brief information of interface(s)
under bridge mode:
Interface Link
Speed Duplex Link-type PVID
GE1/0/1 DOWN
auto auto trunk 100
GE1/0/2 DOWN
auto auto access 1
GE1/0/3 DOWN
auto auto access 1
Table 1-2
Description on the fields of the display brief
interface command.
|
Field
|
Description
|
|
The brief information of interface(s)
under route mode:
|
Brief information of interface(s) under
route mode
|
|
Interface
|
Interface name
|
|
Link
|
Interface physical link state, which can
be up or down
|
|
Protocol-link
|
Interface protocol link state, which can
be up or down
|
|
Protocol type
|
Interface protocol type
|
|
Main IP
|
Main IP
|
|
The brief information of interface(s)
under bridge mode:
|
Brief information of interface(s) under
bridge mode
|
|
Speed
|
Interface rate, in bps
|
|
Duplex
|
Duplex mode, which can be half, full, or
auto.
|
|
Link-type
|
Link-type
|
|
PVID
|
Default VLAN ID
|
Syntax
display interface [ interface-type [ interface-number ] ]
View
Any view
Parameter
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
Description
Use the display interface command to
display the current state of a specified interface and related information.
l
If neither interface type nor interface number
is specified, all interface information will be displayed;
l
If only interface type is specified, then only
information of this particular type of interface will be displayed.
l
If both interface type and interface number are
specified, then only information of the specified interface will be displayed.
Example
# Display the current state of interface GigabitEthernet
1/0/1 and related information.
<Sysname> display interface GigabitEthernet
1/0/1
GigabitEthernet1/0/1 current state:
DOWN
IP Packet Frame Type:
PKTFMT_ETHNT_2, Hardware Address: 0000-5600-0001
Description: GigabitEthernet1/0/1
Interface
Loopback is not set
Media type is twisted pair
Port hardware type is 1000_BASE_T
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 9216
Broadcast MAX-ratio: 100%
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 : 1
Untagged VLAN ID : none
Port priority: 0
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
Input (normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
Input: 0 input errors, 0 runts, 0
giants, 0 throttles
0 CRC, - frame, 0 overruns,
0 aborts
0 ignored, 0 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, 0 underruns,
- buffer failures
0 aborts, 0 deferred, 0
collisions, 0 late collisions
0 lost carrier, - no
carrier
Table 1-3
Description on the fields of the display
interface command.
|
Field
|
Description
|
|
GigabitEthernet1/0/1 current state
|
Current physical link state of the
Ethernet interface, which can be up or down (Interface physical link state is
down) or administratively down (Use the shutdown command can shut down
the port manually).
|
|
IP Packet Frame Type
|
Frame type of the Ethernet interface
|
|
Hardware address
|
Hardware address
|
|
Description
|
Description of the port
|
|
Loopback is not set
|
Loopback is not configured
|
|
Media type
|
Media type
|
|
Port hardware type
|
Port hardware type
|
|
1000Mbps-speed mode, full-duplex mode
|
Current speed mode and duplex mode
|
|
Link speed type is autonegotiation, link
duplex type is autonegotiation
|
Link speed and duplex status ( force or
auto-negotiation )
|
|
Flow-control is not enabled
|
Flow-control is not enabled
|
|
The Maximum Frame Length
|
The maximum frame length allowed on an
interface
|
|
Broadcast-suppression ratio(%)
|
Broadcast storm suppression ratio (the
maximum ratio of allowed number of broadcast packets to overall traffic
through an interface)
|
|
Unicast MAX-ratio
|
Unicast storm suppression ratio (the
maximum ratio of allowed number of unicast packets to overall traffic through
an interface)
|
|
Multicast MAX-ratio
|
Multicast storm suppression ratio (the
maximum ratio of allowed number of multicast packets to overall traffic
through an interface)
|
|
Allow jumbo frame to pass
|
Allow jumbo frame to pass through
|
|
PVID
|
Default VLAN ID
|
|
Mdi type
|
Cable type
|
|
Port link-type
|
Interface link type, which could be
access, trunk, and hybrid.
|
|
Tagged VLAN ID
|
Identify the VLANs that need Tag markers
|
|
Untagged VLAN ID
|
Identify the VLANs that do not need Tag
markers
|
|
Port priority
|
Port priority
|
|
Last 300 seconds input: 0 packets/sec 0
bytes/sec
|
Average input rate over the last 300
seconds
|
|
Last 300 seconds output: 0 packets/sec 0
bytes/sec
|
Average output rate over the last 300
seconds
|
|
Input (total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
|
Statistics on the total incoming packets
(including normal packets, error packets) on the port
The “-” indicates that the corresponding
entry is invalid
|
|
Input (normal): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
|
Statistics on the normal incoming packets
on the port
|
|
Input: 0 input errors, 0 runts, 0
giants, 0 throttles
0 CRC, - frame, 0 overruns, 0
aborts
0 ignored, 0 parity errors
|
Statistics on the abnormal incoming
packets on the port
|
|
Output (total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0
pauses
|
Statistics on the total outgoing packets
(including normal packets, error packets) on the port
|
|
Output (normal): - packets, - bytes
- broadcasts, - multicasts, -pauses
|
Statistics on the normal outgoing packets
on the port
|
|
Output: 0 output errors, 0 underruns, 0
buffer failures
0 aborts, 0 deferred, 0 collisions, 0
late collisions 0 lost carrier, - no carrier
|
Statistics on the abnormal outgoing
packets on the port
|
Syntax
display loopback-detection
View
Any view
Parameter
None
Description
Use the display loopback-detection command
to display loopback detection information on a port
If loopback detection is already enabled,
this command will also display the detection interval and information on the
ports currently detected with a loopback.
Example
# Display loopback detection information on
a port.
<Sysname> display loopback-detection
Loopback-detection is running
Detection interval time is 30 seconds
There is no port existing loopback
link
Table 1-4
Description on the fields of the display loopback-detection
command.
|
Field
|
Description
|
|
Loopback-detection is running
|
Loopback-detection is running
|
|
Detection interval time is 30 seconds
|
Detection interval is 30 seconds
|
|
There is no port existing loopback link
|
No port is currently being detected with
a loopback
|
Syntax
display port
{ hybrid | trunk I combo }
View
Any view
Parameter
hybrid:
Displays the current Hybrid port(s).
trunk:
Displays the current Trunk port(s).
combo:
Displays the current Combo port(s) and the corresponding optical and electrical
ports.
Description
Use the display port command to
display information on the current ports of a specified type.
Example
# Display the current Trunk port(s).
<Sysname> display port trunk
Interface PVID VLAN
passing
GE1/0/8 2 1-4, 6-100,
145, 177, 189-200, 244, 289, 400
Table 1-5
Description on the fields of the display port command.
|
Field
|
Description
|
|
Interface
|
Interface name
|
|
PVID
|
Default VLAN ID of the interface
|
|
VLAN passing
|
VLAN ID of VLANs that the ports can pass
through
|
Syntax
display port-group manual [ all | name port-group-name ]
View
Any view
Parameter
all: All
manual port groups.
name port-group-name: Name of a specified manual port group, a string of 1 to 32
characters.
Description
Use the display port-group manual command
to display information on a specified manual port group.
l
name port-group-name: Displays the details for a specified manual port group, including
its name and the Ethernet interface ports included.
l
all: Displays the details for all manual port groups, including their
names and the Ethernet interface ports included.
l
Absence of parameters indicates that the names
of all port groups will be displayed.
Example
# Display details for the port group 1.
<Sysname> display port-group
manual name group1
Member of group1:
GigabitEthernet1/0/1
GigabitEthernet1/0/2 GigabitEthernet1/0/3
# Display the names of all port groups.
<Sysname> display port-group
manual
The following manual port group
exist(s):
group1
group2
# Display details for all manual port
groups.
<Sysname> display port-group
manual all
Member of group1:
GigabitEthernet1/0/1 GigabitEthernet
1/0/2 GigabitEthernet1/0/3 GigabitEthernet1/0/4 GigabitEthernet
1/0/5
Member of group2:
GigabitEthernet1/0/7 GigabitEthernet1/0/8
GigabitEthernet 1/0/9
GigabitEthernet1/0/10
GigabitEthernet1/0/4
GigabitEthernet1/0/5
Table 1-6
Description on the fields of the display
port-group manual command
|
Field
|
Description
|
|
Member of group1
|
Member of the manual port group
|
|
GigabitEthernet1/0/1
GigabitEthernet1/0/2 GigabitEthernet1/0/3
|
Interface name in the port group(s)
|
|
The following manual port group exist(s)
|
The existing manual port group(s)
|
1.1.9 duplex
Syntax
duplex {
auto | full | half }
undo duplex
View
Ethernet interface view
Parameter
auto:
Indicates that the interface is in an auto-negotiation state.
full:
Indicates that the interface is in a full-duplex state.
half:
Indicates that the interface is in a half-duplex state.
Description
Use the duplex command to configure
the duplex mode for an Ethernet interface.
Use the undo duplex command to
restore the duplex mode for an Ethernet interface to the default.
By default, the duplex mode for an Ethernet
interface is auto.
Related command: speed.
Example
# Configure the interface GigabitEthernet 1/0/2
to work in full-duplex mode.
<Sysname> system-view
[Sysname] interface GigabitEthernet
1/0/2
[Sysname-GigabitEthernet1/0/2] duplex
full
1.1.10 flow-control
Syntax
flow-control
undo flow-control
View
Ethernet interface view
Parameter
None
Description
Use the flow-control command to turn
on flow control on an Ethernet interface.
Use the undo flow-control command
to turn off flow control on an Ethernet interface.
By default, flow control on an Ethernet
interface is turned off.
This command is
only applicable when the peer Ethernet interface also supports flow control. Therefore,
it is recommended that you align the configurations with the peer.
Example
# Turn on flow control on interface GigabitEthernet1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet
1/0/1
[Sysname-GigabitEthernet1/0/1]
flow-control
Syntax
flow-interval interval
undo flow-interval
View
Ethernet interface view
Parameter
interval:
Time interval at which interface statistics is collected, in the range of 5 to
300 seconds, a multiple of 5.
Description
Use the flow-interval command to
configure the time interval for collecting interface statistics.
Use the undo flow-interval command
to restore the default interval.
By default, the default interval for
collecting interface statistics 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 this 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 time interval for collecting
interface statistics to 100 seconds on interface GigabitEthernet1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet
1/0/1
[Sysname-GigabitEthernet1/0/1]
flow-interval 100
Syntax
group-member
interface-list
undo group-member interface-list
View
Manual port group view
Parameter
interface-list: Ethernet interface list, in the format of
interface-type interface-number [ to interface-type
interface-number ] &<1-10>, where &<1-10> indicates
that you can specify up to 10 port ranges.
Description
Use the group-member command to add
an Ethernet interface to a specified manual port group.
Use the undo group-member command to
remove a specified Ethernet interface from a manual port group.
By default, a manual port group is empty,
that is, there is no Ethernet interface in it.
Example
# Add the interface GigabitEthernet 1/0/1
and GigabitEthernet1/0/5 to the manual port group1.
<Sysname> system-view
[Sysname] port-group manual group1
[Sysname-port-group-manual-group1]
group-member GigabitEthernet 1/0/1 to GigabitEthernet 1/0/5
Syntax
interface interface-type interface-number
View
System view
Parameter
interface-type:
Port type, which can be GigabitEthernet, TenGigabitEthernet, LoopBack, NULL or Vlan-interface.
interface-number: Port number, in the format of slot number/subslot number/port
number, where:
l
slot number only can be 1;
l
On the front panel, the subslot number is 0, on
the rear panel, the two expansion slot number is 1 and 2;
l
The port number is relevant to the device.
For example, GigabitEthernet1/0/1 indicates
the Gigabit Ethernet port with number of 1/0/1, this port is on the front panel
and port number is 1.
Description
Use the interface command to enter
the related interface view.
Example
# Enter interface view of the interface GigabitEthernet
1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1]
Syntax
jumboframe enable
undo jumboframe enable
View
Ethernet interface view/port group 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.
l
Execution of this command under Ethernet
interface view will only apply the configurations to the current Ethernet
interface.
l
Execution of this command under port group view
will apply the configurations to the Ethernet interface(s) in the port group.
Example
# Enable jumbo frames that are not larger
than 1536 bytes to pass through the interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] jumboframe
enable
Syntax
loopback { external | internal }
undo loopback
View
Ethernet interface view
Parameter
external:
Enable external loopback testing on an Ethernet interface.
internal:
Enable internal loopback testing on an Ethernet interface.
Description
Use the loopback command to enable
Ethernet interface loopback testing.
By default, Ethernet interface loopback
testing is disabled.
l
Ethernet interface loopback testing should be
enabled while testing certain functionalities, such as during the initial
identification of any network failure.
l
While enabled, Ethernet interface loopback
testing will work in a full-duplex mode. The interface will return to its
original state upon completion of the loopback testing.
Example
# Configure to enable loopback testing for
the interface GigabitEthernet 1/0/2.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/2
[Sysname-GigabitEthernet1/0/2] loopback
internal
Syntax
loopback-detection control enable
undo loopback-detection control enable
View
Ethernet interface view
Parameter
None
Description
Use the loopback-detection control
enable command to enable loopback detection for a Trunk port or Hybrid
port.
Use the undo loopback-detection control
enable command to disable loopback detection for a Trunk port or Hybrid
port.
By default, loopback detection for a Trunk
port or Hybrid port is disabled.
l
When the loopback detection is enabled, if a
port has been detected with loopback, it will be shutdown. A Trap message will
be sent to the terminal and the corresponding MAC address forwarding entries
will be deleted.
l
When the loopback detection is disabled, if a
port has been detected with loopback, a Trap message will be sent to the
terminal. The port is still working properly.
Note that this command is inapplicable to
an Access port as its loopback detection is enabled by default.
Example
# Enable loopback detection for 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
Syntax
loopback-detection enable
undo loopback-detection enable
View
System view/Ethernet interface view
Parameter
None
Description
Use the loopback-detection enable command
to enable loopback detection globally or on a specified port.
Use the undo loopback-detection enable command
to disable loopback detection globally or on a specified port.
By default, loopback detection is disabled
for an Access, Trunk, or Hybrid port.
l
If an Access port has been detected with loopback,
it will be shutdown. A Trap message will be sent to the terminal and the
corresponding MAC address forwarding entries will be deleted.
l
If a Trunk port or Hybrid port has been detected
with loopback, a Trunk message will be sent to the terminal. They will be
shutdown if the loopback testing function is enabled on them. In addition, a
Trap message will be sent to the terminal and the corresponding MAC address
forwarding entries will be deleted.
Caution:
l
Loopback detection on a given port is enabled
only after the loopback-detection enable command has been issued in both
system view and the interface view of the port.
l
Loopback detection on all ports will be disabled
after the issuing of the undo loopback-detection enable command under
system view.
Related command: loopback-detection
control enable.
Example
# Enable loopback detection on the
interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface GigabitEthernet
1/0/1
[Sysname-GigabitEthernet1/0/1] loopback-detection
enable
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System view
Parameter
time: Time
interval for external loopback detection, in the range of 5 to 300 seconds.
Description
Use the loopback-detection interval-time
command to configure time interval for external loopback detection.
Use the undo loopback-detection
interval-time command to restore the default time interval for external loopback
detection.
By default, the default interval for external
loopback detection is 30 seconds.
Related command: display
loopback-detection.
Example
# Configure time interval for external loopback
detection to 10 seconds.
<Sysname> system-view
[Sysname] loopback-detection
interval-time 10
Syntax
loopback-detection per-vlan enable
undo loopback-detection per-vlan enable
View
Ethernet interface view
Parameter
None
Description
Use the loopback-detection per-vlan
enable command to enable loopback detection in all VLANs with Trunk ports
or Hybrid ports.
Use the undo loopback-detection per-vlan
enable command to enable loopback detection in the default VLAN with Trunk
ports or Hybrid ports.
By default, loopback detection is only
enabled in the default VLAN(s) with Trunk ports or Hybrid ports.
Note that the loopback-detection per-vlan
enable command is not applicable to Access ports.
Example
# Enable loopback detection in all VLANs to
which the Trunk port GigabitEthernet 1/0/1 belong.
<Sysname> system-view
[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
per-vlan enable
Syntax
mdi {
across | auto | normal }
undo mdi
View
Ethernet interface view
Parameter
across:
Configures an Ethernet interface to use cross over cable.
auto:
Configures an Ethernet interface to use auto-detection cable.
normal:
Configures an Ethernet interface to use straight through cable.
Description