MPLS hub and spoke 实验问题



题目说明: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
!         
-------------------------------------------------

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值