ipv6笔记Word文件下载.docx
《ipv6笔记Word文件下载.docx》由会员分享,可在线阅读,更多相关《ipv6笔记Word文件下载.docx(17页珍藏版)》请在冰豆网上搜索。
1(lo02001:
1)
R22001:
2(lo02001:
2)
2
R32001:
3(lo02001:
3)
R42001:
4(lo02001:
4)
OSPF规划
(lo0)R1----R2(lo0)AS0
R2-----R3(lo0),R4(lo0)AS1
链路方式
R1---P-TO-P---R2
R2---NBMA---R3,R4
配置
R1
ipv6unicast-routing
intlo0
ipv6enable
ipv6add2001:
1/64
ints1/0
encfram
noframinv
frammapipv62001:
2102broadcast
nosh
R2
2/64
enfram
noframinv
1201broadcast
ints1/1
3213broadcast
4214broadcast
R3
3/64
2312b
4312b
R4
4/64
2412b
3412b
协议配置
ipv6routerospf100
router-id1.1.1.1
passive-interfacelo0
exit
ipv6ospf100area0
showipv6ospfints1/0
会看到类型是NBMA的但是在这里要求配置成点到点的
ipv6ospfnetworkpoint-to-point
router-id2.2.2.2
ipv6ospf100area1
ipv6ospfneighbor2001:
3priority0
这时会报错先不去管
继续往下
ping2001:
1
.....(不通)
原因是下一跳不可达封装失败
ipv6addressfe80:
1link-local
showipv6interfaces1/0
会看到改变了
2link-local
3link-local
4link-local
showipv6routerospf
会看到地址表变了
frammapipv6fe80:
!
会发现通了但是反响仍然不通
解决刚才报错的问题
报错信息为需要使用link-local地址
ipv6ospfneighborfe80:
4priority0
router-id3.3.3.3
ipv6ospfpriority0(放弃DR)
router-id4.4.4.4
4412broadcast
2312broadcast
4312broadcast
2412broadcast
3412broadcast
showipv6ospfnei
showipv6routeospf
尝试做BGP
routerbgp100
bgprouter-id1.1.1.1
noau
nosy
neighbor2001:
4remote-as100
4uplo0
addipv6
nei2001:
4ac
bgprouter-id4.4.4.4
1remote-as100
1uplo0
addipv6
1ac
showipbgpsumm
会看到邻居起来了
showipbgpneighbor
intlo1
44:
net2001:
showipbgpipv6unicast
showipbgpipv6unicast
会看到已经学到了路由
showipv6routerbgp
会看到已学到了
4
UUUU
不通原因是R2没有去往44的表向
解决办法
1启动MPLS(IPV6)
2R2做BGP做RR
IPv4-to-IPv6
解决办法有两种
1双站既启IPV6又启IPV4
配置案例
2Tunnel
R1和R2启用RIPng(ipv6)
R4和R5启用ISIS(ipv6)
R2和R4之间启用tunnel
ipv6routerriptest
ipv6enable(可不敲)
1/128
ipv6addfe80:
frammapipv2001:
2102b
frammapipvfe80:
ipv6riptestenable
ipvadd2001:
2/128
ipvaddress2001:
ipvaddressfe80:
1201b
ipv6riptestdefault-informationoriginate
(放一条缺省路由给R1)
nosh
showipv6route
会看到一条:
路由从RIP学过来的
routerisis
net49.0000.0000.0004.00
4/128
ipv6routerisis
45:
frammapip2001:
5415b(保证直连地址能PING通)
frammapipfe80:
5415b(保证数据能PING通)
frammapclns415broadcast(保证路由PING通)
R5
net49.0000.0000.0005.00
5/128
5/64
5link-local
4514b(保证直连地址能PING通)
4514b(保证数据能PING通)
frammapclns514broadcast(保证路由PING通)
showframmap
ipaddress2.2.2.2255.255.255.255
ipadd23.23.23.2255.255.255.0
frammapip23.23.23.3213b
ipadd3.3.3.3255.255.255.255
ipadd23.23.23.3255.255.255.0
frammapip23.23.23.2312b
ipadd34.34.34.3255.255.255.0
enfram
frammapip34.34.34.4304b
ipadd4.4.4.4255.255.255.255
ipadd34.34.34.4255.255.255.0
frammapip34.34.34.3403b
ipospfnetpoint-to-point
routerospf100
net2.2.2.20.0.0.0a0
net23.23.23.00.0.0.255a0
net3.3.3.30.0.0.0a0
net34.34.34.00.0.0.255a0
net4.4.4.40.0.0.0a0
showipospfnei
showisisnei
showipv6routerisis
intt0
24:
tunnelsourcelo0
tunneldes4.4.4.4
tunnelmodeipv6ip
tunneldes2.2.2.2
2
inttun0
showipv6ospfinttun0会看到模式是点到点
redisriptest
redisriptestinclude-connected
showipv6ospfdata看是否导入
rediisislevel-1-2
rediconn
rediisisinclude-connected
R4需要把ospfv3导入进isis(但在视频版本不支持)
R2需要把OSPF导入到RIP(由于刚才做了缺省路由所以这里可以不导)
继续红色部分
在这里使用默认路由
ipv6route:
/0s1/12001:
22.IPV6-IPV4+Tunnel实验
2012/3/20