Interface Configuration Command
-I-
Content
Table of Content
Chapter 1 Interface Configuration Command....................................................................................................................... 1
1.1.1 speed......................................................................................................................................................... 1
1.1.2 duplex........................................................................................................................................................ 1
1.1.3 flow-control................................................................................................................................................ 2
1.1.4 switchport block......................................................................................................................................... 3
1.1.5 storm-control ............................................................................................................................................. 4
-I-
02-Interface configuration command
Chapter 1 Interface Configuration Command
1.1.1 speed
Syntas
speed {10 | 100 | auto }
no speed
Set port speed.
Parameter
Parameter Description
10, 100,1000 set port speed into10M 100M 1000M.
auto set port speed be auto negotiated.
Default
Auto negotiation on TX, 100M on FX.
Explanation
Working in layer 2 port configuration mode
Note:
Speed of TX port is fixed, for example: speed of GBIC and GE-FX is 1000M, speed of FE-FX is 100M. If
parameter "auto" follow instruction "speed" on TX port, then auto negotiation function can be opened,
otherwise, the port be forced do not support auto-negotiate function.
Example
Set speed of port f0/1 to be 100M.
Switch(config)# interface fastethernet0/1
Switch(config-if)# speed 100
1.1.2 duplex
Syntas
duplex {auto | full | half}
-1-
02-Interface configuration command
no duplex
Configure duplex mode of port
Parameter
Parameter Description
auto auto negotiate.
full full duplex.
half half duplex.
Default
Auto negotiation on TX, 100M on FX.
Explanation
Working in layer 2 port configuration mode.
Note:
Duplex mode of TX is fixed: full duplex mode.
Example
Set duplex mode of port f0/1 to be full duplex.
Switch(config)# interface fastethernet0/1
Switch(config-if)# duplex full
1.1.3 flow-control
Syntas
flow-control threshold count
no flow-control threshold
Configure flow control of port.
Parameter
Parameter Description
count Enable the interface flow-control percent .the range: 1 100.
-2-
02-Interface configuration command
Default
close flow control
Explanation
Working in layer 2 port configuration mode
1.1.4 switchport block
Syntas
[no] switchport block {unicast | multicast | broadcast }
Configure port do not transmit assigned packets
Parameter
Parameter Description
unicast Port do not transmit unknown unicast packets.
multicast Port do not transmit multicast packets.
broadcast Port do not transmit broadcast packets.
Default
Transmit all packets
Explanation
Working in layer 2 port configuration mode.
Example
Configure port f0/1 do not transmit unknown unicast packet
Switch(config)# interface fastethernet0/1
Switch(config-if)# switchport block unicast
1.1.5 switchport protected
Syntas
[no] switchport protected
Configure port protection function.
-3-
02-Interface configuration command
Parameter
None
Default
Un-protection on port
Explanation
Working in layer 2 port configuration mode.
Example
Configure port f0/1 do not transmit unknown unicast packet.
Switch(config)# interface fastethernet0/1
Switch(config-if)# switchport block unicast
1.1.6 storm-control
Syntas
storm-control {broadcast | multicast | unicast} threshold count
no storm-control {broadcast | multicast | unicast} threshold
Configure storm-control on port.
Parameter
Parameter Description
broadcast Define storm-control of broadcast.
multicast Define storm-control of multicast.
unicast Define storm-control of unicast.
Define storm-control percent of port. count define the max flow count. 0
threshold count
100
Default
No storm-control function.
Explanation
Working in layer 2 port configuration mode:
-4-
02-Interface configuration command
When configure value is in 0-3, control scale is 3.3; in 4-9 case, control scale is 5; in
10-19 case, control scale is 20; in 20-100 case, control scale is 20
Example
Configure storm-control percent to be 20% on port f0/1 for unicast packet.
switch(config)# interface fastethernet0/1
switch(config-if)# storm-control unicast threshold 20
-5-