实验目的:
掌握IPV6网络的配置和组建。
要求:
利用静态路由协议实现全网互通
利用OSPF路由协议实现全网互通
备 注:【可选】
写出你在实验中遇到的问题或者是新的发现或者新的解决方法(心得体会)
参考配置:
配置RIP:
ROUTER(config)#ipv6 router rip benet
ROUTER(config-rtr)#int e0/0
ROUTER(config-if)#ipv6 rip benet enable
ROUTER(config-if)#int lo1
ROUTER(config-if)#ipv6 rip benet enable
配置OSPF:
ROUTER(config)#ipv6 router ospf 100
ROUTER(config-rtr)#router-id 1.1.1.1(必须人为指定router-id)
ROUTER(config-rtr)#int e0/0
ROUTER(config-if)#ipv6 ospf 100 area 1
ROUTER(config-rtr)#int lo1
ROUTER(config-if)#ipv6 ospf 100 area 1
配置文档:
R1:
en
conf t
host R1
no ip domain-lo
int f0/0
ipv6 address 2001:2::1/64
no sh
exit
int loop 0
ipv6 address 2001:1::1/64
exit
ipv6 unicast-routing
ipv6 router ospf 10
router-id 1.1.1.1
int f0/0
ipv6 ospf 10 area 0
int loop 0
ipv6 ospf 10 area 0
end
--------------------------------------
R2:
en
conf t
host R2
no ip domain-lo
int f0/0
ipv6 address 2001:2::2/64
no sh
exit
int f1/0
ipv6 address 2001:3::1/64
no sh
exit
ipv6 unicast-routing
ipv6 router ospf 10
router-id 1.1.1.2
int f0/0
ipv6 ospf 10 area 0
int f1/0
ipv6 ospf 10 area 1
end
--------------------------------------
R3:
en
conf t
host R3
no ip domain-lo
int f0/0 //配置端口的IPV6地址
ipv6 address 2001:3::2/64
no sh
exit
int loop 0 //配置lo的IPV6地址
ipv6 address 2001:4::1/64
exit
ipv6 unicast-routing
ipv6 router ospf 10 //启动ospf并配置其进程号
router-id 1.1.1.3 //配置router-ID
int f0/0
ipv6 ospf 10 area 1 //将端口映射到OSPF的区域1上
int loop 0
ipv6 ospf 10 area 1
end
--------------------------------------
测试截图:
配置静态路由:
ipv6 route 2008:DDDD::/64 Serial1/0
配置文档:
R1:
en
conf t
host R1
no ip domain-lo
int f0/0
ipv6 address 2001:2::1/64
no sh
exit
int loop 0
ipv6 address 2001:1::1/64
exit
ipv6 unicast-routing
ipv6 route 2001:2::/64 2001:2::2
ipv6 route 2001:3::/64 2001:2::2
ipv6 route 2001:4::/64 2001:2::2
end
--------------------------------------
R2:
en
conf t
host R2
no ip domain-lo
int f0/0
ipv6 address 2001:2::2/64
no sh
exit
int f1/0
ipv6 address 2001:3::1/64
no sh
exit
ipv6 unicast-routing //配置IPV6的流量转发
ipv6 route 2001:2::/64 2001:2::1 //配置静态路由
ipv6 route 2001:1::/64 2001:2::1
ipv6 route 2001:3::/64 2001:3::2
ipv6 route 2001:4::/64 2001:3::2
end
--------------------------------------
R3:
en
conf t
host R3
no ip domain-lo
int f0/0
ipv6 address 2001:3::2/64
no sh
exit
int loop 0
ipv6 address 2001:4::1/64
exit
ipv6 unicast-routing
ipv6 route 2001:3::/64 2001:3::1
ipv6 route 2001:2::/64 2001:3::1
ipv6 route 2001:1::/64 2001:3::1
end
--------------------------------------
测试截图:
配置默认路由:
ipv6 route ::/0 Serial1/0
配置文档:
R1:
en
conf t
host R1
no ip domain-lo
int f0/0
ipv6 address 2001:2::1/64
no sh
exit
int loop 0
ipv6 address 2001:1::1/64
exit
ipv6 unicast-routing
ipv6 route ::/0 2001:2::2 //配置IPV6默认路由
end
--------------------------------------
R2:
en
conf t
host R2
no ip domain-lo
int f0/0
ipv6 address 2001:2::2/64
no sh
exit
int f1/0
ipv6 address 2001:3::1/64
no sh
exit
ipv6 unicast-routing
ipv6 route ::/0 2001:2::1
ipv6 route ::/0 2001:3::2
end
--------------------------------------
R3:
en
conf t
host R3
no ip domain-lo
int f0/0
ipv6 address 2001:3::2/64
no sh
exit
int loop 0
ipv6 address 2001:4::1/64
exit
ipv6 unicast-routing
ipv6 route ::/0 2001:3::1
end
--------------------------------------
测试截图: