interface
Syntax
interface <PORT-LIST> [disable|enable]
Description
Disables or enables the port for network traffic.
Does not use the no
form of the command. Defaults
to enable
. You can substitute int
for interface
(for example, int <PORT-LIST>
.)
Parameters and options
speed-duplex [auto-10|10-full|10-half|100-full|100-half|auto|auto-100|1000-full]
Specifies the port's data transfer speed and mode. Does not use the
no
form of the command. Default:auto
.The 10/100 auto-negotiation feature allows a port to establish a link with a port at the other end at either 10 Mbps or 100 Mbps, using the highest mutual speed and duplex mode available. Only these speeds are allowed with this setting.
Configure port C5 for auto-10-100
switch# int c5 speed-duplex auto-10-100
Configure ports C1 through C3 and port C6 for 100Mbps full-duplex
switch# int c1-c3,c6 speed-duplex 100-full
Similarly, to configure a single port with the
above command settings, you could either enter the same command with
only the one port identified or go to the context level for that port and then enter the command. For example, to enter
the context level for port C6 and then configure that port for 100FDx:
switch# int e c6 switch(eth-C6#) speed-duplex 100-full
If port C8 was disabled, and you wanted to enable
it and configure it for 100FDx with flow-control active, you could
do so with either of the following command sets: