案例二路由器的基本配置.docx
- 文档编号:10318696
- 上传时间:2023-02-10
- 格式:DOCX
- 页数:14
- 大小:26.10KB
案例二路由器的基本配置.docx
《案例二路由器的基本配置.docx》由会员分享,可在线阅读,更多相关《案例二路由器的基本配置.docx(14页珍藏版)》请在冰豆网上搜索。
案例二路由器的基本配置
案例二路由器的基本配置
【背景描述】
你是某公司新进的网管:
公司要求你熟悉网络产品,公司采用全系列锐捷网络产品,首先要求你登录路由器,了解、掌握路由器的命令操作。
为了进行区分和管理,公司要求你进行路由器设备的配置,配置路由器登录时的描述信息。
并过查看路由器的系统和配置信息,了解公司的设备和网络环境。
b5E2RGbCAP
你在一家公司就职,负责组建一个省级广域网络。
现工程经理要求你根据实际网络需求,对路由器的端口配置基本的参数。
p1EanqFDPw
【实现功能】
熟练掌握路由器的命令行操作模式。
配置路由器的设备名称和每次登录时提示相关信息。
给路由器的物理接口配置IP地址,并在DCE端配置时钟频率,限制端口带宽。
查看交换机的各项参数。
【使用设备】
设备类型
设备名称
设备数量
交换机
router
1
路由器
三层交换机
双绞线
1
计算机
pc
1
【案例拓扑】
【实现步骤】
步骤1路由器命令行操作模式的进入。
Red-Giant>enable!
进入特权模式
Red-Giant#configureterminal!
进入全局模式
Red-Giant(config>#interfacefastEthernet0!
进入路由器F0的接口模式DXDiTa9E3d
Red-Giant(config-if>#exit!
退回到上一级操作模式
Red-Giant(config-if>#end!
直接退回到特权模式
步骤2路由器命令行基本功能
Red-Giant>?
!
显示当前模式下所有可执行的命令
Execcommands:
exitExitfromtheEXEC
quit
access-enableCreateatemporaryAccess-ListentryRTCrpUDGiT
connectOpenaterminalconnection
disableTurnoffprivilegedcommands
disconnectDisconnectanexistingnetworkconnection5PCzVD7HxA
enableTurnonprivilegedcommands
helpDescriptionoftheinteractivehelpsystemjLBHrnAILg
lockLocktheterminal
loginLoginasaparticularuser
logoutExitfromtheEXEC
mrinfoRequestneighborandversioninformationfromamulticastxHAQX74J0X
router
mstatShowstatisticsaftermultiplemulticasttraceroutesLDAYtRyKfE
mtraceTracereversemulticastpathfromdestinationtosourceZzz6ZB2Ltk
name-connectionNameanexistingnetworkconnectiondvzfvkwMI1
padOpenaX.29PADconnection
pingSendechomessages
pppStartIETFPoint-to-PointProtocol(PPP>rqyn14ZNXI
resumeResumeanactivenetworkconnectionEmxvxOtOco
rloginOpenanrloginconnection
showShowrunningsysteminformation
slipStartSerial-lineIP(SLIP>
systatDisplayinformationaboutterminallinesSixE2yXPq5
telnetOpenatelnetconnection
terminalSetterminallineparameters
tracerouteTraceroutetodestination
x3SetX.3parametersonPAD
Red-Giant#co?
!
显示当前模式下所有以co开头的命令
configureconnectcopy
Red-Giant#copy?
!
显示copy命令后可执行的参数
running-configCopyfromcurrentsystemconfiguration6ewMyirQFL
startup-configCopyfromstartupconfiguration
tftpCopyfromaTFTPserver
命令的简写
Red-Giant#confter!
路由器命令支持的简写,该命令代表configureterminalkavU42VRUs
命令的自动补齐
Red-Giant#conf!
路由器支持命令的自动补齐
Red-Giant#configure
Configuringfromterminal,memory,ornetwork[terminal]?
y6v3ALoS89
Red-Giant(config>#interfacefastEthernet0
Red-Giant(config-if>#^Z!
ctrl+Z退回到特权模式M2ub6vSTnP
Red-Giant#
Red-Giant#ping1.1.1.1
!
一个ping不存在的地址,显示如下,有的显示可能不是这种形式
%Unrecognizedhostoraddress,orprotocolnotrunning.0YujCfmUCw
这儿显示的是一个错误的地址,有的时候发现找不到所要ping的地址找不到的时候显示的是超时的结果.
步骤3路由器设备名称的配置
Red-Giant>en
Red-Giant>enable
Red-Giant#configureterminal
Red-Giant(config>#hostnameRouterA!
配置路由器设备名称为RouterAeUts8ZQVRd
步骤4路由器每日提示信息的配置.
RouterA(config>#bannermotd&welcometorouterA,ifyouareadmin,youcanconfigit,ifyouarenotadmin,pleaseexit&!
配置每日提示信息&为终止符sQsAEJkW5T
步骤5路由器A的端口基本配置
Router>enable
Router#configuret
Router(config>#hostnameRa
Ra(config>#interfaceserial0!
进入S0的端口模式
Ra(config-if>#ipaddress1.1.1.1255.255.255.0!
配置端口的IP地址GMsIasNXkA
Ra(config-if>#bandwidth512!
配置端口的带宽为512KB
Ra(config-if>#noshutdown!
开启端口,使端口转发数据
Ra(config-if>#
步骤6路由器B的端口配置
Red-Giant>enable
Red-Giant#configureterminal
Red-Giant(config>#hostnameRb
Rb(config>#interfaceserial0!
进入S0端口模式
Rb(config-if>#ipaddress1.1.1.2255.255.255.0!
配置端口的IP地址TIrRGchYzg
Rb(config-if>#clockrate64000!
在DCE接口上配置时钟频率为640007EqZcWLZNX
Rb(config-if>#bandwidth512!
配置端口的带宽为512KB
Rb(config-if>#noshutdown!
开启端口
步骤7查看路由器端口的配置参数
Ra#showinterfacesserial0!
查看Raserial0接口的状态
Serial0isup,lineprotocolisup!
接口的状态是否为uplzq7IGf02E
HardwareisHDLC4530A
Internetaddressis1.1.1.1/24!
接口的IP地址zvpgeqJ1hk
MTU1500bytes,BW512Kbit,DLY20000usec,rely255/255,load1/255NrpoJac3v1
EncapsulationHDLC,loopbacknotset,keepaliveset(10sec>1nowfTG4KI
Lastinput00:
00:
04,output00:
00:
09,outputhangneverfjnFLDa5Zo
Lastclearingof"showinterface"countersnever
Inputqueue:
0/75/0(size/max/drops>。
Totaloutputdrops:
0tfnNhnE6e5
Queueingstrategy:
weightedfair
Outputqueue:
0/64/0(size/threshold/drops>
Conversations0/1(active/maxactive>
ReservedConversations0/0(allocated/maxallocated>HbmVN777sL
5minuteinputrate0bits/sec,0packets/sec
5minuteoutputrate0bits/sec,0packets/sec
936packetsinput,132112bytes,0nobuffer
Received936broadcasts
0inputerrors,0CRC,0frame,0overrun,0ignored,0abortV7l4jRB8Hs
286packetsoutput,6864bytes,0underruns
0outputerrors,0collisions,20interfaceresets
0outputbufferfailures,0outputbuffersswappedout83lcPA59W9
0carriertransitions
DCD=upDSR=upDTR=upRTS=upCTS=up
Ra#showipinterfaceserial0!
查看端口的IP相关属性
Serial0isup,lineprotocolisup!
物理端口为up,协议为upmZkklkzaaP
Internetaddressis1.1.1.1/24!
端口的IP地址
Broadcastaddressis255.255.255.255
Addressdeterminedbysetupcommand
MTUis1500bytes
Helperaddressisnotset
Directedbroadcastforwardingisdisabled
Outgoingaccesslistisnotset
Inboundaccesslistisnotset
ProxyARPisenabled
Securitylevelisdefault
Splithorizonisenabled
ICMPredirectsarealwayssent
ICMPunreachablesarealwayssent
ICMPmaskrepliesareneversent
IPfastswitchingisenabled
IPfastswitchingonthesameinterfaceisenabled
IPmulticastfastswitchingisenabled
RouterDiscoveryisdisabled
IPoutputpacketaccountingisdisabled
IPaccessviolationaccountingisdisabled
TCP/IPheadercompressionisdisabled
Policyroutingisdisabled
Rb#showinterfacesserial0!
查看路由器Rb的serial0接口的状态
Serial0isup,lineprotocolisup
HardwareisHDLC4530A
Internetaddressis1.1.1.2/24
MTU1500bytes,BW512Kbit,DLY20000usec,rely255/255,load1/255AVktR43bpw
EncapsulationHDLC,loopbacknotset,keepaliveset(10sec>ORjBnOwcEd
Lastinput00:
00:
01,output00:
00:
05,outputhangnever2MiJTy0dTT
Lastclearingof"showinterface"countersnever
Inputqueue:
0/75/0(size/max/drops>。
Totaloutputdrops:
0gIiSpiue7A
Queueingstrategy:
weightedfair
Outputqueue:
64631/64/0(size/threshold/drops>
Conversations0/2(active/maxactive>
ReservedConversations0/0(allocated/maxallocated>uEh0U1Yfmh
5minuteinputrate0bits/sec,0packets/sec
5minuteoutputrate0bits/sec,0packets/sec
302packetsinput,7648bytes,0nobuffer
Received297broadcasts
0inputerrors,0CRC,0frame,0overrun,0ignored,0abortIAg9qLsgBX
1282packetsoutput,177692bytes,0underruns
0outputerrors,0collisions,158interfaceresetsWwghWvVhPE
0outputbufferfailures,0outputbuffersswappedoutasfpsfpi4k
0carriertransitions
DCD=upDSR=upDTR=upRTS=upCTS=up
Rb#
Rb#showipinterfaces0!
查看该端口的IP相关属性
Serial0isup,lineprotocolisup
Internetaddressis1.1.1.2/24
Broadcastaddressis255.255.255.255
Addressdeterminedbysetupcommand
MTUis1500bytes
Helperaddressisnotset
Directedbroadcastforwardingisdisabled
Outgoingaccesslistisnotset
Inboundaccesslistisnotset
ProxyARPisenabled
Securitylevelisdefault
Splithorizonisenabled
ICMPredirectsarealwayssent
ICMPunreachablesarealwayssent
ICMPmaskrepliesareneversent
IPfastswitchingisenabled
IPfastswitchingonthesameinterfaceisenabled
IPmulticastfastswitchingisenabled
RouterDiscoveryisdisabled
IPoutputpacketaccountingisdisabled
IPaccessviolationaccountingisdisabled
TCP/IPheadercompressionisdisabled
Policyroutingisdisabled
步骤8验证测试
Ra#pi
Ra#ping1.1.1.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchoesto1.1.1.2,timeoutis2seconds:
ooeyYZTjj1
Successrateis100percent(5/5>,round-tripmin/avg/max=28/28/32msBkeGuInkxI
步骤9路由器端口的基本配置
Red-Giant>enable
Red-Giant#configure
Configuringfromterminal,memory,ornetwork[terminal]?
PgdO0sRlMo
Red-Giant(config>#hostnameRouterA
RouterA(config>#INterfacefastEthernet0
RouterA(config-if>#ipaddress192.168.1.1255.255.255.03cdXwckm15
RouterA(config-if>#noshutdown
RouterA#showversion!
查看路由器的版本信息
Red-GiantOperatingSystemSoftware
RGNOS(tm>RELEASESOFTWARE,Version6.14(9coll>!
操作系统版本号h8c52WOngM
Copyright(c>1999-2005byStartNetworkTechnolgyco.,Ltd.v4bdyGious
Compiled2005-03-1615:
36
ROM:
StartBOOTROMV1.8build8
RouterAuptimeis5minutes
StartRed-GiantR2600seriesR2624
Samsung4530(ARM7TDMI>processorwith26624K/6144Kbytesofmemory.J0bm4qMpJ9
ProcessorboardID00000063,withhardwarerevision00000003XVauA9grYP
Red-GiantSC4530(ARM7TDMI>R2624platform.
Controllers/Modulercardslist:
Samsung453010/100Methernetcontroller.
M2602AScardinslot0
cpu:
0186hwver:
0300swver:
0300
Samsung4530HDLCscontroller.
-----------------------------------------------
4FastEthernet/IEEE802.3interfaces.
4Serialnetworkinterfaces.
32Kbytesofnon-volatileconfigurationmemory.
8192KbytesofprocessorboardSystemflash(Read/Write>bR9C6TJscw
RouterA#showiproute
Codes:
C-connected,S-static,R-RIP
O-OSPF,IA-OSPFinterarea
E1-OSPFexternaltype1,E2-OSPFexternaltype2pN9LBDdtrd
Gatewayoflastresortisnotset
C192.168.1.0/24isdirectlyconnected,FastEthernet0DJ8T7nHuGT
RouterA#showrunning-config!
查看路由器当前生效的配置信息
Buildingconfiguration...
Currentconfiguration:
!
version6.14(9coll>
!
hostname"RouterA"!
主机名
!
ipsubnet-zero
!
interfaceFastEthernet0
ipaddress192.168.1.1255.255.255.0!
F0接口的ip地址QF81D7bvUA
!
interfaceFastEthernet1
noipaddress
shutdown
!
interfaceFastEthernet2
noipaddress
shutdown
!
interfaceFastEthernet3
noipaddress
shutdown
!
interfaceSerial0
noipaddress
shutdown
!
interfaceSerial1
noipaddress
shutdown
!
interfaceSerial2
noipaddress
shutdown
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 案例 路由器 基本 配置