BGP路由黑洞
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
案例精解:BGP路由黑洞
2008-10-19 15:05:37
标签:路由反射器路由黑洞同步BGP联邦
什么是路由黑洞?简单的说,它会默默的将数据包丢弃,使所有数据包有去无回,下面来看一个案例:
如图所示:
R1和R2建立EBGP邻居关系
R2和R5建立IBGP邻居关系
R5和R7建立EBGP邻居关系
R2、R3、R5之间运行RIPv2
首先看配置:
hostname r1
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface Serial1/0
ip address 192.168.12.1 255.255.255.0
serial restart-delay 0
router bgp 100
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
network 192.168.12.0
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 ebgp-multihop 255
neighbor 2.2.2.2 update-source Loopback0 no auto-summary
!
ip route 2.2.2.0 255.255.255.0 192.168.12.2
hostname r2
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Serial1/0
ip address 192.168.23.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.12.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
ip address 192.168.24.2 255.255.255.0
serial restart-delay 0
!
router rip
version 2
network 2.0.0.0
network 192.168.23.0
no auto-summary
!
router bgp 200
no synchronization
bgp log-neighbor-changes
network 192.168.12.0
network 192.168.23.0
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 ebgp-multihop 255
neighbor 1.1.1.1 update-source Loopback0 neighbor 5.5.5.5 remote-as 200
neighbor 5.5.5.5 update-source Loopback0 neighbor 5.5.5.5 next-hop-self
no auto-summary
!
ip route 1.1.1.0 255.255.255.0 192.168.12.1
hostname r3
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Serial1/0
ip address 192.168.35.3 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 192.168.23.3 255.255.255.0 serial restart-delay 0
router rip
version 2
network 3.0.0.0
network 192.168.23.0
network 192.168.35.0
no auto-summary
hostname r5
interface Loopback0
ip address 5.5.5.5 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
ip address 192.168.57.5 255.255.255.0 serial restart-delay 0
!
interface Serial1/1
ip address 192.168.35.5 255.255.255.0 serial restart-delay 0
!
interface Serial1/2
ip address 192.168.45.5 255.255.255.0 serial restart-delay 0