实验目的
MPLS VPN跨域optionC2
实验过程
- AS内底层ISIS互联,Asbr之间建立MP-IBGP邻居,27,45建立MP-EBGP邻居
- 4.5宣告路由,并导入BGP路由到本地,观察27之间的隧道
- 12.78建立EBGP邻居,互相引入路由
- AS内底层ISIS互联,Asbr之间建立MP-IBGP邻居,27,45建立MP-EBGP邻居
R2
sy
sy R2
mpls lsr 2.2.2.2
mpls
mpls ldp
isis 1
cost-style wide
network-entity 49.0001.0000.0000.0002.00
is-name R2
is-level level-2
int l0
ip address 2.2.2.2 32
isis enable 1
int g0/0/0
ip ad 192.168.12.2 24
int g0/0/1
ip ad 192.168.23.2 24
isis enable 1
mpls
mpls ldp
bgp 234
rou 2.2.2.2
pe 4.4.4.4 as 234
pe 4.4.4.4 connect-interface l0
pe 7.7.7.7 as 567
pe 7.7.7.7 connect-interface l0
pe 7.7.7.7 ebgp-max-hop
ipv4-family vpnv4
peer 4.4.4.4 enable
peer 7.7.7.7 enable
- 4.5宣告路由,并导入BGP路由到本地,观察27之间的隧道
R4
sy
route-policy 4 permit node 10
apply mpls-label
mpls
lsp-trigger bgp-label-route
bgp 234
net 4.4.4.4 32
peer 192.168.45.5 route-policy 4 export
peer 192.168.45.5 label-route-capability
ipv4-family vpnv4
undo policy vpn-target
isis 1
import bgp
3. 12.78建立EBGP邻居,互相引入路由
R1
sy
sy R1
int l0
ip address 1.1.1.1 32
int g0/0/0
ip ad 192.168.12.1 24
bgp 100
pe 192.168.12.2 as 234
net 1.1.1.1 32
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 add 192.168.12.2 24
bgp 234
ipv4-family vpn-instance 2
peer 192.168.78.8 as-number 100
验证如下