题目说明:spoke端不能直接通信,必须经过hub端中转,通过hub和spoke端不同的输入输出RT实现,因此上图中,在R3上的任何spoke路由如果没有进入BGP AS300就无法改变RT值,也就无法在R3上直接中转,这里设法使R3向AS 300内的其中一个router通告右侧spoke的路由,再从AS300的另一个router学到这些路由,此题以7.77.7为例,然后改变weight值,让r3优选迂回的路径,从而实现这些spoke路由改变了RT,让另一个spoke可以接受它们。
R1
no ip domain lookup
ip cef
no ipv6 cef
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/0
ip address 12.1.1.1 255.255.255.0
!
interface Ethernet0/1
ip address 13.1.1.1 255.255.255.0
!
!
router bgp 300
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 12.1.1.2 remote-as 300
neighbor 13.1.1.3 remote-as 100
!
-------------------------------------------------------------------
R2:
no ip domain lookup
ip cef
no ipv6 cef
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Ethernet0/0
ip address 12.1.1.2 255.255.255.0
!
interface Ethernet0/1
ip address 23.1.1.2 255.255.255.0
!
router bgp 300
bgp log-neighbor-changes
network 2.2.2.2 mask 255.255.255.255
neighbor 12.1.1.1 remote-as 300
neighbor 23.1.1.3 remote-as 100
neighbor 23.1.1.3 advertisement-interval 60
!
------------------------------------------------------------------------------
R3:
ip vr

该博客详细介绍了如何在MPLS网络中,通过配置BGP和VRF,使得hub路由器R3能够中转spoke路由器之间的通信。具体策略包括在R3上设置路由反射器,通过广告和过滤路由来改变RT值,从而让另一个spoke能够接收这些路由。实验中,R3通过调整weight值,使路由选择更倾向于经过R2的路径,以达到路由中转的目的。
最低0.47元/天 解锁文章
2995

被折叠的 条评论
为什么被折叠?



