




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
網絡知識培訓普天潤匯客戶服務部詹玉剛E_mail:zhanyg@網絡知識培訓普天潤匯客戶服務部詹玉剛1第二部分Cisco路由器操作基礎(IOS)IP路由(IPRouting)二層交換及虛擬局域網(VLAN)路由器設備管理第二部分Cisco路由器操作基礎(IOS)2Cisco路由器操作基礎(IOS)Cisco路由器操作基礎(IOS)3網絡技術培訓(第二部分)一、Cisco路由器操作基礎(IOS)CiscoIOS--CiscoInternetworkOperatingSystem,運行在Cisco路由器和一些交換機上的操作系統(tǒng)。
Cisco路由器的兩種配置方式setupmode和CiscoIOSCommandLineInterface(CLI)模式
理解和使用CiscoInternetworkOperatingSystem(IOS)
連接到路由器
啟動路由器
登陸到路由器
理解路由器提示符意思
理解CLI提示符意思
執(zhí)行編輯和幫助屬性
收集路由器基本信息
設置路由器密碼
設置路由器標語
配置接口
設置主機名
配置接口描述
檢驗和保存路由器配置文件
檢驗路由配置網絡技術培訓(第二部分)一、Cisco路由器操作基礎(IO4網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)連接到Cisco路由器--ConnectingtoCiscoRouter通過三種方式連接到Cisco路由器
1、控制口(console口)
2、輔助口(aux口)
3、Telnet方式網絡互連(Internetworking)一、Cisco路5網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouter路由器的啟動順序RmonEEPROMNVRAMRAM加電自檢(POST)裝載IOS裝載配置文件運行應用進程網絡互連(Internetworking)一、Cisco路由6網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouter路由器的啟動順序Step1、將IOS由flashmemory(EEPROM)裝載入RAM網絡互連(Internetworking)一、Cisco路由7網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouter路由器的啟動順序Step2、運行IOS網絡互連(Internetworking)一、Cisco路由8網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouter路由器的啟動順序Step3、顯示從POST獲得的路由器的基本信息網絡互連(Internetworking)一、Cisco路由9網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouter路由器的Setup配置模式網絡互連(Internetworking)一、Cisco路由10網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouter路由器的Setup配置模式網絡互連(Internetworking)一、Cisco路由11網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouter路由器的Setup配置模式網絡互連(Internetworking)一、Cisco路由12網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟動Cisco路由器--BringupCiscoRouterCiscoCommandLine(CLI)用戶接口網絡互連(Internetworking)一、Cisco路由13網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)登陸到Cisco路由器--LoggingintoCiscoRouterRouter>#用戶執(zhí)行模式--userexecmode(usermode)#Router>enableRouter##特權模式--privilegedmode#Router#disable
Router>#返回usermode#Router>logout#退出console#Routercon0isnowavailable
PressENTERtogetstarted.進入全局配置模式--GlobalConfigurationModeRouter#config
Configuringfromterminal,memory,ornetwork[terminal]?[Enter]Router(config)#Router#configt
Router(config)#網絡互連(Internetworking)一、Cisco路由14網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)CLI提示符接口(interface)配置模式Router(config)#interface?
AsyncAsyncinterface
BVIBridge-GroupVirtualInterface
FastEthernetFastEthernetInterface
SerialSerial
……………….Router(config)#interfacefastethernet0/0
Router(config-if)#接口配置模式Router(config)#interfacefastethernet0/0.?
<0-4294967295>FastEthernetinterfacenumber
Router(config)#interfacefastethernet0/0.1
Router(config-subif)#子接口(interface)配置模式子接口配置模式網絡互連(Internetworking)一、Cisco路由15網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)CLI提示符Line配置命令Router(config)#line?
auxAuxiliaryline
consolePrimaryterminalline
ttyTerminalcontroller
vtyVirtualterminal
……………….Router(config)#lineconsole0
Router(config-line)#line配置模式Router(config)#routerrip
Router(config-router)#路由協議配置模式路由協議配置命令網絡互連(Internetworking)一、Cisco路由16網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)編輯(EDITING)和幫助(HELP)功能Router#?
Execcommands:
access-enableCreateatemporaryAccess-listentry
access-profileApplyuser-profiletointerface
access-templateCreateatemporaryAccess-listentry
……………….Router#c?
clearclockconfigureconnectcopy
Router#clock?
Setsettimeanddate
Router#clockset?
hh:mm:ssCurrenttime
Router#clockset10:30:20?
<1-31>Dayofmonth
MONTHmonthofyear
Router#clockset10:30:2028?
MONTHMonthofyear
Router#clockset10:30:2028august?
<1993-2035>Year
Router#clockset10:30:2028august2003?
<cr>
Router##幫助命令#Router#c?
clearclockconfigureconnectcopy
Router#clock?
Setsettimeanddate
Router#clockset?
hh:mm:ssCurrenttime
Router#clockset10:30:20?
<1-31>Dayofmonth
MONTHmonthofyear
Router#clockset10:30:2028?
MONTHMonthofyear
Router#clockset10:30:2028august?
<1993-2035>Year
Router#clockset10:30:2028august2003?
<cr>
Router#網絡互連(Internetworking)一、Cisco路由17網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)鍵入命令返回提示Router#c?
clearclockconfigureconnectcopy
Router#clock?
Setsettimeanddate
Router#clockset?
hh:mm:ssCurrenttime
Router#clockset10:30:20?
<1-31>Dayofmonth
MONTHmonthofyear
Router#clockset10:30:2028?
MONTHMonthofyeaRouter#clockset10:30:20
%Incompletecommand.
Router(config)#access-list110permithost
%Invalidinputdetectedat‘^’marker
Router#showte
%Ambiguouscommand:”showte”
Router#showte?
Tech-supporttemplateterminal#表明命令未完成#^#表明命令輸入錯誤##表明命令不明確#網絡互連(Internetworking)一、Cisco路由18網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)高級編輯(EDITING)命令命令格式含義Ctrl+ACtrl+BCtrl+EEsc+BCtrl+FEsc+FCtrl+DBackSpaceCtrl+RCtrl+UCtrl+WCtrl+ZTab將光標移到行頭部將光標移到行末尾將光標后移一個單詞將光標后移一個字母將光標前移一個字母將光標前移一個單詞刪除光標前的一個字母刪除光標前的一個字母重新顯示上一行刪除光標所在行刪除一個單詞結束配置模式返回執(zhí)行(exec)模式結束一個鍵入的命令網絡互連(Internetworking)一、Cisco路由19網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)歷史(history)命令命令格式含義Ctrl+P或ShowterminalCtrl+N或ShowhistoryTerminalhistorysize顯示上最后鍵入的一條命令顯示上一條命令列出10個鍵入的命令列出terminal配置和historysize大小改變history緩存大小,最大256網絡互連(Internetworking)一、Cisco路由20網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)showhistory命令Router#showhistory
en
shhistory
showterminal
shcdpnei
shver
shflash
shintfa0
shhistory
shints0/0
shints0/1Terminalhistorysize命令Router#terminalhistorysize25網絡互連(Internetworking)一、Cisco路由21網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)收集基本的路由信息命令表明運行在路由器中的IOS版本表明運行在路由器中的rom版本表明路由器運行了多常時間,以及IOS文件名稱網絡互連(Internetworking)一、Cisco路由22網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)收集基本的路由信息命令cisco2621(MPC860)processor(revision0x101)with27648K/5120KbytesofmemoryProcessorboardIDJAB0402040J(2308906173)M860processor:partnumber0,mask49Bridgingsoftware.X.25software,Version3.0.0.2FastEthernet/IEEE802.3interface(s)2Serialnetworkinterface(s)32Kbytesofnon-volatileconfigurationmemory.8192KbytesofprocessorboardSystemflash(Read/Write)Configurationregisteris0x2102網絡互連(Internetworking)一、Cisco路由23網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)密碼設置命令
consolepassword、AUXpassword、vty(telnet)password、enablepassword
enablesecretRouter#configt
Router(config)#lineaux0
Router(config-line)#login
Router(config-line)#passwordtodd#新版本不需要這行#Router#configt
Router(config)#linecon0
Router(config-line)#login
Router(config-line)#passwordtodd1
Router(config)#linecon0
Router(config-line)#exec-time00
Router(config-line)#loggingsynchronous網絡互連(Internetworking)一、Cisco路由24網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)密碼設置命令
consolepassword、AUXpassword、vty(telnet)password、enablepassword
enablesecretRouter#configt
Router(config)#linevty04
Router(config-line)#login
Router(config-line)#passwordtoddRouter#configt
Router(config)#linevty04
Router(config-line)#nologin網絡互連(Internetworking)一、Cisco路由25網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)密碼加密Router#shrunning-config
[outputcut]
!
enablesecret5$1$rFbM$8.aXocHg6yHrM/zzeNkAT.
enablepasswordtodd1
!
[outputcut]
linecon0
passwordtodd1
Login
lineaux0
passwordtodd
Login
linevty04
passwordtodd2
Login
!
End
Router#網絡互連(Internetworking)一、Cisco路由26網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)密碼加密Router#configt
Router(config)#servicepassword-encryption
Router(config)#^Z
Router#shrunning-config
[outputcut]
!
enablesecret5$1$rFbM$8.aXocHg6yHrM/zzeNkAT.
enablepassword70835434A0D
!
[outputcut]
linecon0
password7111D160113
Login
lineaux0
password7071B2E484A
Login
linevty04
password70835434A0D
Login
!
End
Router#網絡互連(Internetworking)一、Cisco路由27網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)標語(banner)設置Router#banner?
LINEcbanner-textc,where'c'isadelimitingcharacter
execSetEXECprocesscreationbanner
incomingSetincomingterminallinebanner
loginSetloginbanner
motdSetMessageoftheDaybannerRouter(config)#bannermotd?
LINEcbanner-textc,where'c'isadelimitingcharacter
Router(config)#bannermotd#
EnterTEXTmessage.Endwiththecharacter'#'.
$Anetwork,thenyoumustdisconnectimmediately.
#
Router(config)#^Z
Router#
00:25:12:%SYS-5-CONFIG_I:Configuredfromconsolebyconsole
Router#exit
Routercon0isnowavailable
PressRETURNtogetstarted.
IfyouarenotauthorizedtobeinAnetwork,then
youmustdisconnectimmediately.
Router>網絡互連(Internetworking)一、Cisco路由28網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)路由器接口配置--網絡地址、介質類型、帶寬等命令Router(config)#intserial?
<0-9>Serialinterfacenumber
Router(config)#intserial5
Router(config-if)#
Router(config)#intethernet?
<0-0>Ethernetinterfacenumber
Router(config)#intethernet0
Router(config-if)#interfacetypenumber#以cisco2522為例#網絡互連(Internetworking)一、Cisco路由29網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)路由器接口配置--網絡地址、介質類型、帶寬等命令Router(config)#intfastethernet?
<0-1>FastEthernetinterfacenumber
Router(config)#intfastethernet0
%Incompletecommand.
Router(config)#intfastethernet0?
/
Router(config)#intfastethernet0/?
<0-1>FastEthernetinterfacenumber
Router(config)#intfa0/0
Router(config-if)#media-type?
100BaseXUseRJ45for-TX;SCFOfor–FX
MIIUseMIIconnector#以cisco2600為例##inttypeslot/port#網絡互連(Internetworking)一、Cisco路由30網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)啟用路由器接口Router#shintethernet0
Ethernet0isadministrativelydown,lineprotocolisdown
[outputcut]
Router#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#intethernet0
Router(config-if)#noshutdown
Router(config-if)#^Z
00:57:08:%LINK-3-UPDOWN:InterfaceEthernet0,changedstatetoup
00:57:09:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceEthernet0,
changedstatetoup
Router#shintethernet0
Ethernet0isup,lineprotocolisup[outputcut]#檢查端口狀態(tài)##啟用端口#網絡互連(Internetworking)一、Cisco路由31網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)配置路由器接口地址Router(config)#inte0
Router(config-if)#ipaddress
Router(config-if)#noshut
Router(config-if)#ipaddresssecondary
Router(config-if)#^ZRouter#shrun
Buildingconfiguration...
Currentconfiguration:
[outputcut]
!
interfaceEthernet0
ipaddresssecondary
ipaddress
!#配置端口IP地址##為端口配置第二個地址##校驗端口配置第#網絡互連(Internetworking)一、Cisco路由32網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)配置路由器serial接口Router#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#ints0
Router(config-if)#clockrate?
Speed(bitspersecond)
1200
2400
4800
9600
19200
38400
56000
64000
72000
125000
148000
250000
500000
<300-4000000>Chooseclockratefromlistabove.,1#配置serial端口時鐘#網絡互連(Internetworking)一、Cisco路由33網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)配置路由器serial接口Router(config-if)#ints0
Router(config-if)#clockrate64000
%Error:ThiscommandappliesonlytoDCEinterfaces
Router(config-if)#ints1
Router(config-if)#clockrate64000
Router>shcontrollerss0
HDunit0,idb=0x297DE8,driverstructureat0x29F3A0
buffersize1524HDunit0,V.35DCEcable
Router(config-if)#bandwidth?
<1-10000000>Bandwidthinkilobits
Router(config-if)#bandwidth64#配置serial端口時鐘#網絡互連(Internetworking)一、Cisco路由34網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)配置路由器主機名、描述Router#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostnameTodd
Todd(config)#hostnameAtlanta
Atlanta(config)#
#配置路由器名稱#Atlanta(config)#inte0
Atlanta(config-if)#descriptionSalesLan
Atlanta(config-if)#ints0
Atlanta(config-if)#descWantoMiamicircuit:6fdda4321
Atlanta#shrun
[cut]
interfaceEthernet0
descriptionSalesLan
ipaddress0
noipdirected-broadcast
!
interfaceSerial0
descriptionWantoMiamicircuit:6fdda4321
noipaddress#配置接口描述#Atlanta#shinte0
Ethernet0isup,lineprotocolisup
HardwareisLance,addressis0010.7be8.25db(bia0010.7be8.25db)
Description:SalesLan
[outputcut]
Atlanta#shints0
Serial0isup,lineprotocolisup
HardwareisHD64570
Description:WantoMiamicircuit:6fdda4321網絡互連(Internetworking)一、Cisco路由35網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)查看和保存路由器配置
DRAM--(running-congfig文件)
NVRAM--(startup-config文件)Atlanta#copyrunstart
Destinationfilename[startup-config]?[Enter]
Warning:AttemptingtooverwriteanNVRAMconfigurationpreviously
writtenbyadifferentversionofthesystemimage.
OverwritethepreviousNVRAMconfiguration?[confirm][Enter]
Buildingconfiguration...#保存DRAM中的配置文件到NVRAM中#Atlanta#shrun
Buildingconfiguration...
Currentconfiguration:
!
version12.0
servicetimestampsdebuguptime
servicetimestampsloguptime
noservicepassword-encryption
!
hostnameAtlanta
ipsubnet-zero
frame-relayswitching
!
[outputcut]#查看DRAM中配置文件#網絡互連(Internetworking)一、Cisco路由36網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)查看和保存路由器配置
DRAM--(running-congfig文件)
NVRAM--(startup-config文件)Atlanta#shstart
Using4850outof32762bytes
!
version12.0
servicetimestampsdebuguptime
servicetimestampsloguptime
noservicepassword-encryption
!
hostnameAtlanta
!
ipsubnet-zero
frame-relayswitchingAtlanta#erasestartup-config
Erasingthenvramfilesystemwillremoveallfiles!Continue?[confirm][Enter]
[OK]
Eraseofnvram:complete
Atlanta#shstart
%%Non-volatileconfigurationmemoryisnotpresent
Atlanta#reload#查看NVRAM中配置文件##刪除NVRAM中配置文件#網絡互連(Internetworking)一、Cisco路由37網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)使用showinterface命令Router#shint?
AsyncAsyncinterface
BVIBridge-GroupVirtualInterface
CTunnelCTunnelinterface
DialerDialerinterface
FastEthernetFastEthernetIEEE802.3
LoopbackLoopbackinterface
MFRMultilinkFrameRelaybundleinterface
MultilinkMultilink-groupinterface
NullNullinterface
SerialSerial
TunnelTunnelinterface
VifPGMMulticastHostinterface
Virtual-TemplateVirtualTemplateinterface
Virtual-TokenRingVirtualTokenRing
accountingShowinterfaceaccounting
crbShowinterfacerouting/bridginginfo
dampeningShowinterfacedampeninginfo
。。。。。。。。。。。。。。。。。。。。。。。。。<cr>#showinterface命令#網絡互連(Internetworking)一、Cisco路由38網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)使用showinterface命令Router#shintfastethernet0/0
FastEthernet0/0isup,lineprotocolisup
HardwareisAmdFE,addressis00b0.6483.2320(bia00b0.6483.2320)
Description:connectiontoLAN40
Internetaddressis3/27
MTU1500bytes,BW100000Kbit,DLY100usec,
reliability255/255,txload1/255,rxload1/255
EncapsulationARPA,loopbacknotset
Keepaliveset(10sec)
Full-duplex,100Mb/s,100BaseTX/FX
ARPtype:ARPA,ARPTimeout04:00:00
Lastinputnever,output00:00:04,outputhangnever
Lastclearingof"showinterface"countersnever
Inputqueue:0/75/0/0(size/max/drops/flushes);Totaloutputdrops:0
Queueingstrategy:fifo
Outputqueue:0/40(size/max)
5minuteinputrate0bits/sec,0packets/sec
5minuteoutputrate0bits/sec,0packets/sec
0packetsinput,0bytes
Received0broadcasts,0runts,0giants,0throttles
0inputerrors,0CRC,0frame,0overrun,0ignored,0watchdog
0inputpacketswithdribbleconditiondetected
84639packetsoutput,8551135bytes,0underruns
0outputerrors,0collisions,16interfaceresets
0babbles,0latecollision,0deferred
0lostcarrier,0nocarrier
0outputbufferfailures,0outputbuffersswappedout#showinterface命令#網絡互連(Internetworking)一、Cisco路由39網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)使用showinterface命令Router#shintfa0/0
FastEthernet0/0isup,lineprotocolisup
表明物理層狀態(tài)表明數據鏈路層狀態(tài)Router#shintS0/0
FastEthernet0/0isup,lineprotocolisdown
物理層狀態(tài)正常表明數據鏈路層問題Router#shintfa0/0
FastEthernet0/0isdown,lineprotocolisdown
物理層狀態(tài)問題Router#shintfa0/0
FastEthernet0/0isadministrativelydown,lineprotocolisdown
管理員使用了shutdown命令網絡互連(Internetworking)一、Cisco路由40網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)使用showinterface命令Router#shints0/0
Serial0/0isup,lineprotocolisup
HardwareisHD64570
MTU1500bytes,BW1544Kbit,DLY20000usec,reliability255/255,txload1/255,rxload1/255
EncapsulationHDLC,loopbacknotset,keepaliveset(10sec)
Lastinputnever,outputnever,outputhangnever
Lastclearingof"showinterface"countersnever
Queueingstrategy:fifo
Outputqueue0/40,0drops;inputqueue0/75,0drops
5minuteinputrate0bits/sec,0packets/sec
5minuteoutputrate0bits/sec,0packets/sec
0packetsinput,0bytes,0nobuffer
Received0broadcasts,0runts,0giants,0throttles
0inputerrors,0CRC,0frame,0overrun,0ignored,0abort,0packetsoutput,
0bytes,0underruns
0outputerrors,0collisions,16interfaceresets
0outputbufferfailures,0outputbuffersswappedout
0carriertransitions
DCD=downDSR=downDTR=downRTS=downCTS=down網絡互連(Internetworking)一、Cisco路由41網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)使用showipinterface命令Router#shipinterfaceFastEthernet0/0isup,lineprotocolisupInternetaddressis/24Broadcastaddressis55AddressdeterminedbysetupcommandMTUis1500bytesHelperaddressisnotsetDirectedbroadcastforwardingisdisabledOutgoingaccesslistisnotsetInboundaccesslistisnotsetProxyARPisenabledSecuritylevelisdefaultSplithorizonisenabled[outputcut]網絡互連(Internetworking)一、Cisco路由42網絡互連(Internetworking)一、Cisco路由器操作基礎(IOS)使用showipinterfacebrief命令Router#shipintbriefInterfaceIP-AddressOK?MethodStatusProtocolFastEthernet0/03YESmanualupupFastEthernet0/18YESmanualupupSerial0/0YESmanualupupSerial0/1unassignedYESNVRAMadministrativelydowndown
Router#shcontrollersserial0/0
HDunit0,idb=0x1229E4,driverstructureat0x127E70
buffersize1524HDunit0,V.35DTEcable
cpb=0xE2,eda=0x4140,cda=0x4000
Router#shcontrollersserial0/1
HDunit1,idb=0x12C174,driverstructureat0x131600
buffersize1524HDunit1,V.35DCEcable
cpb=0xE3,eda=0x2940,cda=0x2800使用showcontrollers命令網絡互連(Internetworking)一、Cisco路由43IP路由(IPRouting)IP路由(IPRouting)44網絡互連(Internetworking)二、IP路由(IPRouting)路由協議(Routingprotocol)&可路由協議(Routedprotocol)網絡A網絡B網絡C網絡DRIP、OSPF等網絡AIP、IPX等網絡互連(Internetworking)二、IP路由(IP45網絡互連(Internetworking)二、IP路由(IPRouting)IP路由基礎
IP網絡中的主機和路由器必須配置IP地址
路由(Routing)是用來將數據包從一個網絡的一個主機上通過internetwork發(fā)送到另外不同網絡的一個主機上。
路由不關心主機,它只關心網絡,只關心到達目的網絡的最佳路徑。
目的主機的邏輯網絡地址(IP地址)用來指導路由包通過可路由的網絡到達目的網絡,然后使用主機的硬件地址將數據包送到正確的目的主機上。
路由器可路由數據包的最小條件:
目的地址
可以學習到遠程網絡的鄰居路由器
可能到達所有遠程網絡的路由表
到達每個網絡的最佳路由
如何去校驗和維護路由信息
獲得路由信息的方法:
手工的--staticrouting(靜態(tài)路由)
自動的--dynamicrouting(動態(tài)路由)網絡互連(Internetworking)二、IP路由(IP46網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IPF0/27F0/26F0/0S0/0LAB_ALAB_BLAB_CS0/0
DCES0/1
DCES0/0F0/0F0/0F0/2F0/3F0/3F0/2F0/4F0/4F0/5F0/5路由器網絡地址接口ip地址Lab_Afa0/0Lab_As0/0Lab_Bs0/0Lab_Bs0/1Lab_Bfa0/0Lab_Cs0/0Lab_Cfa0/0網絡互連(Internetworking)二、IP路由(IP47網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置路由器LAB_ARouter>en
Router#configt
Router(config)#hostnameLab_A
Lab_A(config)#enablesecrettodd
Lab_A(config)#interfacefa0/0
Lab_A(config-if)#ipaddress
Lab_A(config-if)#descriptionLab_ALANConnection
Lab_A(config-if)#noshut
Lab_A(config-if)#interfaceserial0/0
Lab_A(config-if)#ipaddress
Lab_A(config-if)#descriptionWANConnectiontoLab_B
Lab_A(config-if)#noshut
Lab_A(config-if)#exit
Lab_A(config)#lineconsole0Lab_A(config-line)#passwordtodd
Lab_A(config-line)#login
Lab_A(config-line)#lineaux0
Lab_A(config-line)#passwordtodd
Lab_A(config-line)#login
Lab_A(config-line)#linevty04
Lab_A(config-line)#passwordtodd
Lab_A(config-line)#login
Lab_A(config-line)#exit
Lab_A(config)#bannermotd#
ThisistheLab_Arouter
#
Lab_A(config)#^z
Lab_A#copyrunning-configstartup-config
Destinationfilename[startup-config]?[Enter]
Lab_A#網絡互連(Internetworking)二、IP路由(IP48網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置路由器LAB_ALab_A#shiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B–BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E–EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault,U-per-userstaticroute,o-ODR,P-periodicdownloadedstaticroute,T–trafficengineeredrouteGatewayoflastresortisnotsetC/24isdirectlyconnected,FastEthernet0/0C/24isdirectlyconnected,Serial0/0Lab_A#網絡互連(Internetworking)二、IP路由(IP49網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置路由器LAB_BLab_B#shiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B–BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E–EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault,U-per-userstaticroute,o-ODR,P-periodicdownloadedstaticroute,T–trafficengineeredrouteGatewayoflastresortisnotsetC/24isdirectlyconnected,Serial0/0C/24isdirectlyconnected,Serial0/1CisdirectlyconnectedFastEthernet0/0Lab_B#網絡互連(Internetworking)二、IP路由(IP50網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置路由器LAB_BLab_C#shiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B–BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E–EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefault,U-per-userstaticroute,o-ODR,P-periodicdownloadedstaticroute,T–trafficengineeredrouteGatewayoflastresortisnotsetC/24isdirectlyconnected,FastEthernet0/0C/24isdirectlyconnected,Serial0/0Lab_C#網絡互連(Internetworking)二、IP路由(IP51網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置IP路由(iprouting)
靜態(tài)路由--staticrouting
iproute[destination_network][mask][next-hop_addressorexitinterface][administrative_distance][permanent]Lab_A(config)#iprouteLab_A(config)#iprouteLab_A(config)#iprouteLAB_A
F0/0S0/0LAB_ALAB_BLAB_CS0/0S0/1S0/0F0/0F0/0網絡互連(Internetworking)二、IP路由(IP52網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置IP路由(iprouting)
靜態(tài)路由--staticrouting
iproute[destination_network][mask][next-hop_addressorexitinterface][administrative_distance][permanent]Lab_A#shiproute
[outputcut]
S[1/0]via
S[1/0]via
S[1/0]via
Cisdirectlyconnected,Serial0/0
Cisdirectlyconnected,FastEthernet0/0LAB_A
F0/0S0/0LAB_ALAB_BLAB_CS0/0S0/1S0/0F0/0F0/0網絡互連(Internetworking)二、IP路由(IP53網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置IP路由(iprouting)
靜態(tài)路由--staticrouting
iproute[destination_network][mask][next-hop_addressorexitinterface][administrative_distance][permanent]Lab_B(config)#iprouteLab_B(config)#iprouteLAB_B
F0/0S0/0LAB_ALAB_BLAB_CS0/0S0/1S0/0F0/0F0/0網絡互連(Internetworking)二、IP路由(IP54網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置IP路由(iprouting)
靜態(tài)路由--staticrouting
iproute[destination_network][mask][next-hop_addressorexitinterface][administrative_distance][permanent]Lab_B#shiproute
[outputcut]
S[1/0]via
Cisdirectlyconnected,Serial0/1
Cisdirectlyconnected,FastEthernet0/0
Cisdirectlyconnected,Serial0/0
S[1/0]viaLAB_B
F0/0S0/0LAB_ALAB_BLAB_CS0/0S0/1S0/0F0/0F0/0網絡互連(Internetworking)二、IP路由(IP55網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置IP路由(iprouting)
靜態(tài)路由--staticrouting
iproute[destination_network][mask][next-hop_addressorexitinterface][administrative_distance][permanent]Lab_C(config)#iprouteLab_C(config)#iprouteLab_C(config)#iprouteLAB_C
F0/0S0/0LAB_ALAB_BLAB_CS0/0S0/1S0/0F0/0F0/0網絡互連(Internetworking)二、IP路由(IP56網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置IP路由(iprouting)
靜態(tài)路由--staticrouting
iproute[destination_network][mask][next-hop_addressorexitinterface][administrative_distance][permanent]Lab_C#shiproute
[outputcut]
Cisdirectlyconnected,FastEthernet0/0
Cisdirectlyconnected,Serial0/0
S[1/0]via
S[1/0[via
S[1/0]viaLAB_C
F0/0S0/0LAB_ALAB_BLAB_CS0/0S0/1S0/0F0/0F0/0網絡互連(Internetworking)二、IP路由(IP57網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上路由IP--配置IP路由(iprouting)
校驗我們的配置Lab_A#ping
Typeescapesequencetoabort.Sending5,100-byteICMPEchosto,timeoutis2seconds:
!!!!!
Successrateis80percent(4/5),round-tripmin/avg/max=64/66/68msNetworks
F0/0S0/0LAB_ALAB_BLAB_CS0/0S0/1S0/0F0/0F0/0網絡互連(Internetworking)二、IP路由(IP58網絡互連(Internetworking)二、IP路由(IPRouting)在一個較大的網絡上
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 詳盡多條款單項勞務分包合同
- 保險服務居間合同
- 工業(yè)廠房租賃合同
- 建筑工程款轉讓協議書
- 裝卸運輸服務合同
- 智能科技產品開發(fā)合作合同
- 個人果樹承包合同
- 管理軟件系統(tǒng)買賣合同書
- 美術老師教學成果保護協議
- 項目策劃服務合同
- 品質部質量目標
- 2024屆廣東省深圳市中考物理模擬試卷(一模)(附答案)
- 前庭功能鍛煉科普知識講座
- 信永中和線上測評題庫
- 供應鏈戰(zhàn)略布局與區(qū)域拓展案例
- 上海話培訓課件
- 注塑車間績效考核方案
- 初中英語閱讀理解專項練習26篇(含答案)
- LS/T 1234-2023植物油儲存品質判定規(guī)則
- 如何培養(yǎng)孩子的自主學習能力
- 【新能源汽車企業(yè)的財務風險控制研究:以比亞迪公司為例15000字】
評論
0/150
提交評論