isco 路由器基础配置.docx
- 文档编号:12806694
- 上传时间:2023-06-08
- 格式:DOCX
- 页数:16
- 大小:65.67KB
isco 路由器基础配置.docx
《isco 路由器基础配置.docx》由会员分享,可在线阅读,更多相关《isco 路由器基础配置.docx(16页珍藏版)》请在冰点文库上搜索。
isco路由器基础配置
isco 路由器基础配置
实验1:
Cisco路由器基础配置
路由器模式概述:
Router>用户模式,通常用来查看统计信息,但不能修改路由器的设置。
Router#特许模式,可以查看并修改路由器的配置,通常在这里运行show命令。
Router(config)#全局模式,在这里修改当前运行配置中的内容。
Router(config-if)#接口模式,用来配置路由器的物理接口和环回接口。
Router(config-subif)#子接口模式,用来配置在路由器中创建的逻辑接口。
Router(config-line)#控置台接口模式,通常用来配置用户模式口令,如Telnet的登录密码。
Router(config-router)#路由协议接口模式,在这里配置路由协议,如RIP、IGRP等。
1.登录路由器的必要配置:
Router>enable
Router#configureterminal
Router(config)#noipdomainlookup//关闭动态的域名解析。
Router(config)#lineconsole0
Router(config-line)#exec-timeout00//关闭控置台的会话超时,以保证不会被踹出去。
Router(config-line)#loggingsynchronous//关闭日志同步,阻止控置台的一些提示信息。
Router(config-line)#exit
Router(config)#
//都是托速度的东西,关掉比较好。
2.路由器基本配置
Router(config)#hostnameR1//修改路由器的标识。
R1(config)#bannermotd#
ThisisCiscoRouter2620.//配置日期信息标志区(MOTD),登录到路由器时显示。
#
R1(config)#
R1(config)#bannerexec#//配置执行标志区,如Telnet到路由器时显示的欢迎信息。
TelnettoRouter2620!
#
R1(config)#end
R1#clockset15:
05:
3325February2006//配置时钟。
R1#
3.查看路由器的信息
R1#
R1#showclock//查看配置的时钟。
R1#shhistory//查看在路由器上最近输入的命令。
R1#shterminal//查看终端历史记录的大小。
R1#terminalhistorysize22//将历史记录的大小改为22条。
R1#shversion//显示路由器的版本信息。
R1#shsession//显示会话记录,经常在终端上使用。
R1#shstartup-config//显示下次路由器重新加载时将要使用的配置。
R1#shrunning-config//显示当前的配置信息。
R1#copyrunstar//保存当前的配置作为启动时的配置。
4.设置口令
R1#conft
R1(config)#enablepasswordtree//配置进入特权模式的密码、明文。
R1(config)#enablesecrettree1//功能同上,权限更高、密文。
R1(config)#linecon0
R1(config-line)#passwordtree//设置登录到路由器的密码,出现在进用户模式之前。
R1(config-line)#login//启用登录。
R1(config-line)#linevty04//为Telnet访问路由器设置5条线路0-4。
R1(config-line)#passtree//设置Telnet到路由器的密码,如果不设置Telnet
R1(config-line)#login服务将无法启用。
R1(config-line)#lineaux0
R1(config-line)#passtree//设置辅助接口密码。
R1(config-line)#login
R1(config-line)#end
R1#
R1#shrun//查看配置。
R1#conft
R1(config)#servicepassword-encryption//加密口令
R1(config)#Ctrl+Z//end、exit、Ctrl+Z为三种退出命令。
R1#shrun//显示结果,口令以被加密。
R1#logout//退出控置台,验证密码配置,也可使用exit。
5.取消密码
R1#conft
R1(config)#noenablepassword
R1(config)#noensecret
R1(config)#linecon0
R1(config-line)#nopass
R1(config-line)#nologin
R1(config-line)#linevty04//Ctrl+A将光标移到本行的开始位置。
R1(config-line)#nopass//Ctrl+E将光标移到本行的末尾。
R1(config-line)#nolog
R1(config-line)#lineaux0
R1(config-line)#nopass
R1(config-line)#nolog
R1(config-line)#end
R1#shrun
R1#
R`#erasestartup-config//删除启动配置文件。
R1#reload//重启路由器。
――
实验:
R1SystemBootstrap,Version12.1(3r)T2,RELEASESOFTWARE(fc1)
Copyright(c)2000byciscoSystems,Inc.
PT1001(PTSC2005)processor(revision0x200)with60416K/5120Kbytesofmemory
Selfdecompressingtheimage:
##########################################################################[OK]
RestrictedRightsLegend
Use,duplication,ordisclosurebytheGovernmentis
subjecttorestrictionsassetforthinsubparagraph
(c)oftheCommercialComputerSoftware-Restricted
RightsclauseatFARsec.52.227-19andsubparagraph
(c)
(1)(ii)oftheRightsinTechnicalDataandComputer
SoftwareclauseatDFARSsec.252.227-7013.
ciscoSystems,Inc.
170WestTasmanDrive
SanJose,California95134-1706
CiscoInternetworkOperatingSystemSoftware
IOS(tm)PT1000Software(PT1000-I-M),Version12.2(28),RELEASESOFTWARE(fc5)
TechnicalSupport:
Copyright(c)1986-2005byciscoSystems,Inc.
CompiledWed27-Apr-0419:
01bymiwang
PT1001(PTSC2005)processor(revision0x200)with60416K/5120Kbytesofmemory
.
ProcessorboardIDPT0123(0123)
PT2005processor:
partnumber0,mask01
Bridgingsoftware.
X.25software,Version3.0.0.
4FastEthernet/IEEE802.3interface(s)
2Low-speedserial(sync/async)networkinterface(s)
32Kbytesofnon-volatileconfigurationmemory.
63488KbytesofATACompactFlash(Read/Write)
---SystemConfigurationDialog---
Continuewithconfigurationdialog?
[yes/no]:
n
PressRETURNtogetstarted!
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostnameR1
R1(config)#intfa1/0
R1(config-if)#noshut
%LINK-5-CHANGED:
InterfaceFastEthernet1/0,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet1/0,changedstatetoup
R1(config-if)#ipaddress192.168.1.1255.255.255.0
R1(config-if)#intse2/0
R1(config-if)#ipaddress192.168.3.1255.255.255.0
R1(config-if)#clockrate64000
R1(config-if)#noshutdown
%LINK-5-CHANGED:
InterfaceSerial2/0,changedstatetodown
R1(config-if)#
%LINK-5-CHANGED:
InterfaceSerial2/0,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial2/0,changedstatetoup
R1(config-if)#end
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
R1#showiproute
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODR
P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
C 192.168.1.0/24isdirectlyconnected,FastEthernet1/0
C 192.168.3.0/24isdirectlyconnected,Serial2/0
R1#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
R1(config)#iproute192.168.2.0255.255.255.0192.168.3.2
R1(config)#exit
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
R1#showiproute
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODR
P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
C 192.168.1.0/24isdirectlyconnected,FastEthernet1/0
S 192.168.2.0/24[1/0]via192.168.3.2
C 192.168.3.0/24isdirectlyconnected,Serial2/0
R1#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
R1(config)#noiproute192.168.2.0255.255.255.0192.168.3.2
R1(config)#noiproute192.168.2.0255.255.255.0192.168.3.2
%Nomatchingroutetodelete
R1(config)#iproute192.168.2.0255.255.255.0192.168.3.2
R1(config)#exit
R1#
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
R1#showiproute
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea
*-candidatedefault,U-per-userstaticroute,o-ODR
P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
C 192.168.1.0/24isdirectlyconnected,FastEthernet1/0
S 192.168.2.0/24[1/0]via192.168.3.2
C 192.168.3.0/24isdirectlyconnected,Serial2/0
R1#
R1#
R2Copyright(c)2000byciscoSystems,Inc.
PT1001(PTSC2005)processor(revision0x200)with60416K/5120Kbytesofmemory
Selfdecompressingtheimage:
##########################################################################[OK]
RestrictedRightsLegend
Use,duplication,ordisclosurebytheGovernmentis
subjecttorestrictionsassetforthinsubparagraph
(c)oftheCommercialComputerSoftware-Restricted
RightsclauseatFARsec.52.227-19andsubparagraph
(c)
(1)(ii)oftheRightsinTechnicalDataandComputer
SoftwareclauseatDFARSsec.252.227-7013.
ciscoSystems,Inc.
170WestTasmanDrive
SanJose,California95134-1706
CiscoInternetworkOperatingSystemSoftware
IOS(tm)PT1000Software(PT1000-I-M),Version12.2(28),RELEASESOFTWARE(fc5)
TechnicalSupport:
Copyright(c)1986-2005byciscoSystems,Inc.
CompiledWed27-Apr-0419:
01bymiwang
PT1001(PTSC2005)processor(revision0x200)with60416K/5120Kbytesofmemory
.
ProcessorboardIDPT0123(0123)
PT2005processor:
partnumber0,mask01
Bridgingsoftware.
X.25software,Version3.0.0.
4FastEthernet/IEEE802.3interface(s)
2Low-speedserial(sync/async)networkinterface(s)
32Kbytesofnon-volatileconfigurationmemory.
63488KbytesofATACompactFlash(Read/Write)
---SystemConfigurationDialog---
Continuewithconfigurationdialog?
[yes/no]:
n
PressRETURNtogetstarted!
Router>en
Router#conft
Enterconfigurationcommands,oneperline. EndwithCNTL/Z.
Router(config)#hostnameR2
R2(config)#intfa1/0
R2(config-if)#noshut
%LINK-5-CHANGED:
InterfaceFastEthernet1/0,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet1/0,changedstatetoup
R2(config-if)#ipaddress192.168.2.1255.255.255.0
R2(config-if)#intse2/0
R2(config-if)#ipaddress192.168.3.2255.255.255.0
R2(config-if)#end
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
R2#showiproute
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP
i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISin
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- isco 路由器基础配置 路由器 基础 配置
![提示](https://static.bingdoc.com/images/bang_tan.gif)