BGP路由反射器.docx
《BGP路由反射器.docx》由会员分享,可在线阅读,更多相关《BGP路由反射器.docx(22页珍藏版)》请在冰豆网上搜索。
BGP路由反射器
26、BGP路由反射器
1、实验拓扑图
(一)
2、组网要求
3、基本连通性调试
四、实验关键配置
RT1:
routerospf1
router-id10.0.0.1
redistributeconnectedmetric1000metric-type1subnets
passive-interfacedefault
nopassive-interfaceSerial0/0
network10.0.0.10.0.0.0area0
network10.0.1.40.0.0.3area0
default-informationoriginatealwaysmetric2000metric-type1
!
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.3remote-as65000
neighbor10.0.0.3update-sourceLoopback0
neighbor10.0.0.3next-hop-self
neighbor10.0.0.4remote-as65000
neighbor10.0.0.4update-sourceLoopback0
neighbor10.0.0.4next-hop-self
neighbor10.0.15.2remote-as65001
noauto-summary
RT2:
routerospf1
router-id10.0.0.2
redistributeconnectedmetric1000metric-type1subnets
passive-interfacedefault
nopassive-interfaceSerial0/0
network10.0.0.20.0.0.0area0
network10.0.1.80.0.0.3area0
default-informationoriginatealwaysmetric2000metric-type1
!
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.3remote-as65000
neighbor10.0.0.3update-sourceLoopback0
neighbor10.0.0.3next-hop-self
neighbor10.0.0.4remote-as65000
neighbor10.0.0.4update-sourceLoopback0
neighbor10.0.0.4next-hop-self
neighbor10.0.26.2remote-as65002
noauto-summary
RT3:
routerospf1
router-id10.0.0.3
passive-interfacedefault
nopassive-interfaceSerial0/0
nopassive-interfaceFastEthernet1/0
network10.0.0.30.0.0.0area0
network10.0.1.00.0.0.3area0
network10.0.1.40.0.0.3area0
network10.3.3.00.0.0.255area0
routerbgp65000
nosynchronization
bgplog-neighbor-changes
network10.0.0.0mask255.255.0.0
network10.3.0.0mask255.255.0.0
neighborfuck65000peer-group
neighborfuck65000remote-as65000
neighborfuck65000update-sourceLoopback0
neighborfuck65000route-reflector-client
neighborfuck65000next-hop-self
neighbor10.0.0.1peer-groupfuck65000
neighbor10.0.0.2peer-groupfuck65000
neighbor10.0.0.4remote-as65000
neighbor10.0.0.4update-sourceLoopback0
neighbor10.0.0.4next-hop-self
noauto-summary
RT4:
routerospf1
router-id10.0.0.4
log-adjacency-changes
network10.0.0.40.0.0.0area0
network10.0.1.00.0.0.3area0
network10.0.1.80.0.0.3area0
network10.3.4.00.0.0.255area0
!
routerbgp65000
nosynchronization
bgplog-neighbor-changes
network10.0.0.0mask255.255.0.0
network10.3.0.0mask255.255.0.0
neighborfuck65000peer-group
neighborfuck65000remote-as65000
neighborfuck65000route-reflector-client
neighborfuck65000next-hop-self
neighbor10.0.0.1peer-groupfuck65000
neighbor10.0.0.2peer-groupfuck65000
neighbor10.0.0.3remote-as65000
neighbor10.0.0.3update-sourceLoopback0
neighbor10.0.0.3next-hop-self
noauto-summary
RT5:
routerbgp65001
nosynchronization
network10.5.0.0mask255.255.0.0
neighbor10.0.15.1remote-as65000
noauto-summary
!
iproute10.5.0.0255.255.0.0Null0
!
RT6:
routerbgp65002
nosynchronization
network10.6.0.0mask255.255.0.0
neighbor10.0.26.1remote-as65000
noauto-summary
!
iproute10.6.0.0255.255.0.0Null0
!
五、实验连通性及其调试:
Ping测试:
10.6.6.1去往10.5.5.1..................
一、实验(路由反射簇)拓扑图
(二)
二、组网需求:
三、实验关键配置
RT1:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
network10.0.0.0mask255.255.0.0
neighbor10.0.0.2remote-as65000
neighbor10.0.0.2update-sourceLoopback0
neighbor10.0.0.2route-reflector-client
neighbor10.0.0.2next-hop-self
neighbor10.0.0.3remote-as65000
neighbor10.0.0.3update-sourceLoopback0
neighbor10.0.0.3route-reflector-client
neighbor10.0.0.3next-hop-self
neighbor10.0.0.4remote-as65000
neighbor10.0.0.4update-sourceLoopback0
neighbor10.0.0.4next-hop-self
neighbor10.0.0.6remote-as65000
neighbor10.0.0.6update-sourceLoopback0
neighbor10.0.0.6next-hop-self
neighbor10.0.18.2remote-as65008
noauto-summary
RT2:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
neighbor10.0.29.2remote-as65009
noauto-summary
RT3:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
noauto-summary
RR4:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
neighbor10.0.0.5remote-as65000
neighbor10.0.0.5update-sourceLoopback0
neighbor10.0.0.5route-reflector-client
neighbor10.0.0.5next-hop-self
noauto-summary
RT5:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
network10.5.0.0mask255.255.0.0
neighbor10.0.0.4remote-as65000
neighbor10.0.0.4update-sourceLoopback0
neighbor10.0.0.4next-hop-self
noauto-summary
RR6:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
neighbor10.0.0.7remote-as65000
neighbor10.0.0.7update-sourceLoopback0
neighbor10.0.0.7route-reflector-client
neighbor10.0.0.7next-hop-self
noauto-summary
RT7:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
network10.7.0.0mask255.255.0.0
neighbor10.0.0.6remote-as65000
neighbor10.0.0.6update-sourceLoopback0
neighbor10.0.0.6next-hop-self
noauto-summary
RT8:
routerbgp65008
nosynchronization
bgplog-neighbor-changes
network10.8.0.0mask255.255.0.0
neighbor10.0.18.1remote-as65000
noauto-summary
RT9:
routerbgp65009
nosynchronization
bgplog-neighbor-changes
network10.9.0.0mask255.255.0.0
neighbor10.0.29.1remote-as65000
noauto-summary
4、BGP路由下一跳分析调试
分析10.9.0.0这条路由怎么在路由反射的过程如下:
首先复习一下路由反射器原则:
1.从客户端收到的路由反射给它的客户端和非客户端。
(RRC、IBGP和EBGP邻居)但是不向发送它的那个RRC公布;
2.从非客户端收到的路由只反射给它的客户端;
3.在进行路由反射之前,RR会进行路由选择,RR只把最优的路由反射出去;
4.RR进行路由反射时,不会改变路由的属性(包括下一跳、LP、MED等)来自EBGP邻居,则将它公布给所有邻居(IBGP、EBGP、RRC);
5.有RR的情况下只有非客户端之间BGP路由不能互传;
一、实验(二级路由反射)拓扑图(三)
二、组网要求:
三、基本连通性调试
4、实验关键配置
RT1:
nosynchronization
bgplog-neighbor-changes
network10.0.0.0mask255.255.0.0
neighbor10.0.0.2remote-as65000
neighbor10.0.0.2update-sourceLoopback0
neighbor10.0.0.2route-reflector-client
neighbor10.0.0.2next-hop-self
neighbor10.0.0.3remote-as65000
neighbor10.0.0.3update-sourceLoopback0
neighbor10.0.0.3route-reflector-client
neighbor10.0.0.3next-hop-self
neighbor10.0.0.4remote-as65000
neighbor10.0.0.4update-sourceLoopback0
neighbor10.0.0.4route-reflector-client
neighbor10.0.0.4next-hop-self
neighbor10.0.0.6remote-as65000
neighbor10.0.0.6update-sourceLoopback0
neighbor10.0.0.6route-reflector-client
neighbor10.0.0.6next-hop-self
neighbor10.0.18.2remote-as65008
noauto-summary
RT2:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
neighbor10.0.29.2remote-as65009
noauto-summary
RT3:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
noauto-summary
RR4:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
neighbor10.0.0.5remote-as65000
neighbor10.0.0.5update-sourceLoopback0
neighbor10.0.0.5route-reflector-client
neighbor10.0.0.5next-hop-self
noauto-summary
RT5:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
network10.5.0.0mask255.255.0.0
neighbor10.0.0.4remote-as65000
neighbor10.0.0.4update-sourceLoopback0
neighbor10.0.0.4next-hop-self
noauto-summary
RR6:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
neighbor10.0.0.1remote-as65000
neighbor10.0.0.1update-sourceLoopback0
neighbor10.0.0.1next-hop-self
neighbor10.0.0.7remote-as65000
neighbor10.0.0.7update-sourceLoopback0
neighbor10.0.0.7route-reflector-client
neighbor10.0.0.7next-hop-self
noauto-summary
RT7:
routerbgp65000
nosynchronization
bgplog-neighbor-changes
network10.7.0.0mask255.255.0.0
neighbor10.0.0.6remote-as65000
neighbor10.0.0.6update-sourceLoopback0
neighbor10.0.0.6next-hop-self
noauto-summary
RT8:
routerbgp65008
nosynchronization
bgplog-neighbor-changes
network10.8.0.0mask255.255.0.0
neighbor10.0.18.1remote-as65000
noauto-summary
RT9:
routerbgp65009
nosynchronization
bgplog-neighbor-changes
network10.9.0.0mask255.255.0.0
neighbor10.0.29.1remote-as65000
noauto-summary
5、BGP调试
分析的情况与拓扑图二一样的原理,此实验只是把路由反射嵌套了,其它的都一样。
实验总结
本次实验之中遇到了路由反射器问题。
在本次实验中,没有遇到什么大的困难,主要是配置太多,
实验不难,关键是要明白路由反射器反射原理及其原则。