当前位置:   article > 正文

配置IPv6 over IPv4手动隧道示例_路由ipv6 over ipv4

路由ipv6 over ipv4
组网需求

如图1所示,两台IPv6主机分别通过SwitchA和SwitchC与IPv4骨干网络连接,客户希望两台IPv6主机能通过IPv4骨干网互通。

图1 配置IPv6 over IPv4手动隧道组网图

 

配置思路

配置IPv6 over IPv4手动隧道的思路如下:

  1. 配置IPv4网络。配置接口的IPv4地址和静态路由,使SwitchA、SwitchB和SwitchC三者之间路由互通。

  2. 配置IPv6网络。配置隧道边界设备(SwitchA和SwitchC)的IPv6地址,使隧道边界设备与下挂的IPv6主机之间网络互通。

  3. 配置IPv6 over IPv4手动隧道。配置隧道接口的IPv6地址、协议类型、源接口和目的地址,使IPv6报文可以在IPv4网络中传输。

  4. 配置IPv6报文指向隧道的静态路由,从而使IPv6报文进入隧道。

做业务环回聚合的接口必须是空闲的,没有承载业务的接口。

在Eth-Trunk接口上使能业务环回功能后,加入Eth-Trunk中的物理接口就会处于UP状态,否则Tunnel接口的链路层协议将无法正常运行。

操作步骤
  • SwitchA的配置文件

  1. #
  2. sysname SwitchA
  3. #
  4. ipv6
  5. #
  6. vlan batch 10 100
  7. #
  8. interface Vlanif10
  9. ipv6 enable
  10. ipv6 address FC00:1::1/64
  11. #
  12. interface Vlanif100
  13. ip address 192.168.50.2 255.255.255.0
  14. #
  15. interface Eth-Trunk1
  16. stp disable
  17. service type tunnel
  18. #
  19. interface GigabitEthernet0/0/1
  20. port link-type hybrid
  21. port hybrid pvid vlan 100
  22. port hybrid untagged vlan 100
  23. #
  24. interface GigabitEthernet0/0/2
  25. port link-type access
  26. port default vlan 10
  27. #
  28. interface GigabitEthernet0/0/3
  29. eth-trunk 1
  30. #
  31. interface Tunnel0/0/0
  32. ipv6 enable
  33. ipv6 address FC00:3::1/64
  34. tunnel-protocol ipv6-ipv4
  35. source Vlanif100
  36. destination 192.168.51.2
  37. eth-trunk 1
  38. #
  39. ip route-static 192.168.51.0 255.255.255.0 192.168.50.1
  40. #
  41. ipv6 route-static FC00:2:: 64 Tunnel0/0/0
  42. #
  43. return
  • SwitchB的配置文件

  1. #
  2. sysname SwitchB
  3. #
  4. vlan batch 100 200
  5. #
  6. interface Vlanif100
  7. ip address 192.168.50.1 255.255.255.0
  8. #
  9. interface Vlanif200
  10. ip address 192.168.51.1 255.255.255.0
  11. #
  12. interface GigabitEthernet0/0/1
  13. port link-type hybrid
  14. port hybrid pvid vlan 100
  15. port hybrid untagged vlan 100
  16. #
  17. interface GigabitEthernet0/0/2
  18. port link-type hybrid
  19. port hybrid pvid vlan 200
  20. port hybrid untagged vlan 200
  21. #
  22. return
  • SwitchC的配置文件

  1. #
  2. sysname SwitchC
  3. #
  4. ipv6
  5. #
  6. vlan batch 20 200
  7. #
  8. interface Vlanif20
  9. ipv6 enable
  10. ipv6 address FC00:2::2/64
  11. #
  12. interface Vlanif200
  13. ip address 192.168.51.2 255.255.255.0
  14. #
  15. interface Eth-Trunk1
  16. stp disable
  17. service type tunnel
  18. #
  19. interface GigabitEthernet0/0/1
  20. port link-type hybrid
  21. port hybrid pvid vlan 200
  22. port hybrid untagged vlan 200
  23. #
  24. interface GigabitEthernet0/0/2
  25. port link-type access
  26. port default vlan 20
  27. #
  28. interface GigabitEthernet0/0/3
  29. eth-trunk 1
  30. #
  31. interface Tunnel1
  32. ipv6 enable
  33. ipv6 address FC00:3::2/64
  34. tunnel-protocol ipv6-ipv4
  35. source Vlanif200
  36. destination 192.168.50.2
  37. eth-trunk 1
  38. #
  39. ip route-static 192.168.50.0 255.255.255.0 192.168.51.1
  40. #
  41. ipv6 route-static FC00:1:: 64 Tunnel1
  42. #
  43. return

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/679657
推荐阅读
相关标签
  

闽ICP备14008679号