37
4.3.5 Command Lines for Port Configuration
Feature
Command Line
Port Control
Port Control – State
Switch(config-if)# shutdown -> Disable port state
Port1 Link Change to DOWN
interface fastethernet1 is shutdown now.
Switch(config-if)# no shutdown -> Enable port state
Port1 Link Change to DOWN
Port1 Link Change to UP
interface fastethernet1 is up now.
Switch(config-if)# Port1 Link Change to UP
Port Control – Auto
Negotiation
Switch(config)# interface fa1
Switch(config-if)# auto-negotiation
Auto-negotiation of port 1 is enabled!
Port Control – Force
Speed/Duplex
Switch(config-if)# speed 100
Port1 Link Change to DOWN
set the speed mode ok!
Switch(config-if)# Port1 Link Change to UP
Switch(config-if)# duplex full
Port1 Link Change to DOWN
set the duplex mode ok!
Switch(config-if)# Port1 Link Change to UP
Port Control – Flow
Control
Switch(config-if)# flowcontrol on
Flowcontrol on for port 1 set ok!
Switch(config-if)# flowcontrol off
Flowcontrol off for port 1 set ok!
Port Status
Port Status
Switch# show interface fa1
Interface fastethernet1
Administrative Status : Enable
Operating Status : Connected
Duplex : Full
Speed : 100
Flow Control :off
Default Port VLAN ID: 1
Ingress Filtering : Disabled
Acceptable Frame Type : All
Port Security : Disabled
Auto Negotiation : Disable
Loopback Mode : None
STP Status: forwarding
Default CoS Value for untagged packets is 0.
Mdix mode is Disable.
Medium mode is Copper.
Note: Administrative Status -> Port state of the port. Operating
status -> Current status of the port. Duplex -> Duplex mode of
the port. Speed -> Speed mode of the port. Flow control ->
Flow Control status of the port.