一种运营商利用原有的IPV4网络通过MPLS-BGP实现IPV6站点之间互通的技术,通过VPN实例将各个站点逻辑隔离,达到多站点互通的目的。
1、PE设备公网上接口,底层IGP选择ISIS,公网接口下开启MPLS与MPLS LDP;
2、PE与CE接口通过VPN实例绑定,实例中起IPV6支持;
3、PE之间起IPV6 VPNV6邻居,传递VPNV6路由;
4、PE上BGP IPV6 VPN实例中引入去往本端CE环回口路由。
1、PE设备公网上接口,底层IGP选择ISIS,公网接口下开启MPLS与MPLS LDP
PE1上(配置略过):
查看MPLS LDP 会话状态:
dis mpls ldp session
2、PE与CE接口通过VPN实例绑定,实例中起IPV6支持
PE1上:
ipv6
ip vpn-instance VPNA
ipv6-family //起ipv6簇
route-distinguisher 1:2
vpn-target 100:100 export-extcommunity
vpn-target 100:100 import-extcommunity
interface GigabitEthernet0/0/0
ip binding vpn-instance VPNA
ipv6 enable
ipv6 address 2001::2/64
PE2上:
ipv6
ip vpn-instance VPNB
ipv6-family
route-distinguisher 3:4
vpn-target 100:100 export-extcommunity
vpn-target 100:100 import-extcommunity
interface GigabitEthernet0/0/1
ip binding vpn-instance VPNB
ipv6 enable
ipv6 address 2004::3/64
3、PE之间起IPV6 VPNV6邻居,传递VPNV6路由
PE1上:
bgp 100
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
undo peer 3.3.3.3 enable
#
ipv6-family vpnv6
policy vpn-target
peer 3.3.3.3 enable
PE2上:
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
undo peer 2.2.2.2 enable
#
ipv6-family vpnv6
policy vpn-target
peer 2.2.2.2 enable
查看BGP VPNV6对等体状态:
4、PE上BGP IPV6 VPN实例中引入去往本端CE环回口路由
PE1上:
ipv6 route-static vpn-instance VPNA 2001:1::1 128 2001::1
bgp 100
#
ipv6-family vpn-instance VPNA //IPV6实例下引入路由
import-route static
PE2上:
ipv6 route-static vpn-instance VPNB 2004:4::4 128 2004::4
bgp 100
#
ipv6-family vpn-instance VPNB //IPV6实例下引入路由
import-route static
此时可在PE2设备上看是否学到对端IBGP发来的路由,PE1略过
dis bgp vpnv6 all routing-table
最后在CE设备上给出口路由
CE1上:
ipv6 route-static :: 0 2001::2 //CE1上给条出口路由
CE2上:
ipv6 route-static :: 0 2004::3 //CE2上给条出口路由
CE2上测试:
ping ipv6 -a 2004:4::4 2001:1::1