時間過得很快,一晃十年過去了,互聯網的IPV4地址也都快被耗盡了,計劃趕不上變化,IPV6部署也在風起雲涌,無論是運營商仍是企業都開始慢慢的部署並實際運用起來。api
對於現有IPV4純骨幹網架構來講,融入IPV6流量承載傳輸將變得愈來愈重要。這個文章呢,就是把基於Juniper路由器產品,部署純MPLS域,來承載IPV6流量架構
爲何基於Juniper路由器來講呢,由於其餘的我都不會,混跡江湖幾年,只會Junos。有些技術文檔,仍是得Google才行,百度一下,分享的人太少。有時間就寫寫作過的Lab或知識點,希ide
望對有須要的人提供一點幫助。測試
案例拓撲:ui
6VPE配置與常規的配置V4的×××相似,相比而言,6VPE的配置稍微多了VRF路由實例配置。 對於PE與PE互聯的接口配置不須要啓用family inet6。spa
6vpe-ce1側配置:router
1. 接口配置blog
root@Lab:6vpe-ce1# show interfaces | display set接口
set logical-systems 6vpe-ce1 interfaces ge-0/0/1 unit 14 vlan-id 14ip
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;
中間P一、P2保持先前的MPLS-LDP-OSPF配置,PE二、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