版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
路由器常用命令信息科技中心2011年4月26日路由器如何接入PC1、神码路由器配置专线console;2、配置线的RJ45接口的一端接入路由器CON端口;3、配置线的另一端口接入PC机后面的com1端口。4、打开路由器后面的ON电源开关;配置超级终端1、打开程序——附件——通讯——超级终端;2、超级终端名称可随意输入:如1233、连接时使用COM1端口;4、端口设置:单击“还原为默认值”;5、单击“确定”6、出现光标亮点时回车;登陆路由器1、回车后出现router>(router路由默认符)>用户特权模式,2、router>enable
(转全局模式)router#全局配置模式enable用户模式1、在router>后输入enable(或简写ena)router>enarouter#2、router#exit(将从全局模式退回到用户模式)router#exit3、router>enable用户模式3、enablepassword***密码(为ena用户登陆设置密码)router>enablerouter#confterminal%Enterconfigurationcommands,oneperline.EndwithCNTL+Z.router(config)#enablepasswordzmdnx(密码zmdnx
)router(config)#Exitrouter#Configureterminal(简写conft)全局配置例:router#confterminal%Enterconfigurationcommands,oneperline.EndwithCNTL+Z.
router(config)#_config#后带的常用参数有
terminal--设置终端
interface--配置接口
ip--IP配置命令
exit--退出或返回上一级菜单Configure全局配置
_config#后带的常用参数有
hostname--设置路由器名字
ping--测试网络状态
reboot--重启动路由器
show--显示配置和状态
write--保存当前配置
Chinese命令:设置中文帮助在router#后输入Chinese命令1、router#chinese2、router#?再次查看可用命令,就会出现命令后面有对应的中文字幕描述例如:
chinese--中文帮助信息
clear--清除屏幕
?获得帮助键>?获得当前可用的命令列表>S?显示已知字符开头的命令行>show?获得命令参数列表>up显示以前输入的命令hostname在全局配置模式下显示或设置路由器的主机名称,默认为route例:router>enaPassword:
router#conftrouter(config)#hostname
zmdnxzmdnx(config)#zmdnx为路由器新名称Ping检查网络的连通性Ping后缀常用参数
-t一直Ping指定的计算机,直到从键盘按下Control-C中断。router>Ping本地地址(检验与本地设备的连通性)router>Ping远端服务器(检查与中心节点的连通性)例:C:\DocumentsandSettings\Administrator>ping11.125.230.190Pinging11.125.230.190with32bytesofdata:Replyfrom11.125.230.190:bytes=32time=5msTTL=252Ping检查网络的连通性Replyfrom11.125.230.190:bytes=32time=7msTTL=252Replyfrom11.125.230.190:bytes=32time=7msTTL=252Replyfrom11.125.230.190:bytes=32time=6msTTL=252Pingstatisticsfor11.125.230.190:
Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:
Minimum=5ms,Maximum=7ms,Average=6ms
reboot重启路由系统(在全局模式下)router#reboot
Doyouwanttoreboottherouter(y/n)?--Y重启路由器--N不重启路由器Write保存设置,在全局模式下保存当前配置,以免断电或重启后恢复为原来的配置。#writeSavingcurrentconfiguration...OK!#date在配置模式下改变路由器当前日期及时间router>enarouter#conftRouter(config)#date当前日期是2002年1月1日5时:17分:40秒请输入新的日期(yyyy-mm-dd):请输入新的时间(hh:mm:ss):router_config#
snmp(远程网络控制配置)SNMP简单网络管理协议,用于管理IP网络上结点的协议router(config)#Snmp-serverviewdefault1.3.6.1include;snmp代理在启动时会配置一个初始的视图default,对应的OID为1.3.6.1,include表示包含MIB库1.3.6.1子树下的所有对象。snmp(远程网络控制配置)router(config)#Snmp-servercommunitypublicro;设置团体名为public的网管工作者对该路由器的操作树根为可读。router(config)#Snmp-servercommunityhnnx
rw;设置团体名为hnnx的网管工作者对该路由器的操作树根为可读可写。router(config)#EndShutdown关闭端口例:router>enrouter#conft终端配置Router(config)#intFastEthernet0/0router(config-if)#shutdown关闭端口,使接口的line状态处于down,此时接口不接收发任何数据。在配好了ip的时,一般端口默认是没有开启的router>enrouter#conft终端配置例:router(config)#intFastEthernet0/1进入端口FastEthernet0/1router(config-if)#shutdown关闭端口FastEthernet0/1noshutdowm
激活端口router>enrouter#conft终端配置例:router(config)#intFastEthernet0/1进入端口FastEthernet0/1例:router(config-if)#noshutdown激活端口FastEthernet0/1router#shownanhuan#show
intFastEthernet0/1FastEthernet0/1isup,lineprotocolisupaddressis00e0.0f27.6401Interfaceaddressis11.125.131.201/28MTU1500bytes,BW100000kbit,DLY10usecEncapsulationARPA,loopbacknotsettelnet(打开一个telnet连接)#telnetA.B.C.D远端系统的IP地址#telnetA.B.C.D远端广域网IP地址远程登录(远程用户必须设有ena登陆密码)例c:>telnet远程IP地址11.125.230.190上蔡南环IPUserAccessVerificationUsername:zmdnx
Password:******(用usernamezmdnxpassword0******设置的登陆密码)
telnet(打开一个telnet连接)WelcometoDCRMulti-Protocol2650SeriesRouternanhuan>nanhuan>enaPassword:******(用enablepassword0******设置的特权密码)nanhuan#Show显示配置与状态#showrunning-config
显示当前配置信息!version1.3.2Nservicetimestampslogdateservicetimestampsdebugdatenoservicepassword-encryption!hostnamenanhuan!!usernamezmdnxpassword0******!#showrunning-configaaaauthenticationlogindefaultlocalenablepassword0******level15!!!interfaceFastEthernet0/0
ipaddress11.125.194.241255.255.255.240noipdirected-broadcast!interfaceFastEthernet0/1
ipaddress11.125.131.201255.255.255.248noipdirected-broadcast
#showrunning-config!interfaceSerial0/2
ipaddress11.125.230.190255.255noipdirected-broadcastencapsulationppp!interfaceSerial0/3
ipaddress11.125.232.190255.255noipdirected-broadcastencapsulationppp!interfaceAsync0/0noipaddressnoipdirected-broadcast!#showrunning-config!iproute11.125.0.0255.255.255.0iproute11.125.0.0255.255.255.0iproute11.125.32.0255.255.224.0iproute11.125.32.0255.255.224.0iproute11.124.32.0255.255.224.0iproute11.124.32.0255.255.224.0iproute11.0.32.0255.255.224.01iproute11.0.32.0255.255.224.01iproute11.125.128.0255.255.254.iproute11.125.128.0255.255.254.iproute11.124.128.0255.255.254.iproute11.124.128.0255.255.254.#showrunning-configiproute11.0.128.0255.255.254.0iproute11.0.128.0255.255.254.0iproute11.124.80.0255.255.255.2iproute11.124.80.0255.255.255.2iproute11.125.81.0255.255.255.2iproute11.125.81.0255.255.255.2!gateway-cfggatewaykeepAlive60shutdown!#showrunning-config!snmp-servercommunitypublicROsnmp-servercommunityhnnxRW!ivr-cfg!!h323proxy-cfgshutdown!nanhuan##showint
FastEthernet0/0查看接口FastEthernet0/0信息nanhuan_config#show
intFastEthernet0/0FastEthernet0/0isup,lineprotocolisupaddressis00e0.0f27.6400
Interfaceaddressis11.125.194.241/28MTU1500bytes,BW100000kbit,DLY10usecEncapsulationARPA,loopbacknotset
KeepalivenotsetARPtype:ARPA,ARPtimeout04:00:0060secondinputrate36bits/sec,0packets/sec!#showint
FastEthernet0/060secondoutputrate0bits/sec,0packets/sec!
Full-duplex,100Mb/s,100BaseTX,21646ii,13282oi21646packetsinput,1486142bytes,200rx_freebufReceived18383unicasts,0lowmark,21646ri,0inputerrors0overrun,0CRC,0framing,0busy,0long,0discard,0throttles13282packetsoutput,2391863bytes,50tx_freebd,0outputerrors0underrun,0collisions,0latecollisions,0deferred,0reTxexpire0resets,0lostcarrier,0nocarrier0gracestop0buserror0outputbufferfailures,0outputbuffersswappedout0txerrors!nanhuan_config##showip
intbrief查看接口状态nanhuan#show
ip
intbriefInterfaceIP-AddressMethodProtocol-StatusAsync0/0unassignedmanualdownSerial0/211.125.230.190manualupSerial0/311.125.232.190manualdownFastEthernet0/011.125.194.241manualupFastEthernet0/111.125.131.201manualupnanhuan##showversion查看版本及引导信息nanhuan#showversionDigitalchina
InternetworkOperatingSystemSoftware2650SeriesSoftware,Version1.3.2N(FULL),RELEASESOFTWARECopyright(c)1996-2004byChinaDigitalchinaCO.LTDCompiled:2005-8-2020:41:59bysystem,Imagetext-base:0x6004ROM:SystemBootstrap,Version0.4.3Serialnum:8IRT74106518000107,IDnum:011393Systemimagefileis"DCR26V1.3.2N.bin"#showversion查看版本及引导信息DCR-2650PowerPCProcessor65536Kbytesofmemory,16384Kbytesofflashnanhuanuptimeis49:10:09:38,Thecurrenttime:2002-2-1910:9:38Slot0:SCCSlotPort0:10/100Mbpsfull-duplexEthernetPort1:10/100Mbpsfull-duplexEthernetPort2:2Mfull-duplexSerialPort3:2Mfull-duplexSerialnanhuan#line物理线路设置router(config)#linevty04设置0-4个用户可以telnet远程登陆
router(config)
#
password0******(为zmdnx用户设置口令)router(config)#Exitline例:router#conft%Enterconfigurationcommands,oneperline.EndwithCNTL+Z.router(config)#line
vty04router(config-line)#password0hnnxrouter(config-line)#exitrouter(config)#int
接口(进接口模式)接口分为:以太网接口Ethernet;同步串行接口serial;虚拟接口virtual-template;例:serial1/0端口中,1代表PORT端口号,0代表PORT端口号的第0个接口,但也有从1开始设置的接口。例:(config)#interfaceFastEthernet0/1
ipaddress11.132.192.65255.255.255.240*/E0网关*/例(config)#interfaceSerial0/2
ipaddress11.132.230.18*/本端广域网地址*/255.255.255.240aaa远程登录认证先配置AAA远程登录认证
router(config)#
aaaauthenticationlogindefaultlocal设置登陆验证默认为采用先ACS服务器再本地验证
router(config)#
Usernameenable登陆用户password0登陆密码******enc协议命令进入需要封装或更改协议的端口router#configRouter(config)#interfaceserial1/0Router(config-serial1/0)#encpppRouter(config)#noshutdownip设置IP地址例:1、(config)#interfaceFastEthernet0/02、(config-FastEthernet0/0)#ipaddress11.130.131.25255.255.255.248
/*设置路由器IP地址/3、(config-FastEthernet0/0)#exit4、(config-FastEthernet0/0)#showintFastEthernet0/0FastEthernet0/0isup,lineprotocolisupaddressis00e0.0f27.6400Interfaceaddressis11.130.131.25/28MTU1500bytes,BW100000kbit,DLY10usecEncapsulationARPA,loopbacknotset
ip设置例:1、(config)#interfaceFastEthernet0/22、(config-FastEthernet0/2)#ipaddress192.169.1.1255.255.255.240
/*设置路由器IP地址/3、(config-FastEthernet0/2)#showintFastEthernet0/24、(config-FastEthernet0/2)#exitNo撤销命令如果你想撤销一个命令或恢复为缺省设置,可以在大多数命令前加关键字no。
1、(config)#interfaceFastEthernet0/22、(config-FastEthernet0/2)#ipaddress192.169.1.1255.255.255.240
/*设置路由器IP地址/3、(config-FastEthernet0/2)#no
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 地勘现场工作制度
- 化验科工作制度
- 公开工作制度
- 儿童工作制度
- 一窗通工作制度
- 厨师安全培训内容
- 煤矿安全意识培训课件
- 金属冶炼安全培训
- 真空熔炼安全培训
- 危险化学品安全知识培训-现代卡通插画风格
- 2026年浙江机电职业技术学院单招职业技能考试备考试题带答案解析
- 义务教育道德与法治课程标准日常修订版(2022年版2025年修订)
- 2026年商丘学院单招(计算机)测试备考题库必考题
- 2025年卫生管理初级师考试真题及答案
- 企业信息系统维护手册与模板
- (2025年)政工师职称考试题库及答案
- 残疾人证核发与管理
- 安全员题库宝破解版及答案解析
- 《政务信息系统运行维护费用定额测算方法》
- 2025-2030胎教音乐对婴儿脑波影响的医学测量技术发展
- 5年(2021-2025)北京高考数学真题分类汇编:专题03 三角函数与解三角形(解析版)
评论
0/150
提交评论