
实验目的
MPLS VPN跨域optionA
实验过程
- AS内底层ospf互通,24 57建立IBGP邻居,MP-IBGP邻居,使能MPLS LDP
- 12.45.78之间ospf互通
- 2.4.5.7上互相引入路由
- AS内底层ospf互通,24 57建立IBGP邻居,MP-IBGP邻居,使能MPLS LDP
R7配置举例
sy
sy R7
mpls lsr-id 7.7.7.7
mpls
mpls ldp
int g0/0/2
ip ad 192.168.67.7 24
os en 1 ar 0
mpls
mpls ldp
int g0/0/0
ip ad 192.168.78.7 24
int l0
ip ad 7.7.7.7 32
os en 1 ar 0
ospf 1 r 7.7.7.7
ar 0
bgp 567
rou 5.5.5.5
pe 7.7.7.7 as 567
pe 7.7.7.7 connect-interface l0
ipv4-family vpnv4
peer 7.7.7.7 enable
验证如下




2.12.45.78之间ospf互通
R1
sy
sy R1
int g0/0/0
ip ad 192.168.12.1 24
os en 1 ar 0
int l0
ip ad 1.1.1.1 32
os en 1 ar 0
ospf 1 r 1.1.1.1
ar 0
R2
sy
ip vpn-instance 2
route-distinguisher 234:2
vpn-target 1:2 export-extcommunity
vpn-target 2:1 import-extcommunity
int g0/0/0
ip binding vpn-instance 2
ip ad 192.168.12.2 24
os en 2 ar 0
ospf 2 router-id 2.2.2.2 vpn-instance 2
area 0.0.0.0
R4
sy
ip vpn-instance 4
route-distinguisher 234:4
vpn-target 2:1 export-extcommunity
vpn-target 1:2 import-extcommunity
int g0/0/1
ip binding vpn-instance 4
ip ad 192.168.45.4 24
os en 2 ar 0
ospf 2 router-id 4.4.4.4 vpn-instance 4
area 0.0.0.0
R5
sy
ip vpn-instance 5
route-distinguisher 567:5
vpn-target 7:8 export-extcommunity
vpn-target 8:7 import-extcommunity
int g0/0/1
ip binding vpn-instance 5
ip ad 192.168.45.5 24
os en 2 ar 0
ospf 2 router-id 5.5.5.5 vpn-instance 5
area 0.0.0.0
R7
sy
ip vpn-instance 7
route-distinguisher 567:7
vpn-target 8:7 export-extcommunity
vpn-target 7:8 import-extcommunity
int g0/0/0
ip binding vpn-instance 7
ip ad 192.168.78.7 24
os en 2 ar 0
ospf 2 router-id 7.7.7.7 vpn-instance 7
area 0.0.0.0
R8
sy
sy R8
int g0/0/0
ip ad 192.168.78.8 24
os en 1 ar 0
int l0
ip ad 8.8.8.8 32
os en 1 ar 0
ospf 1 r 8.8.8.8
ar 0
验证




3.2.4.5.7上互相引入路由
R2
sy
ospf 2 vpn-instance 2
import-route bgp
bgp 234
ipv4-family vpn-instance 2
import-route ospf 2
R4
sy
ospf 2 vpn-instance 4
import-route bgp
dn-bit-check disable summary
bgp 234
ipv4-family vpn-instance 4
import-route ospf 2
R5
sy
ospf 2 vpn-instance 5
import-route bgp
dn-bit-check disable summary
bgp 567
ipv4-family vpn-instance 5
import-route ospf 2
R7
sy
ospf 2 vpn-instance 7
import-route bgp
bgp 567
ipv4-family vpn-instance 7
import-route ospf 2
验证

