Ipv6的OSPF实现
1.拓扑图
2.配置步骤
步骤1:配置路由器R1
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router ospf 1 //启动OSPFv3 路由进程
R1(config-rtr)#router-id 1.1.1.1 //定义路由器ID
R1(config-rtr)#default-information originate metric 30 metric-type 2
//向OSPFv3 网络注入一条默认路由
R1(config)#interface Serial0/0/0
R1(config-if)#ipv6 address 2007:12::1/64
R1(config-if)#ipv6 ospf 1 area 1 //在接口上启用OSPFv3,并声明接口所在区域
R1(config-if)#no shutdown
R1(config)#ipv6 route ::/0 s0/0/1 //配置默认路由
步骤2:配置路由器R2
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router ospf 1
R2(config-rtr)#router-id 2.2.2.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 64000
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 64000
R2(config-if)#no shutdown
步骤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 64000
R3(config-if)#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:配置路由器R4
R4(config)#ipv6 unicast-routing
R4(config)#ipv6 router ospf 1
R4(config-rtr)#router-id 4.4.4.4
R4(config)#interface gigabitEthernet0/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
3.实验调试
(1)show ipv6 ospf database
(2)show ipv6 ospf neighbor
(3)show ipv6 ospf interface
四、实验心得体会
附:Ipv6命令汇总
因篇幅问题不能全部显示,请点此查看更多更全内容