当前位置: 首页 > news >正文

华三BGP等价路由组网

我们知道BGP路由默认会自动学习最优路由,无法等价的,那么我们通过BGP等价路由条目可以实现BGP等价路由的效果。

一 网络拓扑

如上图:

Leaf1和Spine1和Spine2建立IBGP,Border1和Spine1和Spine2建立EBGP;

二 设备配置

2.1 BGP等价路由配置命令

配置命令:

[Leaf01]bgp 100

[Leaf01-bgp-default]

[Leaf01-bgp-default]address-family ipv4 unicast

[Leaf01-bgp-default-ipv4]balance ?

INTEGER<1-32> Number of BGP routes for load balancing

as-path-neglect Neglect the AS-PATH attribute when selecting load balancing

routes

as-path-relax Relax AS-PATH check when selecting load balancing routes

ebgp Configure load balancing for EBGP routes

eibgp Configure load balancing for both IBGP and EBGP routes, and

allow simultaneous use of IBGP and EBGP routes

ibgp Configure load balancing for IBGP routes

[Leaf01-bgp-default-ipv4]balance

[Leaf01-bgp-default-ipv4]balance eibgp ?

INTEGER<1-32> Number of BGP routes for load balancing

[Leaf01-bgp-default-ipv4]balance eibgp

注意:ibgp和ebgp,最新的配置会覆盖前面的配置,eibgp配置的时候ibgp、ebgp如果配置了,需要删除ibgp、ebgp的配置

2.2 Leaf1配置bgp等价路由

#

bgp 100

router-id 6.6.6.1

peer 6.6.6.2 as-number 100

peer 6.6.6.2 connect-interface LoopBack0

peer 6.6.6.3 as-number 100

peer 6.6.6.3 connect-interface LoopBack0

#

address-family ipv4 unicast

balance eibgp 32

network 6.6.6.6 255.255.255.255

peer 6.6.6.2 enable

peer 6.6.6.3 enable

#

2.3 Spine1、Spine2、Border同样配置

!

bgp 100

#

address-family ipv4 unicast

balance eibgp 32

!

三 状态查看

3.1 配置等价路由前BGP路由查看-非等价路由

<Leaf1>dis ip routing-table 6.6.6.4

Summary count : 1

Destination/Mask Proto Pre Cost NextHop Interface

6.6.6.4/32 BGP 255 0 6.6.6.2 GE0/0 //等价路由

<Leaf1>dis bgp routing-table ipv4

Total number of routes: 2

BGP local router ID is 6.6.6.1

Status codes: * - valid, > - best, d - dampened, h - history,

s - suppressed, S - stale, i - internal, e - external

Origin: i - IGP, e - EGP, ? - incomplete

Network NextHop MED LocPrf PrefVal Path/Ogn

* >i 6.6.6.4/32 6.6.6.2 0 100 0 200i//等价路由

* > 6.6.6.6/32 127.0.0.1 0 32768 i

<Leaf01>dis ip routing-table

Destinations : 15 Routes : 15

Destination/Mask Proto Pre Cost NextHop Interface

6.6.6.2/32 O_INTRA 10 1 1.1.1.1 GE0/0

6.6.6.3/32 O_INTRA 10 1 1.1.1.3 GE0/1

6.6.6.4/32 BGP 255 0 6.6.6.2 GE0/0

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0

<Leaf01>

<Leaf01>dis bgp routing-table ipv4 6.6.6.4

BGP local router ID: 6.6.6.1

Local AS number: 100

Paths: 2 available, 1 best

BGP routing table information of 6.6.6.4/32:

From : 6.6.6.2 (6.6.6.2)

Rely nexthop : 1.1.1.1

Original nexthop: 6.6.6.2

OutLabel : NULL

AS-path : 200

Origin : igp

Attribute value : MED 0, localpref 100, pref-val 0

State : valid, internal, best

IP precedence : N/A

QoS local ID : N/A

Traffic index : N/A

VPN-Peer UserID : N/A

DSCP : N/A

EXP : N/A

Tunnel policy : NULL

Rely tunnel IDs : N/A

From : 6.6.6.3 (6.6.6.3)

Rely nexthop : 1.1.1.3

Original nexthop: 6.6.6.3

OutLabel : NULL

AS-path : 200

Origin : igp

Attribute value : MED 0, localpref 100, pref-val 0

State : valid, internal

IP precedence : N/A

QoS local ID : N/A

Traffic index : N/A

VPN-Peer UserID : N/A

DSCP : N/A

EXP : N/A

Tunnel policy : NULL

Rely tunnel IDs : N/A

<Leaf01>

3.2 配置等价路由前BGP路由查看-等价路由

<Leaf1>dis ip routing-table 6.6.6.4

Summary count : 2

Destination/Mask Proto Pre Cost NextHop Interface

6.6.6.4/32 BGP 255 0 6.6.6.2 GE0/0 //等价路由

BGP 255 0 6.6.6.3 GE0/1

<Leaf1>dis bgp routing-table ipv4

Total number of routes: 3

BGP local router ID is 6.6.6.1

Status codes: * - valid, > - best, d - dampened, h - history,

s - suppressed, S - stale, i - internal, e - external

Origin: i - IGP, e - EGP, ? - incomplete

Network NextHop MED LocPrf PrefVal Path/Ogn

* >i 6.6.6.4/32 6.6.6.2 0 100 0 200i//等价路由

* >i 6.6.6.3 0 100 0 200i

* > 6.6.6.6/32 127.0.0.1 0 32768 i

<Leaf1>dis ip routing-table

Destinations : 16 Routes : 17

Destination/Mask Proto Pre Cost NextHop Interface

0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0

1.1.1.0/31 Direct 0 0 1.1.1.0 GE0/0

1.1.1.0/32 Direct 0 0 127.0.0.1 InLoop0

1.1.1.2/31 Direct 0 0 1.1.1.2 GE0/1

1.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0

6.6.6.1/32 Direct 0 0 127.0.0.1 InLoop0

6.6.6.2/32 O_INTRA 10 1 1.1.1.1 GE0/0

6.6.6.3/32 O_INTRA 10 1 1.1.1.3 GE0/1

6.6.6.4/32 BGP 255 0 6.6.6.2 GE0/0 //等价路由

BGP 255 0 6.6.6.3 GE0/1

6.6.6.6/32 Direct 0 0 127.0.0.1 InLoop0

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0

127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0

224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0

224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0

255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0

<Leaf1>dis bgp routing-table ipv4 6.6.6.4

BGP local router ID: 6.6.6.1

Local AS number: 100

Paths: 2 available, 2 best

BGP routing table information of 6.6.6.4/32:

From : 6.6.6.2 (6.6.6.2)

Rely nexthop : 1.1.1.1

Original nexthop: 6.6.6.2

OutLabel : NULL

AS-path : 200

Origin : igp

Attribute value : MED 0, localpref 100, pref-val 0

State : valid, internal, best

IP precedence : N/A

QoS local ID : N/A

Traffic index : N/A

VPN-Peer UserID : N/A

DSCP : N/A

EXP : N/A

Tunnel policy : NULL

Rely tunnel IDs : N/A

From : 6.6.6.3 (6.6.6.3)

Rely nexthop : 1.1.1.3

Original nexthop: 6.6.6.3

OutLabel : NULL

AS-path : 200

Origin : igp

Attribute value : MED 0, localpref 100, pref-val 0

State : valid, internal, best

IP precedence : N/A

QoS local ID : N/A

Traffic index : N/A

VPN-Peer UserID : N/A

DSCP : N/A

EXP : N/A

Tunnel policy : NULL

Rely tunnel IDs : N/A

<Leaf1>dis bgp routing-table ipv4 6.6.6.4 advertise-info

BGP local router ID: 6.6.6.1

Local AS number: 100

Paths: 1 best

BGP routing table information of 6.6.6.4/32:

Not advertised to any peers yet

<Leaf1>

http://www.jsqmd.com/news/1064778/

相关文章:

  • 使用Valgrind分析“内存释放报错”的问题
  • 基于大语言模型的多智能体框架在翼型设计与风险评估中的应用实践
  • 2026金华防水补漏避坑指南:卫生间/厨房/阳台/屋顶/地下室漏水检测维修全攻略,正规施工+透明报价+口碑榜靠谱服务商推荐 - 安佳防水
  • 2026年当前江西有实力的GEO品牌公司市场格局与核心服务商深度解析 - 品牌鉴赏官2026
  • 如何用5个步骤彻底解决音频格式混乱问题
  • 上海婚姻纠纷律所联系方式推荐 专业承接各类婚姻家事案件 - 外贸老黄
  • 【硬核拆解】别花冤枉钱!鹦鹉螺真伪鉴定细节决定天花板级别运动表收藏价值
  • Tree of Concepts:融合概念瓶颈与决策树,实现可解释的持续学习
  • Django毕业设计-基于 Django 的汽车销售数据可视化系统设计与实现 数据驱动的汽车销售可视化分析平台(源码+LW+部署文档+全bao+远程调试+代码讲解等)
  • 2026钦州防水补漏避坑指南:卫生间/厨房/阳台/屋顶/地下室漏水检测维修全攻略,正规施工+透明报价+口碑榜靠谱服务商推荐 - 安佳防水
  • 基于贝叶斯校准与自增强反馈的LLM关系数据生成框架RDDG实践
  • 2026年新发布:聚焦郑州市开封市,探寻及各种异型件服务公司 - 品牌鉴赏官2026
  • 大模型工具使用评估基准AgentProp-Bench:从误差传播到工程实践
  • 最近一直在折腾一个挺有意思的小项目AgentCore-Light。
  • 2026年余姚美甲灯市场大揭秘:哪家正规供应商才是王者之选?
  • 上海离婚律所联系方式推荐 覆盖涉外婚姻继承等全品类家事纠纷 - 外贸老黄
  • 路由懒加载
  • 论文复现【DualMap: Online Open-Vocabulary Semantic Mapping for Natural Language Navigation in Dynamic Cha
  • TensorHub:面向AI大模型的高效张量存储与压缩系统设计实践
  • 2026年6月广东有名的钢构漆生产厂家哪个好?荣桥科技水性防腐方案深度解析 - 品牌鉴赏官2026
  • NXP MWCT101x 22W无线充电发射器方案:从Qi协议到MP-A11拓扑的工程实践
  • Django计算机毕设之Django 驱动的高校自习室智能预约考勤系统设计与实现 智能化校园自习室座位管控系统的设计与实现(完整前后端代码+说明文档+LW,调试定制等)
  • AI Agent Harness Engineering 与远程工作:打造超级个人助理,提升工作效率
  • 机器人视觉语言动作模型安全控制:不确定性感知与工程实践
  • libjpeg-turbo:用 SIMD 加速的 JPEG 编解码库
  • 2026银川防水补漏避坑指南:卫生间/厨房/阳台/屋顶/地下室漏水检测维修全攻略,正规施工+透明报价+口碑榜靠谱服务商推荐 - 安佳防水
  • 2026 广州男士假发定制门店推荐权威口碑榜单(大数据实测版) - 星际AI
  • 2026郴州防水补漏避坑指南:卫生间/厨房/阳台/屋顶/地下室漏水检测维修全攻略,正规施工+透明报价+口碑榜靠谱服务商推荐 - 安佳防水
  • (2026最新)东营防水补漏正规公司甄选推荐:漏水检测维修-暗管漏水精准定位检测漏水点-卫生间/厨房/屋顶/阳台/渗漏水维修-本地人必选的正规测漏公司 - 即刻修防水
  • 计算机Django毕设实战-基于人脸识别的高校自习室预约签到系统设计与搭建 Django 架构下智能自习室座位预约管理系统【完整源码+LW+部署说明+演示视频,全bao一条龙等】