




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、 第 22 章IPv6無論是 NAT,還是 CIDR 等都是緩解 IP 地址短缺的手段,而 IPv6 才是解決地址短缺的 最終方法。IPv6 是由 IETF 設(shè)計的下一代互聯(lián)網(wǎng)協(xié)議,目的是取代現(xiàn)有的互聯(lián)網(wǎng)協(xié)議 IPv4。22.1IPv6 概述22.1.1 IPv6 優(yōu)點IPv4 的設(shè)計思想成功地造就了目前的國際互聯(lián)網(wǎng),其核心價值體現(xiàn)在簡單、靈活和開放性。但隨著新應(yīng)用的不斷涌現(xiàn),傳統(tǒng)的 IPv4 協(xié)議已經(jīng)難以支持互聯(lián)網(wǎng)的進一步擴張和新業(yè)務(wù)的特性,比如實時應(yīng)用和服務(wù)質(zhì)量保證等。IPv6 能夠解決 IPv4 存在的許多問題,如地址短缺、服務(wù)質(zhì)量保證等。同時,IPv6 還對IPv4 作了大量的改進,包
2、括路由和網(wǎng)絡(luò)自動配置等。IPv6 和 IPv4 將在過渡期內(nèi)共存幾年,并由 IPv6 漸漸取代 IPv4。IPv6 的特點如下: 1. 128 比特的地址方案,為將來數(shù)十年提供了足夠的地址空間; 2. 充足的地址空間將極大地滿足那些伴隨著網(wǎng)絡(luò)智能設(shè)備的出現(xiàn)而對地址增長的需求,例如個人數(shù)據(jù)助理、移動電話、家庭網(wǎng)絡(luò)接入設(shè)備等; 3.4.5.6.7.8.9.10.11.12.13.多等級編址層次有助于路由聚合,提高了路由選擇的效率和可擴展性; 自動配置使得在 Internet 上大規(guī)模布置新設(shè)備成為可能; ARP 廣播被本地鏈路多播代替; IPv6 對數(shù)據(jù)包頭作了簡化,以減少處理器開銷并節(jié)省網(wǎng)絡(luò)帶寬
3、; IPv6 中流標(biāo)簽字段可以提供流量區(qū)分; IPv6 的組播可以區(qū)分永久性與臨時性地址,更有利于組播功能的實現(xiàn); IPv6 地址本身的分層體系更加支持了域名解析體系中的地址集聚和地址更改; IPv6 協(xié)議內(nèi)置安全機制,并已經(jīng)標(biāo)準(zhǔn)化; IPv6 協(xié)議更好地支持移動性; IPv6 提供了更加優(yōu)秀的 QOS 保障; IPv6 中沒有廣播地址,它的功能正在被組播地址所代替。 22.1.2 IPv6 地址IPv4 地址表示為點分十進制格式,而 IPv6 采用冒號分十六進制格式。例如: 2007:00D3:0000:2F3B:02BB:00FF:FE28:2000 是一個完整的 IPv6 地址。 【提示
4、】1.IPv6 地址中每個 16 位分組中的前導(dǎo)零位可以去除做簡化表示; 2.可以將冒號十六進制格式中相鄰的連續(xù)零位合并,用雙冒號“:”表示; 3.要在一個 URL 中使用文本 IPv6 地址,文本地址應(yīng)該用符號“”和“”來封閉。 IPv6 地址有三種類型:單播、任意播和組播,在每種地址中又有一種或者多種類型的 地址,如單播有本地鏈路地址、本地站點地址、可聚合全球地址、回環(huán)地址和未指定地址; 任意播有本地鏈路地址、本地站點地址和可聚合全球地址;多播有指定地址和請求節(jié)點地址。下面主要介紹幾個常用地址類型: 1. 本地鏈路地址 當(dāng)在一個節(jié)點上啟用 IPv6 協(xié)議棧,啟動時節(jié)點的每個接口自動配置一個
5、本地鏈路地址, 前綴為 FE80:/10。 2. 本地站點地址 本地站點地址與 RFC1918 所定義的私有 IPv4 地址空間類似,因此本地站點地址不能在全球 IPv6 因特網(wǎng)上路由, 前綴為 FEC0:/10。 3. 可聚合全球單播地址 IANA 分配 IPv6 尋址空間中的一個 IPv6 地址前綴作為可聚合全球單播地址。 4. IPv4 兼容地址 IPv4 兼容的 IPv6 地址是由過渡機制使用的特殊單播 IPv6 地址,目的是在主機和路由器上自動創(chuàng)建 IPv4 隧道以在 IPv4 網(wǎng)絡(luò)上傳送 IPv6 數(shù)據(jù)包。 5. 回環(huán)地址 單播地址 0:0:0:0:0:0:0:1 稱為回環(huán)地址。節(jié)
6、點用它來向自身發(fā)送 IPv6 包。它不能分配給任何物理接口。 6. 不確定地址 單播地址 0:0:0:0:0:0:0:0 稱為不確定地址。它不能分配給任何節(jié)點。 7. 多播指定地址 RFC2373 在多播范圍內(nèi)為 IPv6 協(xié)議的操作定義和保留了幾個 IPv6 地址,這些保留地址稱為多播指定地址。 8. 請求節(jié)點地址 對于節(jié)點或路由器的接口上配置的每個單播和任意播地址,都自動啟動一個對應(yīng)的被請求節(jié)點地址。被請求節(jié)點地址受限于本地鏈路。 22.2 IPv6路由22.2.1 實驗 1: IPv6 靜態(tài)路由1. 實驗?zāi)康耐ㄟ^本實驗可以掌握 (1) 啟用 IPv6 流量轉(zhuǎn)發(fā) (2) 配置 IPv6 地
7、址 (3) IPv6 靜態(tài)路由配置和調(diào)試 (4) IPv6 默認(rèn)路由配置和調(diào)試 2.拓?fù)浣Y(jié)構(gòu)實驗拓?fù)淙鐖D 22-1 所示。 圖 22-1 IPv6 靜態(tài)路由 3.實驗步驟(1) 步 驟 1: 配 置 路 由 器 R1 R1(config)#ipv6 unicast-routing R1(config)#interface Loopback0 R1(config-if)#ipv6 address 2006:AAAA:1/64 R1(config)#interface Loopback1 R1(config-if)#ipv6 address 2006:BBBB:1/64 R1(config)#in
8、terface Serial0/0/0 R1(config-if)#ipv6 address 2007:CCCC:1/64 R1(config-if)#no shutdown R1(config)#ipv6 route 2008:DDDD:/64 Serial0/0/0(2) 步 驟 2: 配 置 路 由 器 R2 R2(config)#ipv6 unicast-routing R2(config)#interface Loopback0 R2(config-if)#ipv6 address 2008:DDDD:2/64 R2(config)#interface Serial0/0/0 R2(
9、config-if)#ipv6 address 2007:CCCC:2/64 R2(config-if)#clockrate 128000 R2(config-if)#no shutdown R2(config)#ipv6 route :/0 Serial0/0/0 4.實驗調(diào)試(1)show ipv6 interface 該命令用來查看 IPv6 的接口信息。 R1#show ipv6 interface s0/0/0 Serial0/0/0 is up, line protocol is up /啟用 IPv6 流量轉(zhuǎn)發(fā)/配置 IPv6 地址/配置 IPv6 靜態(tài)路由/配置 IPv6 默認(rèn)
10、路由IPv6 is enabled, link-local address is FE80:C800:BFF:FE80:0/本接口啟用IPv6,本地鏈路地址自動配置Global unicast address(es): 2007:CCCC:1, subnet is 2007:CCCC:/64 /全球聚合地址 Joined group address(es): FF02:1 /表示本地鏈路上的所有節(jié)點和路由器FF02:2 /表示本地鏈路上的所有路由器FF02:1:FF00:1 /用于替換ARP 機制的被請求節(jié)點的多播地址FF02:1:FF80:0 /與單播地址 2007:CCCC:1 相關(guān)的被請
11、求節(jié)點多播地址MTU is 1500 bytes ICMP error messages limited to one every 100 milliseconds ICMP redirects are enabled /啟用ICMP 重定向 ND DAD is enabled, number of DAD attempts: 1 /鄰居發(fā)現(xiàn)和重復(fù)地址檢測啟動 ND reachable time is 30000 milliseconds /ND 可達(dá)時間 Hosts use stateless autoconfig for addresses. /使用無狀態(tài)自動配置地址 (2)show ip
12、v6 route 該命令用來查看 IPv6 路由表。 R1#show ipv6 route IPv6 Routing Table - 9 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route, M - MIPv6 I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 -
13、OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external C2006:AAAA:/64 0/0 via :, Loopback0 2006:AAAA:1/128 0/0via :, Loopback0 2006:BBBB:/64 0/0 via :, Loopback1 2006:BBBB:1/128 0/0via :, Loopback1 2007:CCCC:/64 0/0 via :, Serial0/0/0 2007:CCCC:1/128 0/0via :, Serial0
14、/0/0 2008:DDDD:/64 1/0 via :, Serial0/0/0 FE80:/10 0/0 via :, Null0 FF00:/8 0/0 via :, Null0 LCLCLSLLR2#show ipv6 route IPv6 Routing Table - 7 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route, M - MIPv6 I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, I
15、S - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external S:/0 1/0 via :, Serial0/0/0 C2007:CCCC:/64 0/0 via :, Serial0/0/0 2007:CCCC:2/128 0/0via :, Serial0/0/0 2008:DDDD:/64 0/0 via :, Loopback0
16、2008:DDDD:2/128 0/0via :, Loopback0 FE80:/10 0/0 via :, Null0 FF00:/8 0/0 via :, Null0 LCLLL以上輸出表明路由器R1 上有一條IPv6 的靜態(tài)路由,R2 上有一條 IPv6 的默認(rèn)路由,IPv6 中的默認(rèn)路由是沒有“*”的。 (3)ping R2#ping ipv6 2006:AAAA:1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2006:AAAA:1, timeout is 2 seconds: ! Success
17、 rate is 100 percent (5/5), round-trip min/avg/max = 24/72/124 ms 22.2.2 實驗 2: IPv6 RIPng1. 實驗?zāi)康耐ㄟ^本實驗可以掌握 (1) 啟用 IPv6 流量轉(zhuǎn)發(fā) (2) 向 RIPng 網(wǎng)絡(luò)注入默認(rèn)路由(3) RIPng 配置和調(diào)試 2.拓?fù)浣Y(jié)構(gòu)實驗拓?fù)淙鐖D 22-2 所示。 圖 22-2IPv6 RIPng 配置3.實驗步驟(1)步驟 1:配置路由器 R1 R1(config)#ipv6 unicast-routing R1(config)#ipv6 router rip cisco R1(config-rt
18、r)#split-horizon R1(config-rtr)#poison-reverse R1(config)#interface Loopback0 /啟動IPv6 RIPng 進程/啟用水平分割 /啟用毒化反轉(zhuǎn) R1(config-if)#ipv6 address 2006:1111:1/64/在接口上啟用 RIPngR1(config-if)#ipv6 rip cisco enableR1(config)#interface Serial0/0/0 R1(config-if)#ipv6 R1(config-if)#ipv6 R1(config-if)#ipv6 address 200
19、7:12:1/64 rip cisco enable rip cisco default-information originate/向 IPv6 RIPng 區(qū)域注入一條默認(rèn)路由(:/0) R1(config-if)#no shutdown R1(config)#ipv6 route :/0 Loopback0 /配置默認(rèn)路由【提示】 “ipv6 rip cisco default-information only ”命令也可以向 IPv6 RIPng 區(qū)域注入一條默認(rèn)路由,但是該命令只從該接口發(fā)送默認(rèn)的 IPv6 路由,而該接口其它的 IPv6 的RIPng 路由都被抑制。 (2) 步 驟
20、 2: 配 置 路 由 器 R2 R2(config)#ipv6 unicast-routing R2(config)#ipv6 router rip cisco R2(config-rtr)#split-horizon R2(config-rtr)#poison-reverse R2(config)#interface Serial0/0/0 R2(config-if)#ipv6 address 2007:12:2/64 R2(config-if)#ipv6 rip cisco enable R2(config-if)#clock rate 128000 R2(config-if)#no s
21、hutdown R2(config)#interface Serial0/0/1 R2(config-if)#ipv6 address 2007:23:2/64 R2(config-if)#ipv6 rip cisco enable R2(config-if)#clock rate 128000 R2(config-if)#no shutdown (3) 步 驟 3: 配 置 路 由 器 R3 R3(config)#ipv6 unicast-routing R3(config)#ipv6 router rip cisco R3(config-rtr)#split-horizon R3(conf
22、ig-rtr)#poison-reverse R3(config)#interface Serial0/0/0 R3(config-if)#ipv6 address 2007:34:3/64 R3(config-if)#ipv6 rip cisco enable R3(config-if)#clockrate 128000 R3(config-if)#no shutdown R3(config)#interface Serial0/0/1 R3(config-if)#ipv6 address 2007:23:3/64 R3(config-if)#ipv6 rip cisco enable R3
23、(config-if)#no shutdown (4) 步 驟 4: 配 置 路 由 器 R4 R4(config)#ipv6 unicast-routing R4(config)#ipv6 router rip cisco R4(config-rtr)#split-horizon R4(config-rtr)#poison-reverse R4(config)#interface Loopback0 R4(config-if)#ipv6 address 2008:4444:4/64 R4(config-if)#ipv6 rip cisco enable R4(config)#interfac
24、e Serial0/0/0 R4(config-if)#ipv6 address 2007:34:4/64 R4(config-if)#ipv6 rip cisco enable R4(config-if)#no shutdown 4.實驗調(diào)試(1)show ipv6 route R2#show ipv6 route IPv6 Routing Table - 10 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route, M - MIPv6 I1 - ISIS
25、 L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external R:/0 120/2 via FE80:C800:AFF:FE90:0, Serial0/0/0 2006:1111:/64 120/2 via FE80:C800:AFF:FE90:0, Ser
26、ial0/0/0 2007:12:/64 0/0 via :, Serial0/0/0 2007:12:2/128 0/0 via :, Serial0/0/0 2007:23:/64 0/0 via :, Serial0/0/1 2007:23:2/128 0/0 via :, Serial0/0/1 2007:34:/64 120/2 via FE80:C802:AFF:FE90:0, Serial0/0/1 2008:4444:/64 120/3 via FE80:C802:AFF:FE90:0, Serial0/0/1 FE80:/10 0/0 via :, Null0 FF00:/8
27、 0/0 via :, Null0 RCLCLRRLL以上輸出表明 R1 確實向 IPv6 RIPng 網(wǎng)絡(luò)注入一條 IPv6 的默認(rèn)路由,同時收到 3 條IPv6 RIPng 路由條目,而且所有 IPv6 RIPng 路由條目的下一跳地址均為鄰居路由器接口的 “l(fā)ink-local”地址??梢酝ㄟ^“show ipv6 rip next-hops”命令查看 RIPng 的下一跳地址。 R2#show ipv6 rip next-hops RIP process cisco, Next Hops FE80:C800:AFF:FE90:0/Serial0/0/0 3 paths FE80:C802
28、:AFF:FE90:0/Serial0/0/1 3 paths (2) show ip protocols R2#show ipv6 protocols IPv6 Routing Protocol is connected IPv6 Routing Protocol is static IPv6 Routing Protocol is rip cisco Interfaces: Serial0/0/1 Serial0/0/0 Redistribution: None 以上輸出表明啟動的 IPv6 RIPng 進程為 cisco,同時在 Serial0/0/1 和 Serial0/0/0接口上起
29、用 RIPng。 (3) show ipv6 rip database 該命令用來查看 RIPng 的數(shù)據(jù)庫。R2#show ipv6 rip database RIP process cisco, local RIB 2006:1111:/64, metric 2, installed Serial0/0/0/FE80:C800:AFF:FE90:0, expires in 178 secs 2007:12:/64, metric 2 Serial0/0/0/FE80:C800:AFF:FE90:0, expires in 178 secs 2007:23:/64, metric 2 Ser
30、ial0/0/1/FE80:C802:AFF:FE90:0, expires in 168 secs 2007:34:/64, metric 2, installed Serial0/0/1/FE80:C802:AFF:FE90:0, expires in 168 secs 2008:4444:/64, metric 3, installed Serial0/0/1/FE80:C802:AFF:FE90:0, expires in 168 secs :/0, metric 2, installed Serial0/0/0/FE80:C800:AFF:FE90:0, expires in 178
31、 secs 以上輸出顯示了 R2 的 RIPng 的數(shù)據(jù)庫。 (4) debug ipv6 rip 該命令用來動態(tài)查看 RIPng 的更新。 R2#debug ipv6 rip RIP Routing Protocol debugging is on R2#clear ipv6 route * *Feb 15 14:17:34.851:*Feb 15 14:17:34.855:*Feb 15 14:17:34.855:src=FE80:C801:AFF:FE90:0 dst=FF02:9 (Serial0/0/1) sport=521, dport=521, length=92 *Feb*Fe
32、b*Feb*Feb*Feb*Feb*Feb*Feb*Feb*Feb*Feb*Feb*Feb*Feb*Feb15151515151515151515151515151514:17:34.859:14:17:34.859:14:17:34.859:14:17:34.863:14:17:34.863:14:17:34.867:14:17:34.867:14:17:34.871:14:17:34.871:14:17:34.871:14:17:34.875:14:17:34.875:14:17:34.879:14:17:34.879:14:17:43.439:command=2, version=1,
33、mbz=0, #rte=4 tag=0, metric=2, prefix=2006:1111:/64 tag=0, metric=1, prefix=2007:12:/64 tag=0, metric=1, prefix=2007:23:/64 tag=0, metric=2, prefix=:/0 Sending multicast update on Serial0/0/0 for cisco src=FE80:C801:AFF:FE90:0 dst=FF02:9 (Serial0/0/0) sport=521, dport=521, length=92 command=2, versi
34、on=1, mbz=0, #rte=4 tag=0, metric=1, prefix=2007:12:/64 tag=0, metric=1, prefix=2007:23:/64 tag=0, metric=2, prefix=2007:34:/64 tag=0, metric=3, prefix=2008:4444:/64 RIPng:RIPng: response received from FE80:C800:AFF:FE90:0 on Serial0/0/0for cisco *Feb 15 14:17:43.443:*Feb 15 14:17:43.443:*Feb 15 14:
35、17:43.447:*Feb 15 14:17:43.447:*Feb 15 14:17:43.447:*Feb 15 14:17:43.451:*Feb 15 14:17:43.451: R2# src=FE80:C800:AFF:FE90:0 (Serial0/0/0)dst=FF02:9 sport=521, dport=521, length=72 command=2, version=1, mbz=0, #rte=3 tag=0, metric=1, prefix=2006:1111:/64 tag=0, metric=1, prefix=2007:12:/64 tag=0, met
36、ric=1, prefix=:/0 *Feb 15 14:17:57.815: RIPng: response received from FE80:C802:AFF:FE90:0 on Serial0/0/1for cisco src=FE80:C802:AFF:FE90:0 (Serial0/0/1)dst=FF02:9 sport=521, dport=521, length=72 command=2, version=1, mbz=0, #rte=3 tag=0, metric=1, prefix=2007:23:/64 tag=0, metric=1, prefix=2007:34:
37、/64 tag=0, metric=2, prefix=2008:4444:/64 *Feb 15 14:17:57.819:*Feb 15 14:17:57.819:*Feb 15 14:17:57.823:*Feb 15 14:17:57.823:*Feb 15 14:17:57.823:*Feb 15 14:17:57.827:*Feb 15 14:17:57.827:以上輸出顯示路由器 R2 發(fā)送和接收 RIPng 的信息。22.2.3 實驗 3: OSPFv31. 實驗?zāi)康耐ㄟ^本實驗可以掌握 (1) 啟用 IPv6 流量轉(zhuǎn)發(fā) (2) 向 OSPFv3 網(wǎng)絡(luò)注入默認(rèn)路由(3) OSPF
38、v3 多區(qū)域配置和調(diào)試 2.拓?fù)浣Y(jié)構(gòu)實驗拓?fù)淙鐖D 22-3 所示。 圖 22-3OSPFv3 配置3.實驗步驟(1) 步 驟 1: 配 置 路 由 器 R1 R1(config)#ipv6 unicast-routing R1(config)#ipv6 router ospf 1 R1(config-rtr)#router-id 1.1.1.1 R1(config-rtr)#default-information /向 OSPFv3 網(wǎng)絡(luò)注入一條默認(rèn)路由 R1(config)#interface Serial0/0/0 /啟動OSPFv3 路由進程 /定義路由器 ID originate me
39、tric 30 metric-type 2R1(config-if)#ipv6 address 2007:12:1/64 R1(config-if)#ipv6 ospf 1 area 1/在接口上啟用 OSPFv3,并聲明接口所在區(qū)域R1(config-if)#no shutdown R1(config)#ipv6 route :/0 s0/0/1 /配置默認(rèn)路由 (2) 步 驟 2: 配 置 路 由 器 R2 R2(config)#ipv6 unicast-routing R2(config)#ipv6 router ospf 1 R2(config-rtr)#router-id 2.2.2
40、.2 R2(config)#interface Serial0/0/0 R2(config-if)#ipv6 address 2007:12:2/64 R2(config-if)#ipv6 ospf 1 area 1 R2(config-if)#clock rate 128000 R2(config-if)#no shutdown R2(config)#interface Serial0/0/1 R2(config-if)#ipv6 address 2007:23:2/64 R2(config-if)# ipv6 ospf 1 area 0 R2(config-if)#clock rate 1
41、28000 R2(config-if)#no shutdown (3) 步 驟 3: 配 置 路 由 器 R3 R3(config)#ipv6 unicast-routing R3(config)#ipv6 router ospf 1 R3(config-rtr)#router-id 3.3.3.3 R3(config)#interface Serial0/0/0 R3(config-if)#ipv6 address 2007:34:3/64 R3(config-if)#ipv6 ospf 1 area 2 R3(config-if)#clockrate 128000 R3(config-if
42、)#no shutdown R3(config)#interface Serial0/0/1 R3(config-if)#ipv6 address 2007:23:3/64 R3(config-if)#ipv6 ospf 1 area 0 R3(config-if)#no shutdown (4) 步 驟 4: 配 置 路 由 器 R4 R4(config)#ipv6 unicast-routing R4(config)#ipv6 router ospf 1 R4(config-rtr)#router-id 4.4.4.4 R4(config)#interface gigabitEtherne
43、t0/0 R4(config-if)#ipv6 address 2008:4444:4/64 R4(config-if)# ipv6 ospf 1 area 2 R4(config-if)#no shutdown R4(config)#interface Serial0/0/0 R4(config-if)#ipv6 address 2007:34:4/64 R4(config-if)#ipv6 ospf 1 area 2 R4(config-if)#no shutdown 4.實驗調(diào)試(1)show ipv6 route R4#show ipv6 route IPv6 Routing Tabl
44、e - 11 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route, M - MIPv6 I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EI
45、GRP, EX - EIGRP external OE2 :/0 110/30, tag 1 via FE80:C802:AFF:FE90:0, Serial0/0/0 OI2007:12:/64 110/192 via FE80:C802:AFF:FE90:0, Serial0/0/0 2007:23:/64 110/128 via FE80:C802:AFF:FE90:0, Serial0/0/0 2007:34:/64 0/0 via :, Serial0/0/0 2007:34:4/128 0/0 via :, Serial0/0/0 2008:4444:/64 0/0 via :,
46、GigabitEthernet0/0 2008:4444:4/128 0/0 via :, GigabitEthernet0/0 FE80:/10 0/0 via :, Null0 FF00:/8 0/0 OICLCLLL via :, Null0 以上輸出表明 OSPFv3 的外部路由代碼為“OE2”或“OE1”,區(qū)域間路由代碼為“OI”, 區(qū)域內(nèi)路由代碼為“O”。 (2) show ip protocols R2#show ipv6 protocols IPv6 Routing Protocol is connected IPv6 Routing Protocol is static IP
47、v6 Routing Protocol is ospf 1 Interfaces (Area 0): Serial0/0/1 Interfaces (Area 1): Serial0/0/0 Redistribution: None 以上輸出表明啟動的 OSPFv3 進程 ID 為 1, Serial0/0/1 和 Serial0/0/0 接口上啟用OSPFv3,Serial0/0/1 屬于區(qū)域 0,Serial0/0/0 屬于區(qū)域 1。 (3) show ipv6 ospf database 該命令用來查看 OSPFv3 拓?fù)浣Y(jié)構(gòu)數(shù)據(jù)庫。 R4#show ipv6 ospf database
48、 OSPFv3 Router with ID (4.4.4.4) (Process ID 1)Router Link States (Area 2)ADV Router 3.3.3.3 4.4.4.4 Age 418375Seq# 0x800000020x80000004Fragment ID 0 0 Link count 1 1 BitsB NoneInter Area Prefix Link States (Area2)ADV Router 3.3.3.3 3.3.3.3 Age 450440Seq# 0x800000010x80000001Prefix 2007:23:/642007:1
49、2:/64Inter Area Router Link States (Area 2)ADV Router3.3.3.3 Age440Seq#Link IDDest RtrID1.1.1.1 0x80000001 16843009 Link (Type-8) Link States (Area 2)ADV Router 4.4.4.4 3.3.3.3 Age 415463Seq# 0x800000010x80000001Link ID 3 4 InterfaceFa0/0 Se1/0 4.4.4.44370x80000001 4 Se1/0Intra Area Prefix Link Stat
50、es (Area 2)ADV Router 3.3.3.3 4.4.4.4 Age 463430Seq# 0x800000010x80000002Link ID 0 0 Ref-lstype 0x2001 0x2001 Ref-LSID0 0 Type-5 AS External Link StatesSeq#PrefixADV Router1.1.1.1 Age6 0x80000013 :/0 以上輸出顯示了路由器 R4 的OSPFv3 的拓?fù)浣Y(jié)構(gòu)數(shù)據(jù)庫。 (4)show ipv6 ospf neighbor R2#show ipv6 ospf neighbor Neighbor ID 3.
51、3.3.3 1.1.1.1 Pri 11StateFULL/ -Dead Time 00:00:30 00:00:37 Interface ID 5 4 Interface Serial0/0/1 Serial0/0/0-FULL/以上輸出表明路由器 R2 有兩個 OSPFv3 的鄰居。 (5)show ipv6 ospf interface R2#show ipv6 ospf interface s0/0/0 Serial0/0/0 is up, line protocol is up Link Local Address FE80:C801:AFF:FE90:0, Interface ID
52、 4 Area 1, Process ID 1, Instance ID 0, Router ID 2.2.2.2 Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:04 Index 1/1/1, flood queue length 0 Next 0x0(0)/0x0(0)/0x0(0) Last f
53、lood scan length is 1, maximum is 1 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 1.1.1.1 Suppress hello for 0 neighbor(s) 以上輸出是 OSPFv3 路由器接口的基本信息,和 OSPFv2 非常的相似,包括路由器 ID、網(wǎng)絡(luò)類型、計時器的值以及鄰居的數(shù)量等信息。 22.2.4 實驗 2: IPv6 EIGRP1. 實驗?zāi)康?/p>
54、通過本實驗可以掌握 (1) 啟用 IPv6 流量轉(zhuǎn)發(fā) (2) IPv6 EIGRP 配置和調(diào)試 2.拓?fù)浣Y(jié)構(gòu)實驗拓?fù)淙鐖D 22-4 所示。圖 22-4IPv6 EIGRP 配置3.實驗步驟(1)步驟 1:配置路由器 R1 R1(config)#ipv6 unicast-routing R1(config)#ipv6 router eigrp 1 R1(config-rtr)#router-id 1.1.1.1R1(config-rtr)#no shutdown /配置 IPv6 EIGRP /配置路由器 ID /啟動IPv6 EIGRP 進程10000 100 255 1 1500R1(con
55、fig-rtr)#redistribute connected metric/將直連重分布到 IPv6 EIGRP 中R1(config)#interface Loopback0 R1(config-if)#ipv6 address 2006:1111:1/64 R1(config)#interface Serial0/0/0 R1(config-if)#ipv6 address 2007:12:1/64 R1(config-if)#ipv6 eigrp 1 R1(config-if)#no shutdown (2) 步 驟 2: 配 置 路 由 器 R2 R2(config)#ipv6 unicast-routing R2(config)#ipv6 router eigrp 1 R2(config-rtr)#router-id 2.2.2.2 R2(config-rtr)#no shutdown R2(config)#interface Serial0/0/0 R2(config-if)#ipv6 a
溫馨提示
- 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 共同股權(quán)投資合同范本
- 關(guān)于續(xù)簽監(jiān)控合同范本
- 涼皮店用工合同范例
- 事業(yè)單位勞務(wù)合同范本3篇
- 公司考核合同范本
- 下班無償保潔合同范本
- 入股銷售合同范本
- 北京貸款合同范本
- 農(nóng)業(yè)設(shè)備運輸合同范例
- 公司簽承攬合同范本
- 《儲糧害蟲防治技術(shù)》課件-第六章 儲糧保護劑及其應(yīng)用
- 2型糖尿病性增殖性出血性視網(wǎng)膜病的護理查房
- 人工智能基礎(chǔ)與應(yīng)用-課程標(biāo)準(zhǔn)
- 業(yè)主授權(quán)租戶安裝充電樁委托書
- 排水管道施工組織設(shè)計排水管道施工組織設(shè)計排水施工排水管道施工施工設(shè)計
- 倉庫管理人員安全培訓(xùn)考試題含答案
- 2024年度核醫(yī)學(xué)科危重癥患者應(yīng)急預(yù)案流程圖
- 2024未來會議:AI與協(xié)作前沿趨勢白皮書
- 書畫同源 課件-2023-2024學(xué)年高中美術(shù)人教版(2019)選擇性必修2 中國書畫
- 2024年廣東普通專升本《公共英語》完整版真題
- 全飛秒激光近視手術(shù)
評論
0/150
提交評論