mac

Commands for Network Port Configuration
108
3.1.18 speed-duplex
Command: speed-duplex {auto [10 [100 [1000]] [auto | full | half |]] | force10-half |
force10-full | force100-half | force100-full | force100-fx [module-type {auto-detected
| no-phy-integrated | phy-integrated}] | {{force1g-half | force1g-full} [nonegotiate
[master | slave]]}| force10g-full}
no speed-duplex
Function: Sets the speed and duplex mode for 1000Base-TX, 100Base-TX or
100Base-FX ports; the no command restores the default speed and duplex mode setting,
i.e., auto speed negotiation and duplex.
Parameters: auto is the auto speed and duplex negotiation, 10 is 10Mbps speed, 100 is
100Mbps speed, 1000 is 1000Mbps speed, auto is duplex negotiation, full is full-duplex,
half is half-duplex; force10-half is the forced 10Mbps at half-duplex mode; force10-full
is the forced 10Mbps at full-duplex mode; force100-half is the forced 100Mbps at
half-duplex mode; force100-full is the forced 100Mbps at full-duplex mode; force100-fx
is the forced 100Mbps at full-duplex mode; module-type is the type of 100Base-FX
module; auto-detected: automatic detection; no-phy-integrated: there is no
phy-integratd 100Base-FX module; phy-integrated: phy-integratd 100Base-FX module;
force1g-half is the forced 1000Mbps speed at half-duplex mode; force1g-full is the
forced 1000Mbps speed at full-duplex mode; nonegotiate disables auto-negotiation
forcibly for 1000Mb port; master forces the 1000Mb port to be master mode; slave
forces the 1000Mb port to be slave mode. force10g-full is the forced 10000Mbps speed
at full-duplex mode.
Command mode: Port Mode.
Default: Auto-negotiation for speed and duplex mode is set by default.
Usage Guide: This command is configures the port speed and duplex mode. When
configuring port speed and duplex mode, the speed and duplex mode must be the same
as the setting of the remote end, i.e., if the remote device is set to auto-negotiation, then
auto-negotiation should be set at the local port. If the remote end is in forced mode, the
same should be set in the local end.
1000Gb ports are by default master when configuring nonegotiate mode. If one end is
set to master mode, the other end must be set to slave mode.
force1g-half is not supported yet.
Example: Port 1 of Switch1 is connected to port 1 of Switch2, the following will set both
ports in forced 100Mbps at half-duplex mode.
Switch1(config)#interface ethernet1/1
Switch1(Config-If-Ethernet1/1)#speed-duplex force100-half
Switch2(config)#interface ethernet1/1