【IPV6】无独有偶的6VPE-IPV6之MBGP-MPLS-大作战
作者:互联网
时间过得很快,一晃十年过去了,互联网的IPV4地址也都快被耗尽了,计划赶不上变化,IPV6部署也在风起云涌,不管是运营商还是企业都开始慢慢的部署并实际运用起来。
对于现有IPV4纯骨干网架构来说,融入IPV6流量承载传输将变得越来越重要。这个文章呢,就是把基于Juniper路由器产品,部署纯MPLS域,来承载IPV6流量
为什么基于Juniper路由器来说呢,因为其他的我都不会,混迹江湖几年,只会Junos。有些技术文档,还是得Google才行,百度一下,分享的人太少。有时间就写写做过的Lab或知识点,希
望对有需要的人提供一点帮助。
案例拓扑:
6VPE配置与常规的配置V4的×××类似,相比而言,6VPE的配置稍微多了VRF路由实例配置。 对于PE与PE互联的接口配置不需要启用family inet6。
6vpe-ce1侧配置:
1. 接口配置
root@Lab:6vpe-ce1# show interfaces | display set
set logical-systems 6vpe-ce1 interfaces ge-0/0/1 unit 14 vlan-id 14
set logical-systems 6vpe-ce1 interfaces ge-0/0/1 unit 14 family inet
set logical-systems 6vpe-ce1 interfaces ge-0/0/1 unit 14 family inet6 address 2001:10:0:14::14/64
set logical-systems 6vpe-ce1 interfaces lo0 unit 14 family inet6 address ::14.14.14.14/128
Note:地址::14.14.14.14/128用来测试CE1和CE2之间互通;
2. 协议配置:
[edit]
root@Lab:6vpe-ce1# show protocols | display set
set logical-systems 6vpe-ce1 protocols bgp group 6vpe type external
set logical-systems 6vpe-ce1 protocols bgp group 6vpe local-address 2001:10:0:14::14
set logical-systems 6vpe-ce1 protocols bgp group 6vpe export send-v6
set logical-systems 6vpe-ce1 protocols bgp group 6vpe neighbor 2001:10:0:14::1 peer-as 100
3. 策略及Routing-options配置
root@Lab:6vpe-ce1# show routing-options | display set
set logical-systems 6vpe-ce1 routing-options router-id 14.14.14.14
set logical-systems 6vpe-ce1 routing-options autonomous-system 200
[edit]
root@Lab:6vpe-ce1# show policy-options | display set
set logical-systems 6vpe-ce1 policy-options policy-statement send-v6 term direct from family inet6
set logical-systems 6vpe-ce1 policy-options policy-statement send-v6 term direct then accept
Note:还是一样的,一定要配置Router-id;
PE1侧配置:
1. 接口配置
[edit]
root@Lab:pe1# show interfaces ge-0/0/2.14 | display set
set logical-systems pe1 interfaces ge-0/0/2 unit 14 vlan-id 14
set logical-systems pe1 interfaces ge-0/0/2 unit 14 family inet
set logical-systems pe1 interfaces ge-0/0/2 unit 14 family inet6 address 2001:10:0:14::1/64
2. 协议 配置:
root@Lab:pe1# show protocols bgp | display set
set logical-systems pe1 protocols bgp group ibgp type internal
set logical-systems pe1 protocols bgp group ibgp local-address 1.1.1.1
set logical-systems pe1 protocols bgp group ibgp neighbor 4.4.4.4 family inet6-*** unicast
3. 路由实例配置
[edit]
root@Lab:pe1# show routing-instances 6vpe-ce1 | display set
set logical-systems pe1 routing-instances 6vpe-ce1 instance-type vrf
set logical-systems pe1 routing-instances 6vpe-ce1 interface ge-0/0/2.14
set logical-systems pe1 routing-instances 6vpe-ce1 route-distinguisher 100:1
set logical-systems pe1 routing-instances 6vpe-ce1 vrf-target target:100:1
set logical-systems pe1 routing-instances 6vpe-ce1 routing-options router-id 15.15.15.15
set logical-systems pe1 routing-instances 6vpe-ce1 protocols bgp group vpe type external
set logical-systems pe1 routing-instances 6vpe-ce1 protocols bgp group vpe local-address 2001:10:0:14::1
set logical-systems pe1 routing-instances 6vpe-ce1 protocols bgp group vpe neighbor 2001:10:0:14::14 family inet6 unicast
set logical-systems pe1 routing-instances 6vpe-ce1 protocols bgp group vpe neighbor 2001:10:0:14::14 peer-as 200
Note:还是一样的,一定要配置Router-id;
中间P1、P2保持先前的MPLS-LDP-OSPF配置,PE2、6VPE-CE2配置与PE1及6VPE-CE1的配置类似。
状态确认:
1. 6VPE-CE1侧:
[edit]
root@Lab:6vpe-ce1# run show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet6.0
2 2 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
2001:10:0:14::1 100 84 84 0 0 36:05 Establ
inet6.0: 2/2/2/0
[edit]
root@Lab:6vpe-ce1# run show route receive-protocol bgp 2001:10:0:14::1
inet6.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
* ::17.17.17.17/128 2001:10:0:14::1 100 300 I
* 2001:10:0:15::/64 2001:10:0:14::1 100 I
2. PE1侧状态确认
root@Lab:pe1# run show route receive-protocol bgp 4.4.4.4 detail
bgp.l3***-inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
* 100:1:::17.17.17.17/128 (1 entry, 0 announced)
Import Accepted
Route Distinguisher: 100:1
××× Label: 2×××0
Nexthop: ::ffff:4.4.4.4
Localpref: 100
AS path: 300 I
Communities: target:100:1
* 100:1:2001:10:0:15::/64 (1 entry, 0 announced)
Import Accepted
Route Distinguisher: 100:1
××× Label: 2×××0
Nexthop: ::ffff:4.4.4.4
Localpref: 100
AS path: I
Communities: target:100:1
3. 测试从6VPE-CE1到CE2的互通性验证
[edit]
root@Lab:6vpe-ce1# run ping ::17.17.17.17 rapid count 5
PING6(56=40+8+8 bytes) 2001:10:0:14::14 --> ::17.17.17.17
!!!!!
--- ::17.17.17.17 ping6 statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 6.122/8.251/13.034/2.501 ms
[edit]
root@Lab:6vpe-ce1# run ping 2001:10:0:15::15 rapid count 5
PING6(56=40+8+8 bytes) 2001:10:0:14::14 --> 2001:10:0:15::15
!!!!!
--- 2001:10:0:15::15 ping6 statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 3.882/45.782/211.051/82.635 ms
标签:6vpe,14,MPLS,pe1,logical,systems,ce1,IPV6,6VPE 来源: https://blog.51cto.com/8019770/2384842