zoukankan      html  css  js  c++  java
  • 2017.4.18下午

     

    packet  tracer 指令命令

    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  //设置进入控制台访问的密码

    若交换机设置为auto以外的具体速度,此时应注意保证通信双方也要有相同的设置值。

    注意事项:在配置交换机时,要注意交换机端口的单双工模式的匹配,如果链路一端设置的是全双工,另一端是自动协商,则会造成响应差和高出错率,丢包现象会很严重。通常两端设置为相同的模式。

    实验设备

    Switch_2960 1台;PC 1台;配置线;直通线

     

    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//取消密码

  • 相关阅读:
    wpf读取mysql字段类型为text的问题
    设计模式简介
    为 RESTful API 配置 CORS 实现跨域请求
    js FileReader 读取文件
    js读取文件fileReader
    制作svg动态图形效果
    H5与Native交互之JSBridge技术
    位(bit)、字节(byte)、字符、编码之间的关系
    node.js的net模块实现socket通信
    Flexbox如何将页面底部固定在屏幕最下方
  • 原文地址:https://www.cnblogs.com/bgd140206206/p/6730624.html
Copyright © 2011-2022 走看看