The switch comes with default port settings that should allow you to connect to the Ethernet Ports without any necessary configuration. Should there be a need to change the name of the ports, Port State, negotiation settings or flow control settings etc., you can do this in the Port settings by below commands
21.1 BACK-PRESSURE
Use “back-pressure” command to make port to enable back pressure feature. Use “no” form of this command to disable back pressure feature. The only way to show this configuration is using “show running-config” command.
Switch#configure terminal
Switch(config-if)# back-pressure
Switch(config-if)# no back-pressure
|
Syntax |
back-pressure no back-pressure |
|
Default |
Default back pressure state is enabled. |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to configure port gi1 and gi2 to be protected port. Switch#configure terminal Switch(config)# interface GigabitEthernet 1 Switch(config-if)# back-pressure Switch(config-if)# no back-pressure |
21.2 CLEAR INTERFACE
Use “clear interface” command to clear statistic counters on specific ports.
Switch#configure terminal
Switch(config)# clear interfaces {IF_PORTS} counters
|
Syntax |
clear interfaces{IF_PORTS}counters |
|
Parameter |
IF_PORTS Specify port to clear counters |
|
Default |
No default value for this command. |
|
Mode |
Privileged EXEC |
|
Example |
This example shows how to clear counters on port gi1. Switch# clear interfaces gi1 counters This example shows how to show current counters Switch# show interfaces gi1 |
21.3 DESCRIPTION
Use “description” command to give the port a name to identify it easily. If description includes space character, please use double quoted to wrap it. Use “no” form to restore description to empty string.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)#description WORD<1-32>
Switch(config-if)#no description
|
Syntax |
description WORD<1-32> no description |
|
Parameter |
WORD<1-32> Specify port description string. |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to modify port descriptions. Switch#configure terminal Switch(config)# interface GigabitEthernet 1 Switch(config-if)# description userport |
21.4 DUPLEX
Use “duplex” command to change port duplex configuration.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)#duplex (auto | full | half)
|
Syntax |
duplex (auto | full | half) |
|
Parameter |
auto Specify port duplex to auto negotiation. full Specify port duplex to force full duplex. half Specify port duplex to force half duplex. |
|
Default |
Default port duplex is auto |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to modify port duplex configuration. Switch#configure terminal Switch(config)# interface GigabitEthernet 1 Switch(config-if)# duplex full Switch(config-if)# exit This example shows how to show current interface link speed Switch# show interfaces status |
21.5 EEE
Use “eee” command to make port to enable the energy efficient Ethernet Feature .Use “no” form of this command to disable eee. IEEE 802.3az Energy Efficient Ethernet (EEE) is a standard that allows physical layer transmitters to consume less power during periods of low data activity. The only way to show this configuration is using “show running-config” command.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)# eee
Switch(config-if)#no eee
|
Syntax |
eee no eee |
|
Parameter |
None |
|
Default |
Default eee state is disabled |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to configure port gi1 and gi2 to be protected port. Switch#configure terminal Switch(config)# interface GigabitEthernet 1 Switch(config-if)# eee This example shows how to show current jumbo-frmae size Switch# show running-config interface gi1 |
21.6 FLOWCONTROL
Use “flowcontrol” command to change port flow control configuration. Use “no” form to restore flow control to default (off) configuration.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)#flowcontrol (auto | off | on)
Switch(config-if)#no flowcontrol
|
Syntax |
flowcontrol (auto | off | on) no flowcontrol |
|
Parameter |
auto Automatically enables or disables flow control on the interface. off Disable port flow control. on Enable port flow control. |
|
Default |
Default port flow control is off |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to modify port duplex configuration. Switch(config)# interface GigabitEthernet 1 Switch(config-if)# flowcontrol on This example shows how to show current flow control configuration Switch# show interfacesGigabitEthernet 1 |
21.7 JUMBO-FRAME
A jumbo frame is an Ethernet frame with a payload greater than the standard maximum transmission unit (MTU) of 1,500 bytes. Jumbo frames are used on local area networks that support at least 1 Gbps and can be as large as 10,000 bytes. Use “jumbo-frame” command to modify maximum frame size. The only way to show this configuration is using “show running-config” command.
Switch#configure terminal
Switch(config)#jumbo-frame<1518-10000>
|
Syntax |
jumbo-frame<1518-10000> |
|
Parameter |
<1518-10000>Specify the maximum frame size. |
|
Default |
Default maximum frame size is 1522. |
|
Mode |
Global Configuration |
|
Example |
This example shows how to modify maximum frame size on gi1 to 10000 bytes. Switch#configure terminal Switch(config)# jumbo-frame 9216 This example shows how to show current jumbo-frame size Switch# show running-config jumbo-frame 9216 |
21.8 MEDIA-TYPE
Use “media-type” command to change combo port media type. Use “no” form of this command to restore media type to default.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)#media-type (auto-select | rj45 | sfp)
Switch(config-if)#no media-type
|
Syntax |
media-type (auto-select | rj45 | sfp) no media-type |
|
Parameter |
auto-select Select media automatically. rj45 Select copper media. sfp Select fiber media. |
|
Default |
Default media type is auto. |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to modify combo port media type to copper. Switch#configure terminal Switch(config)# interface gi25 Switch(config-if)# media-type rj45 |
21.9 PROTECTED
Use “protected” command to make port to be protected. Protected port is only allowed to communicate with unprotected port. In other words, protected port is not allowed to communicate with another protected port. Use “no” form to make port unprotected.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)# protected
Switch(config-if)#no protected
|
Syntax |
protected no protected |
|
Default |
Default protected state is no protected. |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to configure port gi1 and gi2 to be protected port. Switch#configure terminal Switch(config)# interface range gi11-12 Switch(config-if-range)# protected This example shows how to show current protected port state. Switch# show interfaces GigabitEthernet 11-12 protected |
21.10 SHOW INTERFACE
Use “show interface” command to show detail port counters, parameters and status. Use “show interface status” command to show brief port status. Use “show interface protected” command to show protected status.
Switch# show interfaces {IF_PORTS}
Switch# show interfaces {IF_PORTS} status
Switch# show interfaces {IF_PORTS} protected
|
Syntax |
show interfaces{IF_PORTS} show interfaces{IF_PORTS} status show interfaces{IF_PORTS} protected |
|
Parameter |
{IF_PORTS}Specify port to show. |
|
Mode |
Privileged EXEC |
|
Example |
This example shows how to show current counters Switch# show interfaces GigabitEthernet 1 This example shows how to show current protected port state. Switch# show interfaces GigabitEthernet 1-2 protected This example shows how to show current port status Switch# show interfaces GigabitEthernet 1-2 status |
21.11 SPEED
Use “speed” command to change port speed configuration. The speed is only able to configure to the physical maximum speed. For example, in fast Ethernet port, speed 1000 is not available. You cannot configure the speed on the SFP module ports, but you can configure the speed to not negotiate (nonegotiate) if it is connected to a device that does not support autonegotiation.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)# speed (10 | 100 | 1000)
Switch(config-if)# speed auto [(10 | 100 | 1000 | 10/100)]
Switch(config-if)#speed nonegtiate
Switch(config-if)#no speed nonegtiate
|
Syntax |
speed (10 | 100 | 1000) speed auto [(10 | 100 | 1000 | 10/100)] speed nonegtiate no speed nonegtiate |
|
Parameter |
10 Specify port speed to force 10Mbits/s or auto with 10Mbits/s ability. 100 Specify port speed to force 100Mbits/s or auto with 100Mbits/s ability. 1000 Specify port speed to force 1000Mbits/s or auto with 1000Mbits/s ability. 10/100 Specify port speed to auto with 10Mbits/s and 100Mbits/s |
|
Default |
Default port speed is auto with all available abilities. |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to modify port speed configuration. Switch#configure terminal Switch(config)# interface GigabitEthernet 1 Switch(config-if)# speed 100 Switch# show running-config interfaces GigabitEthernet 1 |
21.12 SHUTDOWN
Use “shutdown” command to disable port and use “no shutdown” to enable port. If port is error disabled by some reason, use “no shutdown” command can also recovery the port manually.
Switch#configure terminal
Switch(config)#interface {Interface-ID}
Switch(config-if)# shutdown
Switch(config-if)#no shutdown
|
Syntax |
shutdown no shutdown |
|
Default |
Default port admin state is no shutdown. |
|
Mode |
Interface Configuration |
|
Example |
This example shows how to modify port duplex configuration. Switch#configure terminal Switch(config)# interface gi1 Switch(config-if)# shutdown This example shows how to show current admin state configuration Switch# show running-config interfaces gi1 |