MSR系列路由器
IPv6隧道技术之6PE隧道技术配置
一、组网需求:
MPLS/VPN技术已经广泛使用,6PE技术通过在PE上对IPv6数据进行MPLS的封装,将IPv6数据打上标签再传给P设备,P路由器通过标签进行转发,到对端PE路由器后再将标签弹出,取出IPv6数据,实现IPv6跨MPLS/VPN网络的互联。对于PE路由器来说,必须是双栈路由器,支持IPv6。
设备清单:MSR系列路由器3台
二、组网图:
三、配置步骤:
R1 配置 |
# router id # ipv6 # mpls lsr-id # mpls # mpls ldp # interface LoopBack0 ipv6 address 1::1/128 ip
address # interface GigabitEthernet0/0 port link-mode route ip address 192.3.2.100 255.255.255.0 mpls mpls ldp # bgp 100 undo synchronization group in internal peer peer # ipv6-family //将IPv6直连路由引入到BGP中 import-route direct undo synchronization peer peer # ospf 1 are network 192.3.2.0 network # |
MSR2 配置 |
# router id # mpls
lsr-id # mpls # mpls
ldp # interface
Ethernet0/0 port
link-mode route ip address 192.3.2.200 255.255.255.0 mpls mpls ldp # interface
Ethernet0/1 port link-mode route ip address 192.1.2.200
255.255.255.0 mpls mpls ldp # ospf 1 are network network 192.3.2.0 network 192.1.2.0 # |
MSR3 配置 |
# router id # ipv6 # mpls lsr-id # mpls # mpls ldp # interface Ethernet0/0 port link-mode route ip address 192.1.2.50 255.255.255.0 mpls mpls ldp # interface LoopBack0 ipv6 address 1::2/128 ip
address # interface LoopBack1 ipv6 address 2::1/128 # bgp 100 undo synchronization group in internal peer peer # ipv6-family import-route direct undo synchronization peer peer # ospf 1 are network 192.1.2.0 network # |
四、配置关键点:
1) 首先要保证IPv4网络连通和MPLS LSP建立
2) 在BGP的IPv6视图下使能IPv6标签路由的交换能力