bgp Confederation
阿新 • • 發佈:2020-07-29
netns-testbed
https://qiita.com/_norin_/items/f2c1b0158ee34abcdd0c
Confederation
定義
- 考慮到在AS內部的防環機制,iBGP之間傳遞路由只能有一跳。
- 聯邦,在一個AS之內,劃分出多個子AS域,建立EBGP鄰接關係,可以將路由母AS之內進行多跳的傳遞。
舉個例子:
- 拓撲
R1-R2-R3-R4
- R1在AS1,R2、R3、R4在AS2,R2,、R3在65002子AS,R4在65004子AS。
R1: router bgp 1 network 1.1.1.1 mask 255.255.255.255 neighbor 12.1.1.2 remote-as 2 R2: router bgp 65002 # 宣告子AS號 bgp router-id 2.2.2.2 bgp confederation identifier 2 # 宣告主AS號 neighbor 12.1.1.1 remote-as 1 neighbor 23.1.1.3 remote-as 65002 # 使用子AS號指定鄰居 R3: router bgp 65002 bgp router-id 3.3.3.3 bgp confederation identifier 2 bgp confederation peers 65004 neighbor 23.1.1.2 remote-as 65002 neighbor 34.1.1.4 remote-as 65004 R4: router bgp 65004 bgp router-id 4.4.4.4 bgp confederation identifier 2 bgp confederation peers 65002 neighbor 34.1.1.3 remote-as 65002
可以將路由反射器和聯邦聯合使用,解決複雜問題