1、设备: Switch_2960 1台;PC 1台;配置线;直通线!
2、开启终端。
3、设置终端
4、交换机的命令行操作模式主要包括:用户模式 Switch>特权模式 Switch#全局配置模式 Switch(config)#端口模式 Switch(config-if)#
5、命令说明:1、查看端口信息 Switch#show interface2、查看交换机的MAC地址表Switch#show mac-ad颊俄岿髭dress-table3、选择某个端口Switch(config)# interface fastethernet0/14、设置端口通信速度Switch(config-if)#speed [10/100/auto]5、设置端口单双工模式Switch(config-if)#duplex [half/full/auto]
6、交换机的设置。S2960(config)#hostname SA SA(config)#exit SA#show 即枢潋雳version SA#show run SA#show interface SA#show mac-address-table SA#config t SA(config)#enable password cisco//激活特权模式密码为cisco SA(config)#no enable password //取消特权模式密码 SA(config)#line console 0 SA(config-line)#password cisco SA(config-line)#login SA(config-line)#no password//取消密码