网中网 发表于 2017-7-8 20:08:54

2017.4.18下午

  
  packettracer 指令命令
  l switch(config)# enable password ****** 设置进入特权模式的密码
  l switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码;
  l switch(config)# line console 0表示配置控制台线路,0是控制台的线路编号。
  l switch(config-line)# login用于打开登录认证功能。
  l switch(config-line)# password 5ijsj//设置进入控制台访问的密码
  l
  若交换机设置为auto以外的具体速度,此时应注意保证通信双方也要有相同的设置值。
  注意事项:在配置交换机时,要注意交换机端口的单双工模式的匹配,如果链路一端设置的是全双工,另一端是自动协商,则会造成响应差和高出错率,丢包现象会很严重。通常两端设置为相同的模式。
  实验设备
  Switch_2960 1台;PC 1台;配置线;直通线

  PC console端口
  Switch>enable
  Switch#conft
  Switch(config)#hostnameS2960
  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)#enablepasswordcisco//激活特权模式密码为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//取消密码
页: [1]
查看完整版本: 2017.4.18下午