分析hcie復(fù)習(xí)第三章_第1頁
分析hcie復(fù)習(xí)第三章_第2頁
分析hcie復(fù)習(xí)第三章_第3頁
分析hcie復(fù)習(xí)第三章_第4頁
分析hcie復(fù)習(xí)第三章_第5頁
已閱讀5頁,還剩96頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

第三章 地址解 鄰居狀 重復(fù)地址檢 路由器發(fā) 重定 Path 手動隧 自動隧 配置IPv6基礎(chǔ)功能示 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 配置過 配置文 組網(wǎng)要 配置思 操作步 配置文 設(shè)備類 區(qū)域類 基本概 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 擴(kuò)展屬 地址 組網(wǎng)需 配置思 操作步 配置文 組網(wǎng)需 配置思 操作步 配置文 IPv6IEEEEUI-64MACIPv61所示,MAC地址的第二步將高7位的0改為1表示此接口標(biāo)識全球唯一。 大的缺點是任何人都可以通過二層MAC地址推算出三層IPv6地址。路本地地址、唯一本地地址ULA(UniqueLocalAddress)。IPv6中的未指定地址即0:0:0:0:0:0:0:0/128或者::/128。該地址可以表示某個接口或者節(jié)點還源IP地址是::的報文不會被路由設(shè)備轉(zhuǎn)發(fā)。IPv60:0:0:0:0:0:0:1/128或者::1/128IPv4127.0.0.1作用相同,實際發(fā)送的數(shù)據(jù)包中不能使用環(huán)回地址作為源IP地址或者目的IP地址。圖2全球單播地址格式路由前綴至少為48位。目前已經(jīng)分配的全球路由前綴的前3bit均為001。配到第64位。子網(wǎng)IDIPv4中的子網(wǎng)號作用相似。鏈路本地地址是IPv6 間使用。它使用了特定的本地鏈路前綴FE80::/10(最高10位值為 口標(biāo)識添加在后面作為地址的低64比特。地址的格式如圖3所示:圖3在全球網(wǎng)絡(luò)中被路由轉(zhuǎn)發(fā)。唯一本地地址格式如圖4所示:圖4SubnetID:子網(wǎng)ID;劃分子網(wǎng)使用。 0IANA1時,表示當(dāng)義的對應(yīng)關(guān)系如圖5所示。置0。這樣每個組播組ID都映射到一個唯一的以太網(wǎng)組播MAC地址(RFC2464)。IPv65所示:圖5IPv6組播地址格式 IP的數(shù)據(jù)報文時,發(fā)送者無法控的應(yīng)用,例如DNS等。IPv6IPv6中任播主要應(yīng)用于移動IPv6。在6to4中繼中也使用了任播前綴(2002:c058:6301::)。心具體是哪一個)圖6子網(wǎng)路由器任播地址格式一個TCP報文或一個UDP報文。圖1IPv6基本報頭格式先級,主要應(yīng)用于QoS。荷。如果有效載荷的長度超過這個值,該字置0,而有效載荷的長度用逐跳選項擴(kuò)展報論上可以無限擴(kuò)展,體現(xiàn)了優(yōu)異的靈活性。下面為讀者介紹IPv6擴(kuò)展報頭的一些信息。IPv4中,IPv4Optionssecurity、Timestamp、Recordroute等,這的IPv4報文會占用路由器很大的資源,因此實際中也很少使用。IPv60個、1個或多個擴(kuò)展報頭,僅當(dāng)需要路由器或目 展頭。與IPv4不同,IPv6擴(kuò)展頭長度任協(xié)議的類型)。擴(kuò)展報頭格式如圖2所示:代表該類報頭的Next0代表該類報頭的NextIPv4中,InternetICMP(InternetControlMessageProtocol)向源節(jié)點報告關(guān)于向IPv6中,ICMPv6ICMPv4PMTU發(fā)現(xiàn)等。14點發(fā)送ICMPv6目的不可達(dá)錯誤報文,同文中會攜帶引起該錯誤報文的具體原因。節(jié)點發(fā)送ICMPv6數(shù)據(jù)大錯誤報文,其中攜帶出接口的鏈路MTU值。數(shù)據(jù)大錯誤報文是PathMTU發(fā)現(xiàn)機(jī)制的基礎(chǔ)。組報文的操作,如果超過定時時間,也會產(chǎn)生一個ICMPv6超文。點回應(yīng)一個ICMPv6參數(shù)錯誤差錯報文。信息報文主要包括回送請求報文(EchoRequest)和回送應(yīng)答報文(EchoReply),這兩種報文也文?;厮驼埱髨笪牡腡ype字段值為128,Code字段的值為0。回送應(yīng)答報文:當(dāng)收到一個回送請求報文時,ICMPv6會用回送應(yīng)答報文響應(yīng)?;厮蛻?yīng)答報文的Type字段的值為129,Code字段的值為0。ND(NeighborDiscovery)IPv6協(xié)議體系中一個重要的基礎(chǔ)協(xié)議。鄰居發(fā)現(xiàn)協(xié)議替代IPv4ARP(AddressResolutionProtocol)ICMP路由器發(fā)現(xiàn)(RouterDiscovery),它定義 文NA(NeighborAdivertisment)。圖1IPv6地址解析過程HostAHostBHostBHostA會發(fā)送要的是,在NS報文的Options字段中還攜帶了HostA的鏈路層地址。址被放在Options字段中。這樣就完成了一個地址解析的過程。地失效,則恢復(fù)是不可能的,通信失敗;如果路徑失效,則恢復(fù)是可能的。因此節(jié)點需要一RFC24615種鄰居狀態(tài),分別是:未完成(PLETE)、可達(dá)(REACHABLE)、圖2鄰居狀態(tài)遷移示例 若B回復(fù)NA報文,則鄰居狀態(tài)由 plete變?yōu)镋mpty,即刪除表項。項中不同,則鄰居狀態(tài)馬上變?yōu)镾tale。為Reachable,否則鄰居狀態(tài)變?yōu)镋mpty,即刪除表項。DAD(DuplicateAddressDetect)IPv6單播地址之前進(jìn)行的,主很必要的。一個IPv6單播地址在分配給一個接口之后且通過重復(fù)地址檢測之前稱為試驗地址播組:ALL-NODES組播組和實驗地址所對應(yīng)的Solicited-Node組播組。IPv6重復(fù)地址檢測技術(shù)和IPv4中的免費ARP類似:節(jié)點向一個自己將使用的試驗地址所在的點回應(yīng)的NA報文,就證明該地址已被網(wǎng)絡(luò)上使用,節(jié)點將不能使用該實驗地址通訊。圖3重復(fù)地址檢測示例HostA的IPv6地址2000::1為新配址,即2000::1為HostA的試驗地址。HostA向2000::1的Solicited-Node2000::1NS報文進(jìn)行重復(fù)地址檢測,由于2000::1NSHostBNS報文后,有兩如果HostB發(fā)現(xiàn)2000::1是自身的一個實驗地址,則HostB放棄使用這個地址作為接口地址,并且不會發(fā)送NA報文。IPv6地址自動配置功能的基礎(chǔ),主要通過標(biāo)志位信息。RA報文的Type字段值為134。RS(RouterSolicitation)報文:很多情況下主機(jī)接入網(wǎng)絡(luò)后希望盡快獲取網(wǎng)絡(luò)前文的Tpye字段值為133。圖4路由器發(fā)現(xiàn)示例圖5重定向示例B文會被送到RouterA。RouterA接收到HostA發(fā)送的報文以后會發(fā)現(xiàn)實際上HostA直接發(fā)送給RouterB更好,它將發(fā)送一個重定向報文給主機(jī)A,其中報文中更好的路徑下一跳地址為RouterB,DestinationAddressHostB。HostA接收到了重定向報文之后,會在默認(rèn)路由表中添加一個主機(jī)路由,以后發(fā)往HostB的報文就直接發(fā)送給RouterB。PathIPv4中,報文如果過大,必須要分片進(jìn)行發(fā)送,所以在每個節(jié)點發(fā)送報文之前,設(shè)備都會根據(jù)IPv6報文進(jìn)行分片,報文的分片將在源節(jié)IPv6報文,這樣帶來了額外流量開銷。PMTU發(fā)現(xiàn)協(xié)議可以動態(tài)發(fā)現(xiàn)整條傳輸路徑上各鏈路的MTU值,減少由于重傳帶來的額外流量開銷。改為新收到的MTU值繼續(xù) 目的地的PMTU了。 圖1PMTU原理 IPv4IPv6IPv4IPv6協(xié)議棧,源中的所有設(shè)備必須同時支持IPv4/IPv6協(xié)議棧,連接雙棧網(wǎng)絡(luò)的接口必須同時配置IPv4地址和IPv6地址。單協(xié)議棧和雙協(xié)議棧結(jié)構(gòu)示例如圖1所示。圖1IPv6報文。如圖2為雙協(xié)議棧的一個典型應(yīng)用:圖2如圖所示,主機(jī)向DNS服務(wù)器發(fā)送DNS請求報文,請求對應(yīng)的IP地址。DNS服務(wù)器請求對應(yīng)的IPv6地址。的IPv4協(xié)議棧目標(biāo)節(jié)點。如果主機(jī)IPv6地址為3ffe:yyyy::1的網(wǎng)絡(luò)服務(wù)器,則可以通過Rou的IPv6協(xié)議棧目標(biāo)節(jié)點。IPv6overIPv4全過程。隧道技術(shù)是IPv6向IPv4過渡的一個重要。由于IPv4地址的枯竭和IPv6 IPv6勢在必行。因為IPv6與IPv4的不兼容性,所以需要對原有的IPv4設(shè)備進(jìn)行替換。但是IPv4設(shè)備大量替換所需成本會非常巨大,且現(xiàn)網(wǎng)運行的業(yè)務(wù)也會中斷,顯然并不可行。所以,IPv4向IPv6過渡是一個漸進(jìn)的過程。在過渡初期,IPv4網(wǎng)絡(luò)已經(jīng)大量部署,而IPv6網(wǎng)絡(luò)只是散落在各地的一個個“孤島”,IPv6overIPv4隧道就是通過隧道技術(shù),使IPv6報文在IPv4網(wǎng)絡(luò)中傳輸,實現(xiàn)IPv6網(wǎng)絡(luò)之間的孤島互連。IPv6overIPv41所示。圖1IPv6overIPv4隧道原理TunnelIPv6IPv4報文頭,封裝成IPv4報文。隧道終點的IPv4地址的獲取方式不同可以將IPv6overIPv4隧道分為手動隧道和自動隧道。的IPv4地址,報文才能正確發(fā)送至隧道終點。IPv4IPv6IPv4IPv6地址形式,這樣路由設(shè)備可以從IPv6報文中的目的IPv6地址中提取出IPv4地址。IPv6IPv4報文中去,IPv6IPv4報文的凈載荷。手動隧道的用于兩個邊界路由器之間,為兩個IPv6網(wǎng)絡(luò)提供連接。IPv6overIPv42圖2IPv6overIPv4IPv4IPv4IPv4道解封裝。并將解封裝后的報文交給IPv6協(xié)議棧處理。IPv6overIPv4GREIPv6overIPv4GREGRE隧道技術(shù)提供了點到點連接服務(wù),需要手工指定隧道的是協(xié)議中允許的任意協(xié)議(可以是IPv4、IPv6、OSI、MPLS等)。IPv6overIPv4GRE3所示:圖3IPv6overIPv4GRE隧道IPv6overIPv4GREIPv6overIPv4手動隧道相同。GRE隧道的原理讀者請參見《特性描述》。目的IPv6地址中解析出IPv4地址,然后以這個IPv4地址代表的節(jié)點作為隧道的終點。圖5IPv4兼容IPv6隧道需要經(jīng)過RouterA發(fā)給RouterB的IPv6報文到達(dá)RouterA后,以目的地址::2.1.1.1查找IPv6路由,2.1.1.1RouterB。RouterBIPv6報文取出,送給IPv6協(xié)議棧進(jìn)行處理。RouterB返回RouterA的報文也是按照這個過程來進(jìn)行的。支持IPv4兼容IPv6隧道,不適合大面積部署。目前該技術(shù)已經(jīng)被6to4隧道所代替。容自動隧道不同,6to4RouterRouter、HostRouter、RouterHostHost到Host。這是因為6to4地址是用IPv46所示:機(jī)制和IPv6兼容IPv4自動隧道相同,在此不再贅述。圖8即上述情況:從下一跳的6to496to4中繼示意圖:中繼路由器再將此報文轉(zhuǎn)發(fā)IPv6 目的地址(為6to4地址)進(jìn)行IPv4報文頭封裝,數(shù)據(jù)就能夠順利到達(dá)6to4網(wǎng)絡(luò)中了。ISATAP(Intra-SiteAutomaticTunnelAddressingProtocol)是另外一種自動隧道技術(shù)。ISATAP隧做為網(wǎng)絡(luò)前綴,而ISATAPIPv410所示:是通過接口標(biāo)識來表現(xiàn)的,所以,ISATAP地址有全局單播地址、鏈路本地地址、ULA地址、組ISATAPND協(xié)議。ISATAPIPv4網(wǎng)絡(luò)看ISATAPIPv4IPv6,該技術(shù)簡單而且擴(kuò)展性很好,可以用于用是在站點內(nèi)部,所以,其內(nèi)嵌的IPv4地址不需要是全局唯一的。圖11ISATAP隧道示例要使其具有ISATAP功能,需要進(jìn)行如下操作:本地鏈進(jìn)行IPv6通信的能力。當(dāng)主機(jī)與其它IPv6 IPv4地址作為IPv4封裝的目的地址。如果目的主機(jī)在本站點內(nèi),則下一跳就是目的主機(jī)本身,如果目的主機(jī)不在本站點內(nèi),則下一跳為ISATAP路由器的地址。6PEIPv4IPv6的過渡技術(shù),ISPIPv4IPv6網(wǎng)絡(luò)提路由信息轉(zhuǎn)換為帶有的IPv6路由信息,并且通過內(nèi)部邊界網(wǎng)關(guān)協(xié)議IBGP(InternalBorder對于運營商來說,使用6PE技術(shù)作為IPv6過渡機(jī)制是一個高效的解決方案。圖126PE示例IPv4overIPv6孤島能通過IPv6公網(wǎng)其他IPv4網(wǎng)絡(luò)。IPv4overIPv61所示:圖1IPv6overIPv4隧道原理收到的IPv4報文作為負(fù)載,加上IPv6報文頭,封裝到IPv6報文里。 圖1配置IPv6基礎(chǔ)功能組網(wǎng)圖 #配置 >system- ] ]interfacegigabitethernet ]interfacegigabitethernet -GigabitEthernet1/0/0]undoipv6ndra <<[>system-[RouterB][RouterB]interfacegigabitethernet[RouterB-GigabitEthernet1/0/0]ipv6addressauto#查看Rou的接口信息 > yipv6interfacegigabitethernetGigabitEthernet1/0/0currentstate:UPIPv6protocolcurrentstate:UPIPv6isenabled,link-localaddressisFE80::A19:A6FF:FECD:A897Globalunicastaddress(es):Joinedgroupaddress(es):MTUis1500NDDADisenabled,numberofDADattempts:1NDreachabletimeis30000millisecondsNDretransmitintervalis1000millisecondsNDadvertisedreachabletimeis0millisecondsNDadvertisedretransmitintervalis0NDrouteradvertisementmaxinterval600seconds,mininterval200secondsNDrouteradvertisementslivefor1800secondsNDrouteradvertisementshop-limitNDdefaultrouterpreference<RouterB> yipv6interfacegigabitethernetGigabitEthernet1/0/0currentstate:UPIPv6protocolcurrentstate:UPIPv6isenabled,link-localaddressisFE80::2D6F:0:7AF3:1Globalunicastaddress(es):subnetis3001::/64[SLAAC2012-07-19 MTUis1500NDDADisenabled,numberofDADattempts:1NDreachabletimeis30000millisecondsNDretransmitintervalis1000HostsusestaessautoconfigforHostsusestaessautoconfigfor#查看 <Rou>disyipv6neighborsgigabitethernetIPv6Address: :00e0-fc89-fe6e :GigabitEthernet1/0/0 : name IsRouter SecureFLAG:UN-SECURETotal: Dynamic: Static: ###ipv6enableundoipv6ndrahalt#####ipv6enableipv6addressautoglobal#如圖1所示,設(shè)備Rou 作為IPv6DNS 和IPv6DNSServer配合,用戶希望Rou ( )能夠IPv6地址為2002::1/64的主機(jī)。在 圖1配置IPv6DNS組網(wǎng)圖在 在Rou 上配置動態(tài)DNS功能,實現(xiàn)Rou #IPv6 ] ]sysname ] ]interfacegigabitethernet ]dns ]dnsserveripv6 后綴net ] ]ipv6hostRouterB ]ipv6hostRouterC####配置后綴com]] 和IPv6DNS服務(wù)器、RouterB、#在路由設(shè)備Rou 上執(zhí)行ipv6 為2002::1。 ResolvedHost ->:56databytes,pressCTRL_CtoReplyfromReplyfrom2002::1Replyfrom2002::1bytes=56Sequence=3hopReplyfromtime=1time=1time=1bytes=56Sequence=4hoplimit=64 time=1msReplyfrom2002::1bytes=56Sequence=5hop time=1---abcdefg 5packet(s)transmitted55packet(s)0.00%packetround-tripmin/avg/max=1/1/1#在Rou 用disyipv6host命令可以查看到靜態(tài)IPv6DNS表項中主機(jī)名和IPv6地址 > yipv6

#在Rou 用disydnsipv6dynamic-host命令可以查看到動態(tài)緩存區(qū)中的動態(tài)IPv6DNS表項信息。ydnsipv6dynamic-> ####ipv6hostRouterB2001::2ipv6hostRouterC2002::3dns #ipv6enableipv6address######ipv6enableipv6address#ipv6enableipv6address#####ipv6enableipv6address#ipv6enableipv6address#配置IPv6DNS示如圖1所,局域網(wǎng)NetworkA中沒有DNS服務(wù)器,NetworkA中的用戶通過作為DNS的外部網(wǎng)絡(luò)的DNS服務(wù)器來解析。用戶希望如果Rou 則使用DNSSpoofing功能配置的IPv6地址進(jìn)行性應(yīng)答。圖圖1配置IPv6 >system- ] ]interfacegigabitethernet #使能動態(tài)解析功能 ]dns #配置DNS/Relay的DNS服務(wù)器 ]dnsserveripv6 #使能DNS功能 ] enable ]dnsspoofingipv6 ]ipv6route-static2002::64 #在 > ycurrent-configuration|includedns dnsspoofingipv6####ipv6enableipv6address#dns dnsspoofingipv6#ipv6route-static2002::642001::2####ipv6enableipv6address#ipv6enableipv6address#IPv6overIPv4戶希望兩個IPv6網(wǎng)絡(luò)能通過IPv4骨干網(wǎng)互通。圖1配置IPv6overIPv4#IP ] ]interfacegigabitethernet -GigabitEthernet1/0/0]ipaddress192.168.50.2 # ]interfacetunnel # -Tunnel0/0/1]ipv6address3001::1/64 -Tunnel0/0/1]destination192.168.51.2 # ]iproute-static192.168.51.2255.255.255.0 #IP<<[>system-]sysname[RouterB]interfacegigabitethernet[RouterB]interfacegigabitethernet#IP<<[>system-[RouterC][RouterC]interfacegigabitethernet#[RouterC][RouterC]interfacetunnel#[RouterC-Tunnel0/0/1]ipv6address3001::2/64[RouterC-Tunnel0/0/1]destination192.168.50.2#[RouterC][RouterC]iproute-static192.168.50.2255.255.255.0192.168.50.2:56databytes,pressCTRL_CtoReplyfrom192.168.50.2:bytes=56Sequence=1ttl=255time=84msReplyfrom192.168.50.2:bytes=56Sequence=2ttl=255time=27msReplyfrom192.168.50.2:bytes=56Sequence=3ttl=255time=25msReplyfrom192.168.50.2:bytes=56Sequence=4ttl=255time=3msReplyfrom192.168.50.2:bytes=56Sequence=5ttl=255time=24---192.168.50.2statistics---5packet(s)transmitted5packet(s)0.00%packetround-tripmin/avg/max=3/32/84#在RouterC上RouTunnel0/0/1的IPv6地址,可收到返回的報文ipv63001::1:56databytes,pressCTRL_CtoReplyfromReplyfrom3001::1Replyfrom3001::1Replyfrom3001::1Replyfrom3001::1bytes=56Sequence=5hoptime=28time=27mstime=26mstime=27time=26---3001::1 5packet(s)transmitted5packet(s)0.00%packetround-tripmin/avg/max=26/26/28###interfaceipaddress192.168.50.2#ipv6enableipv6address3001::1/64tunnel-protocolipv6-ipv4destination192.168.51.2#iproute-static192.168.51.0255.255.255.0192.168.50.1###interfaceinterfaceipaddress192.168.50.1#interfaceipaddress192.168.51.1####interfaceipaddress192.168.51.2#ipv6enableipv6address3001::2/64tunnel-protocolipv6-ipv4destination192.168.50.2#iproute-static192.168.50.0255.255.255.0192.168.51.1IPv6overIPv4GRE戶希望在Rou和RouterC之間配置IPv6overIPv4GRE隧道,使兩個IPv6網(wǎng)絡(luò)可以互通。圖1配置IPv6overIPv4GRE<[>system-<[>system-]sysname[RouterB]interfacepos[RouterB]interfacepos >system- ] ]interfacepos -Pos1/0/0]ipaddress192.168.50.2 -Pos1/0/0]# ]interfacetunnel # -Tunnel0/0/1]ipv6address3001::1 -Tunnel0/0/1]sourcepos # ]iproute-static192.168.51.2255.255.255.0 #IP#IP[[]sysname[RouterC]interfacepos#[RouterC][RouterC]interfacetunnel#[RouterC-Tunnel0/0/1]ipv6address3001::264[RouterC-Tunnel0/0/1]sourcepos1/0/0#[RouterC][RouterC]iproute-static192.168.50.2255.255.255.0#在RouterC上Rou的Pos1/0/0的IPv4地址,可收到返回的報文192.168.50.2:56databytes,pressCTRL_CtoReplyfrom192.168.50.2:bytes=56Sequence=1ttl=255time=84msReplyfrom192.168.50.2:bytes=56Sequence=2ttl=255time=27msReplyfrom192.168.50.2:bytes=56Sequence=3ttl=255time=25msReplyfrom192.168.50.2:bytes=56Sequence=4ttl=255time=3msReplyfrom192.168.50.2:bytes=56Sequence=5ttl=255time=24---192.168.50.2statistics---5packet(s)transmitted5packet(s)0.00%packetround-tripmin/avg/max=3/32/84#在RouterC上Rou的Tunnel0/0/1的IPv6地址,可收到返回的報文ipv63001::1:56databytes,pressCTRL_CtoReplyfromReplyfrom3001::1Replyfromtime=28time=27bytes=56Sequence=3hoplimit=64 Replyfrom3001::1bytes=56Sequence=4hop time=27Replyfrombytes=56bytes=56Sequence=5hop time=26---3001::1 5packet(s)transmitted5packet(s)0.00%packetround-tripmin/avg/max=26/26/28###interfacePos1/0/0ipaddress192.168.50.2#ipv6enableipv6address3001::1/64tunnel-protocolgresourcepos1/0/0destination192.168.51.2iproute-static192.168.51.0255.255.255.0192.168.50.1###interfacePos1/0/0ipaddress192.168.50.1#link-protocolipaddress192.168.51.1# #interfacePos1/0/0ipaddress192.168.51.2#ipv6enabletunnel-protocolgresourcepos1/0/0destination192.168.50.2iproute-static192.168.50.0255.255.255.0192.168.51.1IPv6overIPv4圖1配置IPv6overIPv4自動隧道組網(wǎng)圖<[>system-<[>system-[RouterB][RouterB]interfacepos[RouterB-Pos1/0/0]ipaddress2.1.1.2 >system- ] ]interfacepos -Pos1/0/0]ipaddress2.1.1.1 -Pos1/0/0]# ]interfacetunnel #IPv4/IPv6#[RouterB][RouterB]interfacetunnel#在 ] yipv6interfacetunnelTunnel0/0/1currentstate:UPIPv6protocolcurrentstate:IPv6isenabled,link-localaddressisFE80::201:101Globalunicastaddress(es):JoinedgroupMTUis1500NDNDreachabletimeis30000NDretransmitintervalis1000millisecondsHostsusestaessautoconfigfor ipv6::2.1.1.2:56databytes,pressCTRL_C ipv6::2.1.1.2:56databytes,pressCTRL_CtoReplyfromReplyfrom::2.1.1.2Replyfrom::2.1.1.2Replyfrom::2.1.1.2Replyfrom::2.1.1.2bytes=56Sequence=5hoptime=30time=40mstime=50mstime=1mstime=50---::2.1.1.2 5packet(s)transmitted5packet(s)0.00%packetround-tripmin/avg/max=1/34/50 ###interfacepos1/0/0ipaddress2.1.1.1#ipv6enableipv6addresssourcepos1/0/0#####interfacepos1/0/0ipaddress2.1.1.2#ipv6enableipv6addresssourcepos1/0/0#1所示,Rou6to4RouterIPv66to4網(wǎng)絡(luò)。RouterB6to4Router,IPv6Internet網(wǎng)絡(luò)(2001::/64)相連。RouRouterBIPv4骨干網(wǎng)絡(luò)相連??蛻粝ouRouterB6to46to4IPv6網(wǎng)絡(luò)的主機(jī)互通。圖1配置6to4 <[>system-<[>system-[RouterB][RouterB]interfacepos[RouterB-Pos1/0/0]ipaddress2.1.1.2[RouterB]interfacegigabitethernet >system- ] ]interfacepos -Pos1/0/0]ipaddress2.1.1.1 -Pos1/0/0] ]interfacegigabitethernet #6to4 ]interfacetunnel # ]ipv6route-static2002::16tunnel # ]ipv6route-static::0 #IPv4/IPv6#6to4[RouterB][RouterB]interfacetunnel#[RouterB]ipv6route-static2002::16tunnel #從Rou可以通RouterB的接口GE2/0/0的IPv6地址 ipv62001::1:56databytes,pressCTRL_CtoReplyfromReplyfrom2001::1Replyfrom2001::1Replyfrom2001::1Replyfrom2001::1bytes=56Sequence=5hoptime=29time=5mstime=5mstime=5time=26---2001::1 5packet(s)transmitted5packet(s)0.00%packetround-tripmin/avg/max=5/14/29##interfacepos1/0/0ipaddress2.1.1.1#ipv6enableipv6address#ipv6enableipv6addresssourcesource#ipv6route-static::02002:201:102::1ipv6route-static2002::16Tunnel0/0/1##interfacePos1/0/0ipaddress2.1.1.2#ipv6enableipv6address#ipv6enabletunnel-protocolipv6-ipv46to4sourcePos1/0/0#ipv6route-static2002::16Tunnel0/0/1主機(jī)和邊界路由器均支持ISATAP。要求在IPv6主機(jī)和邊界路由器之間配置ISATAP隧道。圖1配置ISATAP#<<[>system-[Router][Router]interfacegigabitethernet[Router]interfacegigabitethernet#ISATAP[Router][Router]interfacetunnel[Router-Tunnel0/0/2]ipv6address2001::/64eui-64[Router-Tunnel0/0/2]sourcegigabitethernet2/0/0[Router-Tunnel0/0/2]undoipv6ndrahalt#C:\>ipv6 #使用如下令添加一條到邊界路由器的靜態(tài)路由(在WindowsXP上,ISATAP接2ipv6ifAutomaticTunnelingPseudo-Interface對應(yīng)C:\>ipv6rlu2 #Interface2:AutomaticTunnelingPseudo-doesdoesnotuseNeighborusesRouterEUI-64embeddedIPv4address:2.1.1.2routerlink-layeraddress:2.1.1.1linkMTU1280(truelinkMTU65515)currenthoplimitretransmissioninterval1000msDADtransmitsdefaultsiteprefixlengthDiscovery”一行顯示主機(jī)已啟用路由器發(fā)現(xiàn)功能,ISATAP隧道已經(jīng)成功建立。#使用如下令添加一條到邊界路由器的靜態(tài)路由(在Windows7系統(tǒng)中,IPv6協(xié)C:\>C:\>netshinterfaceipv6isatapsetrouterC:\>netshinterfaceipv6isatapsetrouter2.1.1.1#隧道適配器DNS描述 ISATAPAdapter物理地 00-00-00-00-000000-DHCP已啟 IPv62001::200:5efe:2.1.1.2(首選 IPv6地址........:fe80::200:5efe:2.1.1.2%30(首選默認(rèn)網(wǎng)關(guān)fe80::5efe:2.1DNS服務(wù) :fec0:0:0fec0:0:0TCPIP上的 #C:\>ipv6rtu2001::/64 ipv62001::5efe:2.1.1.2:56databytes, ipv62001::5efe:2.1.1.2:56databytes,pressCTRL_CtoReplyfromReplyfrom2001::5EFE:201:102Replyfrom2001::5EFE:201:102Replyfrom2001::5EFE:201:102Replyfrom2001::5EFE:201:102bytes=56Sequence=5hop---2001::5efe:2.1.1.2 5packet(s)transmitted5packet(s)0.00%packetround-tripmin/avg/max=2/2/4time=4time=3mstime=2mstime=2time=2[Router][Router] yipv6interfaceTunnelTunnel0/0/2currentstate:UPIPv6protocolcurrentstate:IPv6isenabled,link-localaddressisFE80::5EFE:201:101Globalunicastaddress(es):2001::5EFE:201:101,subnetisMTUis1500NDreachabletimeis30000millisecondsNDretransmitintervalis1000millisecondsNDadvertisedreachabletimeis0millisecondsNDadvertisedretransmitintervalis0millisecondsNDrouteradvertisementmaxinterval600seconds,mininterval200secondsNDrouteradvertisementslivefor1800secondsHostsusestaessautoconfigfor#在ISATAP路由器 6from2001::5efe:2.1.1.2with32bytesofdata: 6ing3001::2with32bytesofdata:Replyfrom3001::2:time<1msReplyfrom3001::2:time<1msReplyfrom3001::2:time<1msReplyfrom3001::2:time<1msstatisticsfor3001::2:Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum= um=0ms,Average=Replyfrom2001::5efe:2.1.1.1:bytes=32time=1msReplyfrom2001::5efe:2.1.1.1:bytes=32time=1msReplyfrom2001::5efe:2.1.1.1:bytes=32statisticsforPackets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum= um=1ms,Average=###ipv6enableipv6address#ipaddress2.1.1.1255.0.0.0#ipv6enableundoipv6ndrahaltsourceGigabitEthernet2/0/0#IPv4over個IPv4網(wǎng)絡(luò)可以互通。#RT2<<[>system-]sysname[RT2][RT2]interfacepos[RT2-Pos2/0/0]ipv6[RT2-Pos2/0/0]ipv6address2001::1[RT2]isis[RT2-isis-1]ipv6enabletopology[RT2]interfacepos[RT2-Pos2/0/0]isisipv6enable#RT3<<[>system-]sysname[RT3][RT3]interfacepos[RT3-Pos1/0/0]ipv6[RT3-Pos1/0/0]ipv6address2001::2[RT3]interfacepos[RT3-Pos2/0/0]ipv6[RT3-Pos2/0/0]ipv6address2002::1[RT3]isis[RT3-isis-1]ipv6enabletopology[RT3]interfacepos[RT3-Pos1/0/0]isisipv6enable[RT3]interfacepos[RT3-Pos2/0/0]isisipv6enable#RT4<<[>system-]sysname[RT4][RT4]interfacepos[RT4-Pos1/0/0]ipv6[RT4-Pos1/0/0]ipv6address2002::2[RT4]isis[RT4-isis-1]ipv6enabletopology[RT4]interfacepos[RT4-Pos1/0/0]isisipv6enable#RT1<<[>system-]sysname[RT1-Pos1/0/0]ipaddress10.1.2.2[RT1]ospf[RT1-ospf-1]area#RT2[RT2]interfacepos[RT2-Pos1/0/0]ipaddress10.1.2.1[RT2]ospf[RT2-ospf-1]area#RT4[RT4]interfacepos[RT4-Pos1/0/0]ipaddress10.1.3.1[RT4]ospf[RT4-ospf-1]area#RT5<<[>system-]sysname[RT5-Pos1/0/0]ipaddress10.1.3.2[RT5]ospf[RT5-ospf-1]area##RT2[RT2]interfacetunnel[RT2-Tunnel0/0/2]ipaddress10.1.1.130[RT2-Tunnel0/0/2]sourcepos2/0/0#RT4[RT4]interfacetunnel[RT4-Tunnel0/0/1]ipaddress10.1.1.230[RT4-Tunnel0/0/1]sourcepos1/0/0#RT2[RT2]ospf[RT2-ospf-1]area#RT4[RT4]ospf[RT4-ospf-1]area[RT2][RT2] yinterfacetunnelTunnel0/0/2currentstate:UPLineprotocolcurrentstate:UPLastlineprotocoluptime:2010-06-22,19:33:19Description: ,ARSeries,Tunnel0/0/2InterfaceRoutePort,The umTransmitUnitis1500InternetAddressisEncapsulationisTUNNEL6,loopbacknotsetTunnelprotocol/transport(IPv6orIPV4)overIPv6TunnelSource2001::1(Pos2/0/0)TunnelDestination2002::2TunnelTrafficclassnotsetTunnelFlowlabelnotsetTunnelHoplimit64Currentsystemtime:2012-09-05300secondsinputrate0bits/sec,0300secondsoutputrate0bits/sec,0102secondsinputrate0bits/sec,0102secondsoutputrate0bits/sec,00packets 00input0packets 00outputInputInputbandwidthutilization:-Outputbandwidthutilization:-[RT2]disyiprouting-RoutingTables:Destinations: Routes:ProtoDirect0Direct0Direct0Direct0Direct0Direct0 2Direct0Direct0###interfacePos1/0/0ipaddress10.1.2.2#ospfareanetwork10.1.2.0#####isisipv6enabletopology###interfacePos1/0/0ipaddress10.1.2.1#interfacePos2/0/0link-protocolpppipv6enableisisipv6enable1#interfaceipaddress10.1.1.1 destination2002::2#ospfareanetwork10.1.2.0network10.1.1.0#####isisipv6enabletopology##interfacePos1/0/0link-protocolpppivp6enableisisipv6enable1#interfacePos2/0/0ipv6isisipv6enable1#####isisipv6enabletopology##interfacePos1/0/0link-protocolpppipv6enableisisipv6enable1#interfacePos2/0/0ipaddress10.1.3.1#interfaceipaddress10.1.1.2 destination2001::1#ospfareanetwork10.1.1.0network10.1.3.0####interfacePos1/0/0ipipaddress10.1.3.2#ospfareanetwork10.1.3.0#RIPngIETFRIPIPv6RIPng(RIPnextgeneration,下一代圖1配置RIPng#配置Rou ] ]interfacegigabitethernet -GigabitEthernet1/0/0]ipv6 ]interfacegigabitethernet -GigabitEthernet2/0/0]ipv6address1::1#配置Rou ]ripng -ripng-1] ]interfacegigabitethernet2/0/0 -GigabitEthernet2/0/0]quit ]interfacegigabitethernet -GigabitEthernet1/0/0]ripng1 #RouterB[RouterB][RouterB]ripng[RouterB]interfacegigabitethernet1/0/0[RouterB-GigabitEthernet1/0/0]quit[RouterB]interfacegigabitethernet2/0/0#RouterC[RouterC][RouterC]ripng[RouterC]interfacegigabitethernet[RouterC-GigabitEthernet1/0/0]ripng1#查看Rou的RIPng路由表 ] yripng1RouteFlags:R-[RouterB] yripng1RouteFlags:R-A-Aging,G-Garbage-Dest1::/64, 1,tag0,RA,25A-Aging,G-Garbage-Dest3::/64, 1,tag0,RA,10#RouterCRIPng[RouterC][RouterC] yripng1RouteFlags:R-A-Aging,G-Garbage-Dest1::/64, 2,tag0,RA,4Dest 1,tag0,RA,4##sysname##ipv6enableripng1enable#ipv6enableripng1enable###sysname##ipv6enableripng1enable#ipv6enableripng1enable###sysname##ipv6enableripng1enable#OSPFv3協(xié)議把自治系 LSR報文(LinkStateRequestLSU報文(LinkStateUpdateLSAck報文(LinkStateNSSA。圖1表1BorderRouter)BoundaryRouter)表2中按優(yōu)先級從高到低順序列出了路由類型。IntraInterTotallyStubStubNSSAmultipleaccess)于自治系統(tǒng)的邊界,是那些只有一個ABR的非骨干區(qū)域。的其他非ABR路由器。 LSA,區(qū)域邊界路由器(ABR)只發(fā)送一條聚合的LSA。屬于命令指定網(wǎng)段的LSA不單獨傳輸。type5LSANSSA界路由器將處于聚合地址范圍內(nèi)的多條引入的type7LSA聚合成一條type7LSA。求。這時可以通過配置OSPFv3虛連接予以解決。以配置接口的各參數(shù),如發(fā)送o報文間隔等。于他們而言是透明的,只是當(dāng)作普通的IP報文來轉(zhuǎn)發(fā)。OSPFv3OSPFv3進(jìn)程,它們之間互不影響,彼此獨立。不同OSPFv3進(jìn)程之間的路由交互相當(dāng)于不同路由協(xié)議之間的路由交互。GR技術(shù)屬于高可靠性(HAHighAvailability nned-GR:指通過執(zhí)行resetospfv3graceful-restart命令進(jìn)行的協(xié)議平滑重啟。這種方式在重啟前,會給鄰居先發(fā)送Grace-LSA。環(huán)或異常復(fù)位都被認(rèn)為是UnnnedGR。同nned-GR。包括GR的周期,原因等。此時GR為成功執(zhí)行。進(jìn)行非GR的重啟。這種情況下會導(dǎo)致報文丟失。Helper表1有無OSPFv3GRBGP收斂期間內(nèi)網(wǎng)絡(luò)流量丟失圖1流量穿越BGP網(wǎng)絡(luò)RouterC恢復(fù)正常的時候。OSPFv3BGP快,RouterC恢復(fù)正常時,OSPFv3Rou上,到不知道如何到達(dá)RouterD。這樣,當(dāng)有Rou 流量就會被丟棄,如圖2所示。的度量值(65535),來確保自己不會被用作穿越路由器,但對于BGP會話依然可達(dá)。 置IPv6全局地址而直接建立聯(lián)系。算出OSPFv3的拓?fù)浣Y(jié)構(gòu)。IPv6全局地址僅用于Vlink接口及報文的轉(zhuǎn)發(fā)。(LinkLSA和IntraAreaPrefixLSA)加靈活,可以處理不能識別類型的LSA:范圍為鏈路本地來處理)的不識別報文或通過Stub區(qū)域。 B收到后繼續(xù)處理。IPv6使用鏈路本地(Link-local)地址在同一鏈發(fā)現(xiàn)鄰居及自動配置等。運行IPv6的路播地址從FE80/10開始。Vlink外的所有OSPFv3接口都使用鏈路本地地址作為源地址及下一跳來發(fā)送OSPFv3報文。 IPv6全局地址信息,在區(qū)域內(nèi)。OSPFv3RouterIDIPv6IPv6全局地作為ABR來轉(zhuǎn)發(fā)區(qū)域之間的路由。圖1配置OSPFv3區(qū)域組網(wǎng)圖配置Area2為Stub #配置Rou ] ] -ospfv3-1] ]interfacegigabitethernet1/0/0 -GigabitEthernet1/0/0]ospfv31area1 -GigabitEthernet1/0/0]quit ]interfacegigabitethernet -GigabitEthernet2/0/0]ospfv31area #RouterB[RouterB][RouterB][RouterB][RouterB]interfacegigabitethernet1/0/0[RouterB-GigabitEthernet1/0/0]ospfv31area0[RouterB-GigabitEthernet1/0/0]quit[RouterB]interfacegigabitethernet[RouterB-GigabitEthernet2/0/0]ospfv31area#RouterC[RouterC][RouterC][RouterC][RouterC]interfacegigabitethernet1/0/0[RouterC-GigabitEthernet1/0/0]ospfv31area0[RouterC-GigabitEthernet1/0/0]quit[RouterC]interfacegigabitethernet[RouterC-GigabitEthernet2/0/0]ospfv31area#RouterD[RouterD][RouterD][RouterD][RouterD]interfacegigabitethernet[RouterD-GigabitEthernet1/0/0]ospfv31area#RouterBOSPFv3[RouterB]disyospfv3OSPFv3ProcessOSPFv3AreaNeighbor Pri Full/OSPFv3Area00:00:34GE2/0/00Neighbor1Full/DeadTime00:00:320#[RouterC]disyospfv3OSPFv3ProcessOSPFv3AreaNeighborDeadInstance1Full/0OSPFv3AreaNeighbor Pri Dead Instance Full/ #RouterDOSPFv3[RouterD][RouterD] yospfv3Codes:E2-Type2External,E1-Type1External,IA-Inter-Area,N-NSSA,U-UninstalledOSPFv3ProcessIA2viaFE80::1572:0:5EF4:1,GigabitEthernet1/0/0IA viaFE80::1572:0:5EF4:1,GigabitEthernet1/0/0 IA #RouterDStub[RouterD][RouterD][RouterC][RouterC][RouterC-ospfv3-1]areaRouterDOSPFv3路由表信息,可以看到路由表中多了一條缺省路由,它的開銷值[RouterD][RouterD] yospfv3Codes:E2-Type2External,E1-Type1External,IA-Inter-Area,N-NSSA,U-UninstalledOSPFv3ProcessOSPFv3ProcessIAviaFE80::1572:0:5EF4:1,GigabitEthernet1/0/0IA viaFE80::1572:0:5EF4:1,GigabitEthernet1/0/0IA viaFE80::1572:0:5EF4:1,GigabitEthernet1/0/0 IA #[RouterC][RouterC][RouterC-ospfv3-1]areaRouterDOSPFv3路由表,可以發(fā)現(xiàn)路由表項數(shù)目減少了,其他非直連路由都被抑[RouterD][RouterD] yospfv3Codes:E2-Type2External,E1-Type1External,IA-Inter-Area,N-NSSA,U-UninstalledOSPFv3ProcessOSPFv3Process IAviaFE80::1572:0:5EF4:1,GigabitEthernet1/0/0 ##sysname##ipv6enableospfv31area0.0.0.1#ipv6enableospfv31area0.0.0.1#ospfv3router-id###sysname##ipv6enableospfv31area0.0.0.0#ipv6enableospfv31area0.0.0.1#ospfv3router-idrouter-id###sysname##ipv6enableospfv31area0.0.0.0#ipv6enableospfv31area0.0.0.2#ospfv3router-idareadefault-cost10###sysname##ipv6enableospfv31area0.0.0.2#ospfv3router-id#RouterD沒有配置優(yōu)先級,取缺省值1。圖1配置OSPFv3的DR ] ] -ospfv3-1] ]interfacegigabitethernet -GigabitEthernet1/0/0]ospfv31area #[RouterB][RouterB][RouterB][RouterB]interfacegigabitethernet[RouterB-GigabitEthernet1/0/0]ospfv31area#[RouterC][RouterC][RouterC][RouterC]interfacegigabitethernet[RouterC-GigabitEthernet1/0/0]ospfv31area#[RouterD][RouterD][RouterD][RouterD]interfacegigabitethernet[RouterD-GigabitEthernet1/0/0]ospfv31area#查看 ] yospfv3 ] yospfv3OSPFv3ProcessOSPFv3AreaNeighborDeadTime100:00:320100:00:3601 0[RouterD] yospfv3OSPFv3ProcessOSPFv3AreaNeighborDead101010# ]interfacegigabitethernet #[RouterB][RouterB]interfacegigabitethernet#[RouterC][RouterC]interfacegigabitethernet ] ] yospfv3OSPFv3ProcessOSPFv3AreaNeighborDeadTime000:00:340200:00:3801 0[RouterD] yospfv3OSPFv3ProcessOSPFv3AreaNeighborDead00020#[Rou]disyospfv3OSPFv3ProcessOSPFv3AreaNeighborPriDeadTime000:00:310200:00:360 00:00:39 [RouterD]disyospfv3OSPFv3ProcessOSPFv3AreaNeighborDeadTime 0000:00:350200:00:390##sysname##ipv6enableospfv31area0.0.0.0ospfv3dr-priority#ospfv3router-id###sysname##ipv6enableospfv31area0.0.0.0#ospfv3router-id###sysname##ipv6enableospfv31area0.0.0.0#ospfv3router-id###sysname##ipv6enableospfv31area0.0.0.0#ospfv3router-id# 段、Next_Hop屬性、Aggregator屬性。MP-BGP引入了兩個新的可選非過渡路徑屬性:考RFC3232(AssignedNumbers)。目前支持的地址族視圖包括BGP“BGP/MPLSIP”。圖1配置BGP4+基本組網(wǎng)圖#RouterB[RouterB][RouterB][RouterB]bgp[RouterB-bgp]peer9:1::2as-number[RouterB-bgp-af-ipv6]peer9:1::2#RouterC[RouterC][RouterC][RouterC]bgp[RouterC-bg

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論