无逼逼赖赖之BGP的三种手工汇总

1.实验需求:(还是这个需求

无逼逼赖赖之BGP的三种手工汇总
①R3为AS3,并且为EBGP,创建一个环回口为3.3.3.3/24,e0/0为13.1.1.3/24
②R1为AS10,并且为IBGP,创建一个环回口为1.1.1.1/24,e0/0为124.1.1.1/24
③R2为AS10,并且为IBGP,创建一个环回口为2.2.2.2/24,e0/0为124.1.1.2/24
④R1与R2之间运行EIGRP
⑤R4为AS4,并且为EBGP,创建一个环回口为4.4.4.4/24,e0/0为124.1.1.4/24

2.BGP的详细配置:

R3:
router bgp 3
no auto-summary
no synchronization
bgp router-id 3.3.3.3
neighbor 13.1.1.1 remote-as 10
bgp default ipv4-unicast
address-family ipv4 unicast
network 3.3.3.0 mask 255.255.255.0

R1:
router bgp 10
no auto-summary
no synchronization
bgp router-id 1.1.1.1
no bgp default ipv4-unicast
neighbor 13.1.1.3 remote-as 3
address-family ipv4 unicast
neighbor 13.1.1.3 activate

neighbor 2.2.2.2 remote-as 10
neighbor 2.2.2.2 update-source loopback 0
address-family ipv4 unicast
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 next-hop-self

R2:
router bgp 10
no auto-summary
no synchronization
bgp router-id 3.3.3.3
no bgp default ipv4-unicast
neighbor 1.1.1.1 remote-as 10
neighbor 1.1.1.1 update-source loopback 0
address-family ipv4 unicast
neighbor 1.1.1.1 activate

neighbor 124.1.1.4 remote-as 4
address-family ipv4 unicast
neighbor 124.1.1.4 activate

R4:
router bgp 4
no auto-summary
no synchronization
bgp router-id 4.4.4.4
no bgp default ipv4-unicast
neighbor 124.1.1.2 remote-as 10
address-family ipv4 unicast
neighbor 124.1.1.2 activate
network 4.4.4.0 mask 255.255.255.0

2.BGP的三种汇总:

前提:
现在假设在R3上设置loopback 8为172.16.8.1/24,loopback 9 172.16.9.0/24

①最极致式:
不将这两条路由宣告进BGP,而是在IGP中做汇总,并将汇总路由宣告进BGP中,这种做法的汇总路由是不携带原子聚合属性的

②路由只增不减式:
将两条路由宣告进BGP,在BGP进程中使用aggregate-address + 汇总前缀/汇总掩码,这种汇总方式是将明细路由与汇总路由一起宣告的,导致路由不减反增,但也方便做路径选择,这是R3的情况(携带原子聚合属性):

无逼逼赖赖之BGP的三种手工汇总再看他传递给R1的情况:

无逼逼赖赖之BGP的三种手工汇总
③只通告汇总路由式:
aggregate-address + 汇总前缀/汇总掩码+summary-only,这样R3就只会宣告汇总路由了,而不会将明细路由也发送走,这是R3的情况(携带原子聚合属性):

无逼逼赖赖之BGP的三种手工汇总再看他传递给R1的情况:

无逼逼赖赖之BGP的三种手工汇总