Setting the mdi mode of an ethernet interface – H3C Technologies H3C S10500 Series Switches User Manual

Page 25

Advertising
background image

14

To do…

Use the command…

Remarks

Enter Ethernet interface
view or port group view

Enter Ethernet interface view

interface interface-type
interface-number

Enter port group view

port-group manual

port-group-name

Use either command.
To configure loopback detection on one

interface, enter Ethernet interface view.
To configure loopback detection on a group of

Ethernet interfaces, enter port group view.

Enable loopback
detection on the

interface

loopback-detection enable

Required
Disabled by default.

Enable loopback
detection control on a

trunk port or a hybrid

port

loopback-detection control
enable

Optional
Disabled by default.

Enable loopback
detection in all the

VLANs on the trunk or
hybrid port

loopback-detection per-vlan
enable

Optional
By default, a trunk or hybrid port performs
loopback detection only in its port VLAN ID

(PVID).

Set the protective action
to take on the interface

when a loop is detected

loopback-detection action
{ no-learning | semi-block |

shutdown }

Optional
By default, a looped interface does not receive
or send packets; the system generates traps and

deletes all MAC address entries of the looped

interface.
With the shutdown keyword specified, the
switch shuts down the looped ports and set their

physical state to Loop down. When a looped

port recovers, you must use the undo shutdown

command to restore its forwarding capability.

NOTE:

To use loopback detection on an Ethernet interface, you must enable the function both globally and on
the interface.

To disable loopback detection on all interfaces, run the undo loopback-detection enable command in
system view.

To enable a hybrid or trunk port to take the administratively specified protective action, you must use the
loopback-detection control enable command on the port.

When you change the link type of an Ethernet interface by using the port link-type command, the switch
removes the protective action configured on the interface. For more information about the port link-type

command, see

Layer 2—LAN Switching Command Reference.

Setting the MDI mode of an Ethernet interface

NOTE:

Fiber ports do not support the MDI mode setting.

Advertising