图表 1 BGP综合实验
(1)AS内部IGP协议互通,双点双向重发布
RR2àP5
将OSPF引入到IS-IS,拒绝TAG 200,打上TAG 100
[Huawei-isis-1]import-route ospf 1 inherit-cost route-policy oit
将IS-IS引入到OSPF,拒绝TAG 100,打上TAG 200
[Huawei-ospf-1]import-route isis 1 type 1 route-policy ito
将TAG 200的优先级改为150
[Huawei-ospf-1]preference ase route-policy pre 14
P5àRR2
将IS-IS引入到OSPF,拒绝TAG 400,打上TAG 300
[Huawei-isis-1]import-route ospf 1 inherit-cost route-policy oit
将OSPF引入到IS-IS,拒绝TAG 300,打上TAG 400
[Huawei-ospf-1]import-route isis 1 type 1 route-policy ito
将TAG 300的优先级改为150
[Huawei-ospf-1]preference ase route-policy pre 14
(2)每台设备创建环回口,AS内部通过环回口0建立IBGP对等体
例如XX2:2.2.2.2 XX5:5.5.5.5 32位地址
group RR1 internal
peer 1.1.1.1 as-number 100
peer 1.1.1.1 group RR1
peer 3.3.3.3 as-number 100
peer 3.3.3.3 group RR1
peer 4.4.4.4 as-number 100
peer 4.4.4.4 group RR1
peer 5.5.5.5 as-number 100
peer 5.5.5.5 group RR1
peer 6.6.6.6 as-number 100
peer 6.6.6.6 group RR1
peer RR1 connect-interface LoopBack 0
peer RR1 reflect-client
reflector cluster-id 1.1.1.1
group RR2 internal
peer 1.1.1.1 as-number 100
peer 1.1.1.1 group RR2
peer 2.2.2.2 as-number 100
peer 2.2.2.2 group RR2
peer 3.3.3.3 as-number 100
peer 3.3.3.3 group RR2
peer 4.4.4.4 as-number 100
peer 4.4.4.4 group RR2
peer 6.6.6.6 as-number 100
peer 6.6.6.6 group RR2
peer RR2 connect-interface LoopBack 0
peer RR2 reflect-client
reflector cluster-id 1.1.1.1
group HA1 internal
peer 2.2.2.2 as-number 100
peer 2.2.2.2 group HA1
peer 5.5.5.5 as-number 100
peer 5.5.5.5 group HA1
peer HA1 connect-interface LoopBack 0
(3)在XX3上BGP import 环回口1路由
例如XX3:172.16.1.3/32形式
ip ip-prefix 32 permit 172.16.1.3 32
route-policy
标签:group,1.1,route,number,想法,BGP,实验,peer,100 From: https://www.cnblogs.com/nc086/p/18180755