交换机基本配置命令
a. 进入特权模式
Switch>enable //en=enable
Switch#
b. 进入全局配置模式
Switch#configure terminal //conf t=configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
c. 进入交换机端口视图模式
Switch(config)#interface fastEthernet 0/1 //int f0/1=interface fastEthernet 0/1
Switch(config-if)#
d. 配置交换机端口速度
Switch(config-if)#speed ?
10 Force 10 Mbps operation100 Force 100 Mbps operationauto Enable AUTO speed configuration
Switch(config-if)#speed 100
e. 配置交换机端口双工模式
Switch(config-if)#duplex ?
auto Enable AUTO duplex configurationfull Force full duplex operationhalf Force half-duplex operation
Switch(config-if)#duplex full
f. 退回到上一级模式
Switch(config-if)#exit
Switch(config)#
g. 直接退回到特权模式
Switch(config-if)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#