版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、.思科交换机路由器命令大全交换机命令:switch用户模式1:进入特权模式switch enableswitch#2:进入全局配置模式configure switch enableswitchconfigure switch(conf)#3:交换机命名 hostname aptech2950以aptech2950为switch enableswitchconfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)#4:配置使能口令enable password cisco以cisco为switch enableswitc
2、hconfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco5:配置使能密码enablesecretciscolab以cicsolab为例IPswitch enableswitchconfigure terminal switch(conf)#hostname aptch2950aptech2950(conf)# enablesecretciscolabaptech2950(conf)#no ipdomain-lookupIP地址解析特性aptech2950(conf)#l
3、oggingsynchronous设置启用消息同步特性aptech2950(conf)#interface range fastethernet0/1-20aptech2950(conf-if-range)#spanning-tree portfast设置快速端口aptech2950(conf)#interface range fastethernet 0/23-24 aptech2950(conf-if-range)#swichport modetrunk设置主干道端口aptech2950(conf)#spanning-treeuplingkfast设置阻塞启用迅速只可以在访问层启用6:设置
4、虚拟局域网vlan 1interface vlan switch enableswitchconfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1ipaptech2950(conf-if)#noshut是配置处于运行中aptech2950(conf-if)#exit设置网关地址 7:interfacefastehernet0/1717switch enable switchconfigure terminal switch(conf)#hostname aptech2950(con
5、f)# interface fastehernet 0/17 aptech2950(conf-if)#8:查看命令switch enableswitch# show version观察系统中的所有版本信息show interface vlan 1ipshow running-configure 查看交换机当前起作用的配置信息show interfacefastethernet0/11信息show mac-address-tablemacshow mac-address-table aging-timemac9:交换机恢复出厂默认恢复命令switch enableswitch# erase st
6、artup-configure switch# reload10:switch enableswitchconfigure terminal switch2950(conf)#hostname aptch-2950 aptech2950(conf)# interface fastehernet0/1717aptech2950(conf-if)#duplexfull/half/auto有 fullhalf,autoswitch enableswitch# show cdpcdpshow cdp interface fastethernet 0/1717cdp信息show cdp traffic查
7、看有关cdp包的统计信show cdp nerghbors列出与设备相连的cisco设备12:csico2950的密码恢复拔下交换机电源线。用手按着交换机的 MODE 键,插上电源线switch:flash_ini:switch: flashswitch: dir flash:把“文件改名为“执行boot:switch: boot交换机进入是否进入配置的对话,执行 no :flashshow flash把“文件改名为 “:把“拷入系统的“running-configure: copy flash: config.text system : running-configure把配置模式重新设置密
8、码存盘,密码恢复成功。13:交换机 telnet 远程登录设置:switchen switchconfigure switch(conf)#hostname aptech-2950aptech2950(conf)#enable password ciscociscoaptech2950(conf)#interface fastethernet 0/1telnet远程登录端口aptech2950(conf-if)#no shut aptech2950(conf-if)#exit aptech2950(conf)line vty 040-4 个用户可以telnet登陆aptech2950(conf
9、-line)#loginaptech2950(conf-line)#password edgeedge主机设置:ipip和交换机端口的地址在同一网络段netmaskgate-way网关地址是交换机端口地址运行:telnet 192.168.1.1telnetpassword : edge aptech2950enpassword: cisco aptech#14:交换机配置的重新载入和保存设置完成交换机的配置后: aptech2950(conf)#reload是否保存y/ny: 保存设置信息n:不保存置信息路由器命令router用户模式1:进入特权模式enablerouter enable r
10、outer #2:进入全局配置模式configure router enablerouter configure router (conf)#3:交换机命名 hostname routera以routerA为router enablerouter configure terminal router(conf)#hostname routera (conf)#4:配置使能口令enable password router enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# enable passw
11、ord cisco 5:配置使能密码enable secretrouter enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# enable secret ciscolab 6:interfacefastehernet0/1717router enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# interface fastehernet 0/17 routerA (conf-if)#以 17
12、端口的 1 子端口为例以 cisco 为例以 cicsolab 为例router enablerouter configure terminal router(conf)#hostname routerA7:iprouter enablerouter configure terminal router(conf)#hostname routerArouterA(conf)# interfacefastehernet0/1717iprouterA (conf-if)#noshut是配置处于运行中routerA (conf-if)#exit 8:查看命令show router enablerout
13、er # show version观察系统中的所有版本信息show interface vlan 1ipshow running-configure 查看交换机当前起作用的配置信息show interfacefastethernet0/11信息show mac-address-tablemacshow mac-address-table aging-time查看mac地址表自动老化时间showcontrollersserial+ 编号查看串口类show ip router查看路由器的路由表9:cdp 相关命令router enablerouter #show cdp查看设备的 cdp 全局配置
14、信息show cdpinterfacefastethernet 0/1717cdp信息show cdp traffic查看有关cdp包的统计信show cdp nerghbors列出与设备相连的cisco设备10:csico2600的密码恢复win+breakmonitor在提示符下输入命令修改配置存放器的值,然后重新启动路由器remmon1confreg 0 x2142remmon2resetsetup“noexecstartup-config不变把startup-configrunning-config0 x2102:routerenablerouter#copy startup-conf
15、ig running-configrouterconfigure terminal router(conf)#enable password cisco router(conf)c onfig-register 0 x2102startup-configrouter #copy running-config startup-config router #reload11:telnetrouterenrouter configure terminal router (conf)#hostname routerArouterA (conf)#enable password cisco为特权模式密码
16、routerA (conf)#interface fastethernet 0/117telnetrouterA (conf-if)#no shut routerA (conf-if)#exitrouterA(conf)linevty04设0-4telnetrouterA (conf-line)#loginrouterA (conf-line)#password edge为远程登录的用户密码主机设置:ipip和交换机端口的地址在同一网络段netmaskgate-way网关地址是交换机端口地址运行:telnet 192.168.1.1telnetpassword : edge routeraen
17、password: cisco routera#12:配置路由器的标识banner $banner连接到路由器的终端都会收到。routerenrouter configure terminal router (conf)#hostname routerArouterA(conf)#banner motd $This is aptech companyrouter !Please dont change the configuration without 13:配置接口标识description 接口标识用于区分路由器的各个接口。routerenrouter configure terminal
18、 router (conf)#hostname routerArouterA(conf)#interface fastethernet 0/10/1 接口为例routerA(conf-if)# description this is a fast Ethernet port used toconnecting the companys intranet!14:配置超时consoleexec10routerenrouter configure terminal router (conf)#hostname routerA routerA(conf)#line console 0routerA(c
19、onf-if)e xec-timeout00个“0代表分钟,第二个“0代表秒15:配置串口参数DTE,DCE。DCEDTEDCErouterenrouter configure terminal router (conf)#hostname routerArouterA(conf)#interface serial 0/0routerA(conf_if)#clockrate6400064000routerA(conf_if)#bandwidth 64提供带宽为 64DTEiprouterenrouter configure terminal router (conf)#hostname routerBrouterB(conf)#interface serial 0/016:静态路由的配置Aro
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 网络活动策划方案大全(3篇)
- 医联体运营中反垄断合规问题探析
- 甘肃省酒泉市2025-2026年高三上学期期末考试语文试卷(含答案)
- 医美医疗器械管理:采购与使用合规
- 医疗资源分配中的患者自主权与公正原则
- 医疗质量提升与志愿服务的联动效应
- 医疗设备采购中的技术壁垒应对机制
- 妇产科子宫内膜异位症手术后护理方案
- 心肌淀粉样变患者心理支持与护理
- 云南国防工业职业技术学院《软件测试(军工软件)》2024-2025 学年第一学期期末试卷(信息专业)
- 菏泽风电项目可行性研究报告
- T/CCMA 0114-2021履带式升降工作平台
- DB32T 5124.1-2025 临床护理技术规范 第1部分:成人危重症患者目标温度管理
- 专题13 三角函数中的最值模型之胡不归模型(原卷版)
- 职高高二语文试卷及答案分析
- 2025届江苏省南通市高三下学期3月二模化学试题(含答案)
- 班主任安全管理分享会
- 消防救援预防职务犯罪
- 毕业论文答辩的技巧有哪些
- 酒店安全风险分级管控和隐患排查双重预防
- 2018年风电行业事故锦集
评论
0/150
提交评论