Switch>用户模式
Switch>enable
Switch#特权模式
Switch#configure terminal
Switch(config)#全局配置模式
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#接口模式
exit返回上一模式
end直接退到特权模式
Switch(config)#hostname S1修改主机名为S1
Switch#show running-config查看配置信息
接口模式:shutdown禁用此接口
原文:https://www.cnblogs.com/a-ant/p/10878976.html