實驗平台:Cisco 3725+NM4T序列槽子產品+GT96100-FE快速以太網子產品
IOS: c3725-adventerprisek9-mz.124-9.T1.bin
實驗目标:通過各種支援IPv6的動态路由協定使用整個網絡能夠互通
實驗拓撲:如下圖
<b>R1</b><b>配置:</b>
R1(config)#ipv6 unicast-routing //開啟IPv6路由功能(不能少)
R1(config)#int fa0/0
R1(config-if)#ipv6 address 2000::1/16
R1(config-if)#no shut
R1(config)#int s1/0
R1(config-if)#ipv6 address 2001::1/16
---------上面為基本IP資訊配置部分------------
R1(config)#ipv6 router rip bjxh //“bjxh”為任意名稱
R1(config-rtr)#exit
R1(config-if)#ipv6 rip bjxh enable //在接口上激活RIP
R1(config-if)#int s1/0
R1(config-if)#ipv6 rip bjxh enable
---------以上為支援IPV6的RIPng動态路由配置部分------------
R1(config)#no ipv6 router rip bjxh //去掉RIP協定
R1(config)#ipv6 router ospf 110 //啟動OSPFv3程序号為110,各路由器可以不同
R1(config-rtr)#router-id 1.1.1.1 //必須指定RID
R1(config-if)#ipv6 ospf 110 area 0 //将接口加入到區域0中
R1(config-if)#ipv6 ospf 110 area 0
---------以上為支援IPV6的OSPFv3動态路由配置部分------------
R1(config)#no ipv router ospf 110
R1(config)#ipv6 router eigrp 90 //啟動EIGRP協定,自治系統号為90,各路由器要相同
R1(config-rtr)#router-id 1.1.1.1 //需要指定RID
R1(config-rtr)#no shut //一定要激活協定
R1(config-rtr)#ex
R1(config-if)#ipv6 eigrp 90 //在接口上激活協定
R1(config-if)#ipv6 ei 90
---------以上為支援IPV6的EIGRP動态路由配置部分------------
<b>R2</b><b>配置</b>
R2(config)#ipv6 unicast-routing
R2(config)#int s1/0
R2(config-if)#ipv6 address 2001::2/16
R2(config-if)#no shut
R2(config)#int s1/1
R2(config-if)#ipv6 address 2002::1/16
---------以上為基本IP資訊配置部分------------
R2(config)#ipv6 router rip bjxh
R2(config-rtr)#exit
R2(config-if)#ipv6 rip bjxh en
R2(config-if)#int s1/1
R2(config-if)#ipv rip bjxh en
R2(config)#no ipv6 router rip bjxh
R2(config)#ipv6 router ospf 110
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#ex
R2(config-if)#ipv ospf 110 a 0
R2(config-if)#ipv os 110 a 1
R2(config)#no ipv6 router ospf 110
R2(config)#ipv6 router eigrp 90
R2(config-rtr)#no shut
R2(config-if)#ipv ei 90
<b>R3</b><b>配置:</b>
R3(config)#ipv6 unicast-routing
R3(config)#int s1/0
R3(config-if)#ipv add 2002::2/16
R3(config-if)#no shut
R3(config-if)#int fa0/0
R3(config-if)#ipv add 2003::1/16
R3(config)#ipv6 router rip bjxh
R3(config)#int fa0/0
R3(config-if)#ipv rip bjxh en
R3(config-if)#int s1/0
---------以上為支援IPV6的RIP動态路由配置部分------------
R3(config)#no ipv router rip bjxh
R3(config)#ipv router os 110
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#ex
R3(config-if)#ipv os 110 a 1
R3(config)#no ipv router ospf 110
R3(config)#ipv6 router eigrp 90
R3(config-rtr)#no shut
R3(config-if)#ipv ei 90
R3#show ipv rou
IPv6 Routing Table - 8 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route
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 - EIGRP, EX - EIGRP external
R 2000::/16 [120/3]
via FE80::C000:13FF:FE2C:0, Serial1/0
R 2001::/16 [120/2]
---------部分省略-----------
R3#show ipv route
OI 2000::/16 [110/138]
OI 2001::/16 [110/128]
D 2000::/16 [90/2707456]
D 2001::/16 [90/2681856]
R3#p 2000::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2000::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/88/192 ms
<b>這隻是這三種路由協定的最基本配置,還有很多性能調優性的配置這裡沒有列出</b>
<b>以及支援</b><b>Ipv6</b><b>的</b><b>IS-IS</b><b>協定以及</b><b>BGP</b><b>協定會在後續的博文中寫出。</b>
本文轉自Y.weisheng 51CTO部落格,原文連結:http://blog.51cto.com/yuan2/228708,如需轉載請自行聯系原作者