设为首页 收藏本站
查看: 917|回复: 0

[CCIE学习笔记]IPV6 to IPV4 Tunnels

[复制链接]

尚未签到

发表于 2015-5-26 05:43:12 | 显示全部楼层 |阅读模式
  The Scenario:
Let's say there are 2 ipv6 sites separated by an ipv4 domain.
ipv6 --------    r-A  ---    ipv4    -----   r-B    ----- ipv6
  I want to configure a ipv6 to ipv4 tunnel between R-A and R-B.
According to the Cisco doc's, I don't need to configure a tunnel destination on either side of the tunnel.
See this link:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/ipv6_c/sa_tunv6.htm#wp1037465
  Embedded in the ipv6 address of the tunnel interface is an ipv4 address that's local to the router on which this tunnel is configured.
  That being the case, how does the one end of the tunnel find the other end?
I assume in this example, R-A and R-B don't have to share a common link.
  A Proposed Solution:
My understanding is that because ipv6 to ipv4 tunnels are by their nature automatic then you do not explicitly define a destination address, this allows the underlying IPv4 transport network to act as a psuedo NBMA network.  Each IPv6 network you create on the edge of the domain will have the IPv4 address of its source tunnel embedded.  I shall try and illustrate, using the example below:
  Let say RA has a S0 with an ip address of 192.168.99.1/24.  Now this will be the interface to the IPv4 domain.
  Now we need to create an IPv6 Prefix for RA using this network address, the rules state that this should be /48 address starting with 2002::  So now our
IPv6 prefix is 2002:c0a8:6301::/48  This prefix can be subnetted to create subnets on the RA router, one for the tunnel and one for the network.
  Now our IPv6 domain is on E0 of RA, so I shall assign the address:
2002:c0a8:6301:1::1/64 to this interface.  And to the tunnel interface I shall assign the subnet 2002:c0a8:6301::1/64
  So far so good..............
  Now we have to conduct a similar exercise on RB.
  RB has an S0 ipv4 address of 172.16.16.1/24.  This is the interface to the IPv4 domain.
  Need to now create an IPv6 /48 prefix as above.  This will result in
2002:ac10:1001::/48  From this prefix I shall create some IPv6 subnets one for the tunnel interface and one for the E0 interface to RB's IPv6 domain.
E0 = 2002:ac10:1001:1::1/64
T0 = 2002:ac10:1001::/64
  One last task to conduct on each router, I have to create a static route to the Tunnel interfaces.  On both RA and RB I shall create
  ipv6 route 2002::/16 tunnel 0
  This has the function that, if after performing a longest match the router does not find a local 2002:: address it will send any packet destined to 2002:: to tunnel 0.
  Now here comes the elegance of the solution!!!
  A host on the subnet, lets say 2002:c0a8:6301:1::4/64 wants to send to a host on 2002:ac10:1001:1::5/64.  The IPv6 packet will be sent to the RA's E0 interface,  RA will now look at its routing table and send the packet to tunnel 0.
  Tunnel 0 will recognise that it is configured for ipv6ip 6to4 and will look at the IPv4 address of S0 and determine the source to be 192.168.199.1  it will now look at the destination IPv6 address 2002:ac10:1001:1::5/64, it will strip of 2002 read the next 4 bytes and determine the destination of the tunnel is 172.16.16.1.  Hey presto we have the source and destination address of the tunnel.
  Bingo!!!

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-70633-1-1.html 上篇帖子: 全球CCIE数量及分布(2005年5月23日版) 下篇帖子: 北京CCIE 实验室考试考场地址及付款信息
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表