目录
Option B方案实验配置
配置建立Vpnv4邻居
配置反射器
配置RR和ASBR取消RT值检测
配置ASBR相连接口开启MPLS
配置ASBR向RR发送路由时更改下一跳
Option C1方案实验配置
Option C2方案实验配置
接口IP地址、底层IGP路由协议(ISIS)、MPLS LDP协议、PE与CE之间交互配置此处不做讲解(通跨域不带RR解决方案的配置)
MPLS隧道——带RR的跨域解决方案讲解_rr会不会分配标签_静下心来敲木鱼的博客-CSDN博客https://blog.csdn.net/m0_49864110/article/details/127635086配置注意事项
1、为了减轻RR的负担,需要实现转发路径不经过RR,RR只作为控制层面(RR只传递路由,不传输数据)
2、RR不需要开启MPLS(如果RR参与数据转发了,就需要在接口开启MPLS)
Option B方案实验配置
配置建立Vpnv4邻居
PE和RR建立Vpnv4的IBGP邻居
ASBR和RR建立Vpnv4的IBGP邻居
ASBR和ASBR建立Vpnv4的EBGP邻居
PE2和RR1
PE2
bgp 100
peer 11.11.11.11 as 100
peer 11.11.11.11 connect-interface loop 0
ipv4-family unicast
undo peer 11.11.11.11 enable
ipv4-family vpnv4
peer 11.11.11.11 enable
RR1
bgp 100
peer 2.2.2.2 as 100
peer 2.2.2.2 connect-interface loop 0
ipv4-family unicast
undo peer 2.2.2.2 enable
ipv4-family vpnv4
undo policy vpn-target
peer 2.2.2.2 enable
peer 2.2.2.2 next-hop-invariable 配置传递路由时不更改下一跳
RR1和ASBR4
RR1
bgp 100
peer 4.4.4.4 as 100
peer 4.4.4.4 connect-interface loop 0
ipv4-family unicast
undo peer 4.4.4.4 enable
ipv4-family vpnv4
peer 4.4.4.4 enable
peer 4.4.4.4 next-hop-invariable
ASBR4
bgp 100
peer 11.11.11.11 as 100
peer 11.11.11.11 connect-interface loop 0
ipv4-family unicast
undo peer 11.11.11.11 enable
ipv4-family vpnv4
peer 11.11.11.11 enable
ASBR4和ASBR5
ASBR4
bgp 100
peer 100.0.45.5 as 200
ipv4-family unicast
undo peer 100.0.45.5 enable
ipv4-family vpnv4
peer 100.0.45.5 enable
ASBR5
bgp 200
peer 100.0.45.4 as 100
ipv4-family unicast
undo peer 100.0.45.4 enable
ipv4-family vpnv4
peer 100.0.45.4 enable
RR2和ASBR5
RR22
bgp 200
peer 5.5.5.5 as 200
peer 5.5.5.5 connect-interface loop 0
ipv4-family unicast
undo peer 5.5.5.5 enable
ipv4-family vpnv4
peer 5.5.5.5 enable
peer 5.5.5.5 next-hop-invariable
ASBR5
bgp 200
peer 22.22.22.22 as 200
peer 22.22.22.22 connect-interface loop 0
ipv4-family unicast
undo peer 22.22.22.22 enable
ipv4-family vpnv4
peer 22.22.22.22 enable
PE7和RR2
PE7
bgp 200
peer 22.22.22.22 as 200
peer 22.22.22.22 connect-interface loop 0
ipv4-family unicast
undo peer 22.22.22.22 enable
ipv4-family vpnv4
peer 22.22.22.22 enable
RR2
bgp 200
peer 7.7.7.7 as 200
peer 7.7.7.7 connect-interface loop 0
ipv4-family unicast
undo peer 7.7.7.7 enable
ipv4-family vpnv4
undo policy vpn-target
peer 7.7.7.7 enable
peer 7.7.7.7 next-hop-invariable
配置反射器
RR1-客户端为PE2和ASBR4
bgp 100
ipv4-family vpnv4
peer 2.2.2.2 reflect-client
peer 4.4.4.4 reflect-client
RR2-客户端为PE7和ASBR5
bgp 100
ipv4-family vpnv4
peer 7.7.7.7 reflect-client
peer 5.5.5.5 reflect-client
配置RR和ASBR取消RT值检测
RR1和ASBR4
bgp 100
ipv4-family vpnv4
undo policy vpn-target
RR2和ASBR5
bgp 100
ipv4-family vpnv4
undo policy vpn-target
配置ASBR相连接口开启MPLS
ASBR4和ASBR5配置
int g0/0/01
mpls
配置ASBR向RR发送路由时更改下一跳
ASBR4
bgp 100
ipv4-family vpnv4
peer 11.11.11.11 next-hop-local
ASBR5
bgp 200
ipv4-family vpnv4
peer 22.22.22.22 next-hop-local
Option C1方案实验配置
其余配置可参考跨域Option C1(不带RR)的配置
Option C2方案实验配置
其余配置可参考跨域Option C2(不带RR)的配置