天天看點

BGP的工作過程

當公司存在多出口鍊路,并且需要靈活的路由控制的

大規模網絡架構,一般采用 BGP。

dual-home:雙宿

多出口鍊路

工作過程:

1、建立鄰居表(IBGP鄰居)

show ip bgp summary

IBGP Peer

EBGP Peer

2、同步資料庫(BGP路由選路)

show ip bgp 

#自己宣告進入到BGP的路由;

network

redistribute

#别人傳輸過來的BGP路由;

ibgp

ebgp

% > : best 

&嘗試着将其放入路由表 

&發送給自己的BGP鄰居路由器

show ip bgp neighbor x.x.x.x advertised-route

3、建立路由表 

show ip route bgp

IBGP鄰居防環機制:

-IBGP水準分割

從IBGP鄰居收到的路由,不會再次發送給IBGP鄰居

IBGP聯盟配置指令:

R1:

router bgp 1

no synchronization

no auto-summary

bgp router-id 1.1.1.1

bgp confederation identifier 123

bgp confederation peers 23 

neighbor 10.10.2.2 remote-as 23

neighbor 10.10.2.2 ebgp-multihop 255

neighbor 10.10.2.2 update-source Loopback0

R2:

router bgp 23

bgp router-id 2.2.2.2

bgp confederation peers 1 

neighbor 10.10.1.1 remote-as 1

neighbor 10.10.1.1 ebgp-multihop 255

neighbor 10.10.1.1 update-source Loopback0

neighbor 10.10.3.3 remote-as 23

neighbor 10.10.3.3 update-source Loopback0

R3:( 沒有配置peere as )

bgp router-id 3.3.3.3

neighbor 10.10.2.2 next-hop-self

neighbor 192.168.34.4 remote-as 4

通過以上配置,可以確定 R1 可以正常接收到 R4 loopback 0

本文轉自 Mr_Lee_1986 51CTO部落格,原文連結:http://blog.51cto.com/13504837/2057509,如需轉載請自行聯系原作者