11
Examples
# Configure interface GigabitEthernet 1/0/1 to operate in full-duplex mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] duplex full
flow-control
Syntax
flow-control
undo flow-control
View
Ethernet interface view
Default level
2: System level
Parameters
None
Description
Use
flow-control
to enable TxRx mode generic flow control on an Ethernet interface.
Use
undo flow-control
to disable generic flow control on the Ethernet interface.
TxRx mode flow control enables an Ethernet interface to receive common pause frames from its peer, and
send common pause frames to notify its peer of congestions.
By default, generic flow control on an Ethernet interface is disabled.
With the
flow-control
command configured, an interface can both send and receive flow control frames:
•
When congested, the interface sends a flow control frame to its peer.
•
Upon receiving a flow control frame from the peer, the interface suspends sending packets.
To implement flow control on a link, you must enable the generic flow control function at both ends of the
link.
Examples
# Enable TxRx mode generic flow control on the interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] flow-control
interface
Syntax
interface
interface-type
interface-number
View
System view