2022年思科路由器命令大全 .pdf

上传人:H****o 文档编号:32436218 上传时间:2022-08-09 格式:PDF 页数:5 大小:42.38KB
返回 下载 相关 举报
2022年思科路由器命令大全 .pdf_第1页
第1页 / 共5页
2022年思科路由器命令大全 .pdf_第2页
第2页 / 共5页
点击查看更多>>
资源描述

《2022年思科路由器命令大全 .pdf》由会员分享,可在线阅读,更多相关《2022年思科路由器命令大全 .pdf(5页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、思科路由器命令大全switch 用户模式1:进入特权模式enable switch enable switch# 2:进入全局配置模式configure terminal switch enable switch c onfigure terminal switch(conf)# 3:交换机命名hostname aptech2950 以 aptech2950 为例switch enable switch c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令enable password c

2、isco 以 cisco 为例switch enable switch c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码enable secret ciscolab 以 cicsolab 为例switch enable switch c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan

3、1 interface vlan 1 switch enable 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 5 页 - - - - - - - - - switch c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口

4、ip 和子网掩码aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址7:进入交换机某一端口interface fastehernet 0/17 以 17 端口为例switch enable switch c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(c

5、onf-if)# 8:查看命令show switch enable switch# show version 察看系统中的所有版本信息show interface vlan 1 查看交换机有关ip 协议的配置信息show running-configure 查看交换机当前起作用的配置信息show interface fastethernet 0/1 察看交换机 1 接口具体配置和统计信息show mac-address-table 查看 mac 地址表show mac-address-table aging-time 查看 mac 地址表自动老化时间名师资料总结 - - -精品资料欢迎下载 -

6、 - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 5 页 - - - - - - - - - 9:交换机恢复出厂默认恢复命令switch enable switch# erase startup-configure switch# reload 10:双工模式设置switch enable switch c onfigure terminal switch2950(conf)#hostname aptch-2950 aptech2950(conf)# interface fastehernet 0/17 以 17 端

7、口为例aptech2950(conf-if)#duplex full/half/auto 有full , half, auto 三个可选项11:cdp 相关命令switch enable switch# show cdp 查看设备的 cdp 全局配置信息show cdp interface fastethernet 0/17 查看 17 端口的 cdp 配置信息show cdp traffic 查看有关 cdp 包的统计信息show cdp nerghbors 列出与设备相连的cisco 设备12:csico2950 的密码恢复拔下交换机电源线。用手按着交换机的MODE 键,插上电源线在 sw

8、itch :后执行 flash_ini 命令: switch: flash_ini 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 5 页 - - - - - - - - - 查看 flash 中的文件:switch: dir flash: 把 “config.text”文 件 改 名 为 “config.old”:switch: rename flash: config.text flash: config.old 执行 boot:switch: boot 交换机进入是

9、否进入配置的对话,执行no :进入特权模式察看flash 里的文件:show flash : 把 “config.old”文 件 改 名 为“config.text”:switch: rename flash: config.old flash: config.text 把“config.text”拷入系统的 “running -configure ”: copy flash: config.text system : running-configure 把配置模式重新设置密码存盘,密码恢复成功。13:交换机 telnet 远程登录设置:switchen switch c onfigure t

10、erminal switch(conf)#hostname aptech-2950 aptech2950(conf)#enable password cisco 以 cisco 为特权模式密码aptech2950(conf)#interface fastethernet 0/1 以 17 端口为 telnet远程登录端口aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 aptech2950(conf-if)#no shut aptech2950(conf-if)#exit aptech2950(conf)line vty 0 4

11、设置 0-4 个用户可以 telnet远程登陆aptech2950(conf-line)#login aptech2950(conf-line)#password edge 以 edge 为远程登录的名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 5 页 - - - - - - - - - 用户密码主机设置:ip 192.168.1.2 主机的 ip 必须和交换机端口的地址在同一网络段netmask 255.255.255.0 gate-way 192.168.1.1 网关地址是交换机端口地址运行:telnet 192.168.1.1 进入 telnet 远程登录界面password : edge aptech2950en password: cisco aptech# 14:交换机配置的重新载入和保存设置完成交换机的配置后:aptech2950(conf)#reload 是否保存( y/n)y: 保存设置信息n:不保存设置信息名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 5 页 - - - - - - - - -

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 技术总结

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com