IPv6实验 6PE

6PE, a similar technology that is used to transport IPv6 traffic across an existing IPv4+MPLS core without touching your core equipment (P routers).

The primary reason for this solution is as of this writing LDP does not support IPv6 prefixes. You can not create a fully functional label switched core using IPv6.  This requires making use of an existing IPv4 label switched core in order to distribute IPv6 labels properly. 6PE uses MP-BGP to distribute labels for IPv6 prefixes since LDP doesn’t currently support it.

We will be using the same network for this solution as we did for the 6VPE example:


R1===========================

ip cef
ipv6 unicast-routing
ipv6 cef

interface Loopback0
 no ip address
 ipv6 address 2000::1/128
!
interface e0/0
 no ip address
no  shutdown
!
interface e0/0.12
en do 12
 no ip address
 ipv6 address 2012::1/64
!
ipv6 route ::/0 2012::2
!

R2=========================================


hostname R2
ip cef
ipv6 unicast-routing
ipv6 cef

mpls label protocol ldp
mpls lab ran 2000 2999

interface Loopback0
 ip address 2.2.2.2 255.255.255.255

interface e0/0
 no ip address
no  shutdown
!
interface e0/0.23
en do 23
 ip address  23.1.1.2 255.255.255.0
 mpls ip
!
interface e0/0.12
en do 12
 no ip address
 ipv6 address 2012::2/64
!
router ospf 100
 router-id 2.2.2.2
 log-adjacency-changes
 network 2.2.2.2 0.0.0.0 area 0
 network 23.1.1.2 0.0.0.0 area 0
!
router bgp 100
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 4.4.4.4 remote-as 100
 neighbor 4.4.4.4 update-source Loopback0
 !
 !
 address-family ipv6
  redistribute connected
  redistribute static
  no synchronization
  neighbor 4.4.4.4 activate
  neighbor 4.4.4.4 send-label
 exit-address-family
!
!
ipv6 route 2000::1/128 2012::1
!
mpls ldp router-id Loopback0
!


R3=====================================

ip cef
no ipv6 cef
!
!
mpls label protocol ldp
mpls lab ra 3000 3999
!
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface e0/0
 no ip address
no  shutdown
!
interface e0/0.23
en do 23
 ip address 23.1.1.3 255.255.255.0
 mpls ip
!
interface e0/0.34
en do 34
 ip address 34.1.1.3 255.255.255.0
 mpls ip
!
router ospf 100
 router-id 3.3.3.3
 log-adjacency-changes
 network 3.3.3.3 0.0.0.0 area 0
 network 23.1.1.3 0.0.0.0 area 0
 network 34.1.1.3 0.0.0.0 area 0

mpls ldp router-id Loopback0


R4===================================

ip cef
ipv6 unicast-routing
ipv6 cef
!
!
mpls label protocol ldp
mpls lab r 4000 4999

!
interface Loopback0
 ip address 4.4.4.4 255.255.255.255
!
interface e0/0
 no ip address
no  shutdown
 
!
interface e0/0.34
en do 34
 ip address 34.1.1.4 255.255.255.0
 mpls ip
!
interface e0/0.45
en do 45
 no ip address
 ipv6 address 2045::4/64
!
router ospf 100
 router-id 4.4.4.4
 log-adjacency-changes
 network 4.4.4.4 0.0.0.0 area 0
 network 34.1.1.4 0.0.0.0 area 0
!
router bgp 100
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 2.2.2.2 remote-as 100
 neighbor 2.2.2.2 update-source Loopback0
 !
 address-family ipv4
  no synchronization
  no auto-summary
 exit-address-family
 !
 address-family ipv6
  redistribute connected
  redistribute static
  no synchronization
  neighbor 2.2.2.2 activate
  neighbor 2.2.2.2 send-label
 exit-address-family

ipv6 route 2000::5/128 2045::5
!
mpls ldp router-id Loopback0

R5=================================================


ip cef

ipv6 unicast-routing
ipv6 cef

!
interface Loopback0
 no ip address
 ipv6 address 2000::5/128
!
interface e0/0
 no ip address
no  shutdown
!
interface e0/0.45
en do 45
 no ip address
 ipv6 address 2045::5/64
!

ipv6 route ::/0 2045::4
!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 是的,eNSP可以用来进行IPv6实验。eNSP是华为公司开发的仿真软件,可以模拟华为网络设备的工作环境,包括路由器、交换机、防火墙等。在eNSP中,可以配置IPv6地址、路由表、协议等,进行IPv6网络的搭建和测试。同时,eNSP也支持IPv4和IPv6的互通,可以帮助用户更好地理解IPv6的工作原理和应用场景。 ### 回答2: 是的,eNSP支持IPv6实验。eNSP是华为网络仿真平台,它提供了一个全面的网络仿真环境,可以用于IPv6实验。在eNSP中,用户可以配置IPv6地址、路由器、交换机等网络设备,模拟和搭建IPv6网络拓扑,进行各种IPv6相关实验和测试。 用户可以在eNSP的界面上直接配置IPv6地址,如IPv6地址分配和前缀长度等。同时,eNSP还提供了多种IPv6功能,例如IPv6路由协议(如OSPFv3、RIPng等)以及IPv6过渡技术(如IPv6隧道、NAT64等)。通过使用这些功能,用户可以深入了解和实践IPv6网络的配置与应用。 此外,eNSP还能模拟真实的IPv6网络环境,包括网络延迟、拓扑结构等,使得用户能够更真实地进行IPv6实验。同时,eNSP提供了实时监控和调试工具,方便用户对IPv6网络进行调试和故障排除。 总而言之,eNSP是一款功能强大的仿真平台,可以帮助用户进行IPv6实验和测试,提供了丰富的功能和工具,使得IPv6实验变得更加简单、快捷和可靠。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值