Configuring the link mode of an ethernet interface – H3C Technologies H3C SecPath F1000-E User Manual

Page 41

Advertising
background image

16

Step Command

Remarks

3.

Enable loopback testing.

loopback { external | internal }

Optional.
Disabled by default.

NOTE:

On an interface that is physically down, you can only perform internal loopback testing. On an interface
administratively shut down, you can perform neither internal nor external loopback testing.

The speed, duplex, mdi, and shutdown commands are unavailable during loopback testing.

During loopback testing, an Ethernet interface works in full duplex mode. When you disable loopback
testing, the duplex configuration of the interface restores.

Configuring the link mode of an Ethernet interface

Depending on the hardware structure of interface cards, for a device, some interfaces can operate only
as Layer 2 Ethernet interfaces (in bridge mode), some can operate only as Layer 3 Ethernet interfaces (in

route mode), but others can operate either as Layer 2 or Layer 3 Ethernet interfaces (you can set the link

mode to bridge or route).
To change the link mode of an Ethernet interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Change the link mode of
Ethernet interfaces.

(Approach 1) In system view:
port link-mode { bridge | route } interface-list

(Approach 2) In Ethernet interface view:

a.

interface interface-type interface-number

b.

port link-mode { bridge | route }

Use either approach.

CAUTION:

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

The link mode configuration for an Ethernet interface in system view and in interface view supersedes
each other.

Enabling subinterface rate statistics collection on an Ethernet interface

IMPORTANT:

Use this function with caution, because it might consume a large amount of system resources.

After you enable subinterface rate statistics collection on an Ethernet interface, the device periodically

refreshes the rate statistics on the subinterfaces of this Ethernet interface. You can use the display

interface command to view the rate statistics.
To enable subinterface rate statistics collection on an Ethernet interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

Advertising