BGP邻居建立+BGP路由传递解决方案之BGP反射器(Route-Reflector)+BGP联邦综合实验2
2012-07-06 19:10
573 查看
上接实验一 http://3824597.blog.51cto.com/3814597/922532
BGP联邦其实就把一个AS(AS123)看成一个国家,然后国家里面有省(联邦65012和联邦65003),换句话说把大的AS划分成几个小的AS。所以在联邦内用自己的小AS,而对外的时候,需要声明自己是大AS(123)首先删除R1,R2,R3上的 BGPR1(config)#no router bgp 123R2(config)#no router bgp 123R3(config)#no router bgp 123然后再AS123内运行私有的AS,R1和R2为一个联邦AS65012,R3为一个联邦AS65003R2(config)#router bgpR2(config)#router bgp 65012R2(config-router)#bgp router-id 2.2.2.2
R2(config-router)#no syR2(config-router)#no auR2(config-router)#nei 24.1.1.4 remote 400R2(config-router)#nei 1.1.1.1 remote 65012R2(config-router)#nei 1.1.1.1 up lo 0R2(config-router)#nei 1.1.1.1 next-hop-self
*Mar1 02:27:54.183: %BGP-3-NOTIFICATION: received from neighbor 24.1.1.4 2/2 (peer in wrong AS) 2 bytes FDF4
注意路由器提示的错误信息,BGP错误,这是必然的,因为R4上指明的是邻居AS为123,而这里是私有的AS65012,所以要解决这个问题,就要打上如下命令:R2(config-router)#bgp confederation identifier 123R2(config-router)#*Mar1 02:30:41.539: %BGP-5-ADJCHANGE: neighbor 24.1.1.4 Up邻居起来了注意:在所有的联邦都路由器上打上这条命令R3 R1上同理。R1(config)#router bgp 65012R1(config-router)#bgp router-id 1.1.1.1R1(config-router)#no syR1(config-router)#no auR1(config-router)#nei 2.2.2.2 remote 65012R1(config-router)#nei 2.2.2.2 up lo 0R1(config-router)#nei 2.2.2.2 next-hop-selfR1(config-router)#nei 3.3.3.3 remote 65003R1(config-router)#nei 3.3.3.3 update-source lo 0R1(config-router)#nei 3.3.3.3 next-hop-self
R3(config)#router bgp 65003R3(config-router)#bgp router-id 3.3.3.3R3(config-router)#no syR3(config-router)#no auR3(config-router)#nei 1.1.1.1 remote 65012R3(config-router)#nei 1.1.1.1 up lo 0R3(config-router)#nei 1.1.1.1 next-hop-selfR3(config-router)#nei 35.1.1.5 remote 400R3(config-router)#bgp confederation identifier 123打完上面的命令后,查看R1,R2,R3 BGPR1#show ip bgp summaryNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd2.2.2.24 650121312200 00:08:1713.3.3.34 6500300000 neverIdleR2#show ip bgp summaryNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd1.1.1.14 650121213200 00:08:03024.1.1.444002221200 00:10:351R3#show ip bgp summaryNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd1.1.1.14 6501200000 neverIdle35.1.1.5450054 100 00:00:101发现R1和R3的邻居关系没有建立起来,为毛会这样啦?因为 R1和R3分别属于两个联邦,相当于他们是一个联邦EBGP邻居,要想建立,则需要下面的命令才行:R1(config-router)#bgp confederation peers 65003 相当于说明他自己的链表65012等价于65003,或者65003是EBGP邻居,就需要配置多跳属性R1(config-router)#nei 3.3.3.3 ebgp-multihop 2 //多跳R3(config-router)#bgp confederation peers 65012R3(config-router)#nei 1.1.1.1 ebgp-multihop 2然后再查看:R1#show ip bgp sumNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd2.2.2.24 650121818300 00:13:1613.3.3.34 6500355300 00:00:441邻居起来了路由也学到了R1#show ip bgpNetworkNext HopMetric LocPrf Weight Path*>i4.4.4.0/242.2.2.201000 400 i*> 5.5.5.0/243.3.3.301000 (65003) 500 iR2#show ip bgpNetworkNext HopMetric LocPrf Weight Path*> 4.4.4.0/2424.1.1.400 400 i*>i5.5.5.0/241.1.1.101000 (65003) 500 iR3#show ip bgpNetworkNext HopMetric LocPrf Weight Path*> 4.4.4.0/241.1.1.101000 65012 400 i*> 5.5.5.0/2435.1.1.500 500 i
BGP联邦其实就把一个AS(AS123)看成一个国家,然后国家里面有省(联邦65012和联邦65003),换句话说把大的AS划分成几个小的AS。所以在联邦内用自己的小AS,而对外的时候,需要声明自己是大AS(123)首先删除R1,R2,R3上的 BGPR1(config)#no router bgp 123R2(config)#no router bgp 123R3(config)#no router bgp 123然后再AS123内运行私有的AS,R1和R2为一个联邦AS65012,R3为一个联邦AS65003R2(config)#router bgpR2(config)#router bgp 65012R2(config-router)#bgp router-id 2.2.2.2
R2(config-router)#no syR2(config-router)#no auR2(config-router)#nei 24.1.1.4 remote 400R2(config-router)#nei 1.1.1.1 remote 65012R2(config-router)#nei 1.1.1.1 up lo 0R2(config-router)#nei 1.1.1.1 next-hop-self
*Mar1 02:27:54.183: %BGP-3-NOTIFICATION: received from neighbor 24.1.1.4 2/2 (peer in wrong AS) 2 bytes FDF4
注意路由器提示的错误信息,BGP错误,这是必然的,因为R4上指明的是邻居AS为123,而这里是私有的AS65012,所以要解决这个问题,就要打上如下命令:R2(config-router)#bgp confederation identifier 123R2(config-router)#*Mar1 02:30:41.539: %BGP-5-ADJCHANGE: neighbor 24.1.1.4 Up邻居起来了注意:在所有的联邦都路由器上打上这条命令R3 R1上同理。R1(config)#router bgp 65012R1(config-router)#bgp router-id 1.1.1.1R1(config-router)#no syR1(config-router)#no auR1(config-router)#nei 2.2.2.2 remote 65012R1(config-router)#nei 2.2.2.2 up lo 0R1(config-router)#nei 2.2.2.2 next-hop-selfR1(config-router)#nei 3.3.3.3 remote 65003R1(config-router)#nei 3.3.3.3 update-source lo 0R1(config-router)#nei 3.3.3.3 next-hop-self
R3(config)#router bgp 65003R3(config-router)#bgp router-id 3.3.3.3R3(config-router)#no syR3(config-router)#no auR3(config-router)#nei 1.1.1.1 remote 65012R3(config-router)#nei 1.1.1.1 up lo 0R3(config-router)#nei 1.1.1.1 next-hop-selfR3(config-router)#nei 35.1.1.5 remote 400R3(config-router)#bgp confederation identifier 123打完上面的命令后,查看R1,R2,R3 BGPR1#show ip bgp summaryNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd2.2.2.24 650121312200 00:08:1713.3.3.34 6500300000 neverIdleR2#show ip bgp summaryNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd1.1.1.14 650121213200 00:08:03024.1.1.444002221200 00:10:351R3#show ip bgp summaryNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd1.1.1.14 6501200000 neverIdle35.1.1.5450054 100 00:00:101发现R1和R3的邻居关系没有建立起来,为毛会这样啦?因为 R1和R3分别属于两个联邦,相当于他们是一个联邦EBGP邻居,要想建立,则需要下面的命令才行:R1(config-router)#bgp confederation peers 65003 相当于说明他自己的链表65012等价于65003,或者65003是EBGP邻居,就需要配置多跳属性R1(config-router)#nei 3.3.3.3 ebgp-multihop 2 //多跳R3(config-router)#bgp confederation peers 65012R3(config-router)#nei 1.1.1.1 ebgp-multihop 2然后再查看:R1#show ip bgp sumNeighborVAS MsgRcvd MsgSentTblVerInQ OutQ Up/DownState/PfxRcd2.2.2.24 650121818300 00:13:1613.3.3.34 6500355300 00:00:441邻居起来了路由也学到了R1#show ip bgpNetworkNext HopMetric LocPrf Weight Path*>i4.4.4.0/242.2.2.201000 400 i*> 5.5.5.0/243.3.3.301000 (65003) 500 iR2#show ip bgpNetworkNext HopMetric LocPrf Weight Path*> 4.4.4.0/2424.1.1.400 400 i*>i5.5.5.0/241.1.1.101000 (65003) 500 iR3#show ip bgpNetworkNext HopMetric LocPrf Weight Path*> 4.4.4.0/241.1.1.101000 65012 400 i*> 5.5.5.0/2435.1.1.500 500 i
相关文章推荐
- BGP邻居建立+BGP路由传递解决方案之BGP反射器(Route-Reflector)+BGP联邦综合实验1
- BGP多跳建立邻居实验总结
- BGP邻居建立与路由发布
- BGP邻居建立与路由发布
- BGP邻居建立和路由黑洞解决办法
- BGP route-map 策略路由通告测试报告 推荐
- 路由交换综合实验(用HSRP、OSPF、VTP、DHCP、ACL等)
- IS-IS OSPF EIGRP RIPV2 多协议多进程路由重发布综合实验
- EBGP和IBGP邻居建立条件实验
- [Azure]关于用户定义路由(User Defined Route)和 IP 转发功能(IP Forwarding)的测试实验总结
- EBGP与IBGP邻居路由传递的细节剖析
- IGP综合实验,要求末梢路由器只学到默认路由的n种解决办法
- CCIE路由实验(1) -- BGP的基本配置
- 在ISP 设备上建立BGP路由是,最好是吧,ISP连接CE直接的线路路由通告到BGP进程里,这样BGP的CE才可以学到PE-CE的直连路由,除非题目要求ISP的PE不可以通知face面向CE的直连路由
- CCNP实验精选之BGP大综合
- cisco路由器综合实验之一 热备份路由的配置(HSRP)
- BGP综合实验报告