美图欣赏 | 设为首页 | 加入收藏 | 网站地图

当前位置:电脑中国 > 网络 > 路由交换 >

BGP路由黑洞及IBGP全连接

2011-08-23 11:07|来源:未知 |作者:汉网天下 |点击:

组网需求:
1.AS65000边界网段发布:RT1、RT2重发布直连路由至OSPF(metric 1000 type 1)
2.BGP配置要求:
 no synchronization 
  no auto-summary IBGP使用LOOPBACK建立邻居,下一跳指向自己
3.RT1,RT2发布AS65000的汇总路由至BGP:10.0.0.0/16、10.3.0.0/16
4.RT5发布AS65001的汇总路由至BGP:10.5.0.0/16
5.RT6发布AS65001的汇总路由至BGP:10.6.0.0/16
6.分析路由黑洞的形成及解决方法
IGP路由的配置:
R1:
 router ospf 1
 router-id 10.0.0.1
 redistribute connected metric 1000 metric-type 1 subnets   //重发布直连网络到OSPF中
 passive-interface Serial0/1  //与EBGP相连的接口必须配置为被动接口,以免形成邻居
 network 10.0.0.1 0.0.0.0 area 0
 network 10.0.1.4 0.0.0.3 area 0
R3:
router ospf 1
 router-id 10.0.0.3
 passive-interface default
 no passive-interface Serial0/0
 no passive-interface FastEthernet1/0
 network 10.0.0.3 0.0.0.0 area 0
 network 10.0.1.0 0.0.0.3 area 0
 network 10.0.1.4 0.0.0.3 area 0
 network 10.3.3.0 0.0.0.255 area 0
 interface FastEthernet1/0              
 ip address 10.0.1.1 255.255.255.252
 ip ospf network point-to-point         //配置网络类型为点对点(不需选举DR或BDR)
R4:
router ospf 1
 router-id 10.0.0.4
 passive-interface default
 no passive-interface Serial0/0
 no passive-interface FastEthernet1/0
 network 10.0.0.4 0.0.0.0 area 0
 network 10.0.1.0 0.0.0.3 area 0
 network 10.0.1.8 0.0.0.3 area 0
 network 10.3.4.0 0.0.0.255 area 0
interface FastEthernet1/0              
 ip address 10.0.1.1 255.255.255.252
 ip ospf network point-to-point         //配置网络类型为点对点(不需选举DR或BDR)
R2:
router ospf 1
 router-id 10.0.0.2
 redistribute connected metric 1000 metric-type 1 subnets   //重发布直连网络到OSPF中
 passive-interface default   //与EBGP相连的接口必须配置为被动接口,以免形成邻居
 no passive-interface Serial0/0
 network 10.0.1.8 0.0.0.3 area 0
IBGP的配置: 
R1:
router bgp 65000
 no synchronization             //关闭同步
 neighbor 10.0.0.2 remote-as 65000      //指定IBGP邻居和AS
 neighbor 10.0.0.2 update-source Loopback0  //指定更新源为LOOPBACK 0
 neighbor 10.0.0.2 next-hop-self       //把下跳改为自己(EBGP默认)
 neighbor 10.0.15.2 remote-as 65001           //指定EBGP邻居和AS
 network 10.0.0.0 mask 255.255.0.0           /静态发布路由到BGP
 no auto-summary             //关闭自动汇总
 ip route 10.0.0.0 255.255.0.0 null 0   //添加一条静态汇总路由,用来发布
R2:
router bgp 65000
 no synchronization             //关闭同步
 neighbor 10.0.0.1 remote-as 65000       //指定邻居和AS
 neighbor 10.0.0.1 update-source Loopback0   //指定更新源为LOOPBACK 0
 neighbor 10.0.0.1 next-hop-self        //把下跳改为自己(EBGP默认)
 neighbor 10.0.26.2 remote-as 65002        //指定EBGP邻居和AS
 network 10.3.0.0 mask 255.255.0.0             /静态发布路由到BGP
 no auto-summary              //关闭自动汇总

(责任编辑:dnzg)