实验目的
MPLS VPN跨域optionB
实验过程
- AS内ISIS互通,24.57建立IBGP邻居,MP-IBGP邻居,使能MPLS
- 12.45.78之间建立邻居
- 互相导入路由
1.AS内ISIS互通,24.57建立IBGP邻居,MP-IBGP邻居,使能MPLS
R4配置举例
sy
sy R4
isis 1
cost-style wide
network-entity 49.0001.0000.0000.0004.00
is-name R4
is-level level-2
mpls lsr-id 4.4.4.4
mpls
mpls ldp
int g0/0/1
ip ad 192.168.45.4 24
mpls
int g0/0/0
ip ad 192.168.34.4 24
isis enable 1
mpls
mpls ldp
int l0
ip ad 4.4.4.4 32
isis enable 1
bgp 234
rou 4.4.4.4
pe 2.2.2.2 as 234
pe 2.2.2.2 connect-interface l0
ipv4-family vpnv4
peer 2.2.2.2 enable
验证结果
2.12.45.78之间建立邻居
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
isis enable 2
isis 2 vpn-instance 2
cost-style wide
network-entity 49.0001.0000.0000.0002.00
is-name R2
is-level level-2
R1
sy
sy R1
isis 1
cost-style wide
network-entity 49.0001.0000.0000.0001.00
is-name R1
is-level level-2
int g0/0/0
ip ad 192.168.12.1 24
isis enable 1
int l0
ip ad 1.1.1.1 32
isis enable 1
R4
bgp 234
peer 192.168.45.5 as 567
ipv4-family vpnv4
peer 192.168.45.5 enable
undo policy vpn-target
3.互相导入路由
R2
sy
isis 2 vpn-instance 2
import-route bgp
bgp 234
ipv4-family vpn-instance 2
import-route isis 2
R7
sy
isis 2 vpn-instance 7
import-route bgp
bgp 567
ipv4-family vpn-instance 7
import-route isis 2