set port flowcontrol

set port flowcontrol

To set the receive flow-control value for a particular Gigabit Ethernet switching module port, use the set port flowcontrol command in privileged EXEC mode. To reset the receive flow-control value to the default, use the no form of this command.
set port flowcontrol { receive | send } [ module-number | port-number ] { off | on | desired }
no set port flowcontrol { receive | send } [ module-number | port-number ] { off | on | desired }

Syntax Description

receive
Indicates whether the port can receive administrative status from a remote device.
send
Indicates whether the local port can send administrative status to a remote device.
module-number
(Optional) Number of the module.
port-number
(Optional) Number of the port on the module.
off
When used with receive, it turns off an attached device's ability to send flow-control packets to a local port.
When used with send, it turns off the local port's ability to send administrative status to a remote device.
on
When used with receive, it requires that a local port receive administrative status from a remote device.
When used with send, the local port sends administrative status to a remote device.
desired
When used with receive, it allows a local port to operate with an attached device that is required to send flow-control packets or with an attached device that is not required to, but may send flow-control packets.
When used with send, the local port sends administrative status to a remote device if the remote device supports it.

Command Default

receiveoff
send
desired
Default on multiplexed ports is on. The exception to these defaults applies to the 18-port Gigabit Ethernet switching module. For this module, the defaults are shown below:
Ports 1-2― send is off and receive is desired
Ports 3-18― send is on and receive is desired

Command Modes

Privileged EXEC

Command History

Release
Modification
12.2(11)T
This command was introduced and implemented on the Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

Usage Guidelines

This command is supported only on Gigabit Ethernet switching modules.

Examples

The following examples show how to use the set port flowcontrol command set.
The following example show how to set the port 5/1 flow-control receive administration status to on (port requires far end to send flow-control packets):
   Router# set port flowcontrol receive 5/1 on

The following example show how to set the port 5/1 flow-control receive administration status to desired (port allows far end to send flow-control packets if far end supports it):
   Router# set port flowcontrol receive 5/1 desired
The following example show how to set the port 5/1 flow-control receive administration status to off (port does not allow far end to send flow-control packets):
   Router# set port flowcontrol receive 5/1 off

The following example show how to set port 5/1 flow-control send administration status t o on (port sends flow-control packets to far end):
Router# set port flowcontrol send 5 / 1 on

The following example show how to set port 5/1 flow-control send administration status to desired (port sends flow-control packets to far end if far end supports it):
Router# set port flowcontrol send 5/1 desired

The following example show how to set port 5/1 flow-control send administration status to off (port does not send flow-control packets to far end):
Router# set port flowcontrol send 5 / 1 off

Related Commands

Command
Description
show port flowcontrol
Displays per-port status information and statistics related to flow control.

你可能感兴趣的:(职场,休闲,flowcontrol)