4.14上午

新建Packet Tracer拓扑图

了解交换机命令行

进入特权模式(en)

进入全局配置模式(conf t)

进入交换机端口视图模式(int f0/1)

返回到上级模式(exit)

从全局以下模式返回到特权模式(end)

帮助信息(如? 、co?、copy?)

命令简写(如 conf t)

命令自动补全(Tab)

快捷键(ctrl+c中断测试,ctrl+z退回到特权视图)

Reload重启。(在特权模式下)

修改交换机名称(hostname X)

PC console端口

 

       Switch>enable

 

       Switch#conf t

 

       Switch(config)#hostname X

 

       Switch(config)#interface fa 0/1

 

       Switch(config-if)#end 

 

PC console端口

       Switch>enable

       Switch#conf  t

       Switch(config)#hostname  S2960

       S2960(config)#interface fa 0/1

       S2960(config-if)#speed 100

       S2960(config-if)#duplex full

       S2960(config-if)#exit

       同时将PC的网卡改成全双工模式,100M速率,否则链路不通

       S2960(config)#hostname switch

       Switch(config)#exit

       Switch#show version

       Switch#show run

       Switch#show interface

       Switch#show mac-address-table

       Switch#config t

       Switch(config)#enable  password  cisco//激活特权模式密码为cisco

       Switch(config)#no enable password //取消特权模式密码

       Switch(config)#line console 0

       Switch(config-line)#password cisco

       Switch(config-line)#login

       Switch(config-line)#no password//取消密码

 

posted @ 2017-04-14 15:34  H_uio  阅读(180)  评论(0编辑  收藏  举报