H3C_S7500E_BGP基础配置举例
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
3.3 使用版本
本举例是在 S7500E-CMW710-R7150 版本上进行配置和验证的。
1
3.4 配置注意事项
• 为了防止端口状态不稳定引起路由震荡,本举例使用 LoopBack 接口来创建 IBGP 对等体。 • 使用 LoopBack 接口创建 IBGP 对等体时,因为 LoopBack 接口不是两对等体实际连接的接口,
3.1 组网需求
随着A公司的不断发展,其网络规模也不断扩大,导致其设备运行的IGP协议不堪重负,为了解决这 一问题,公司管理者决定在设备上运行一些BGP的基础配置。如 图 1 所示,所有交换机均运行BGP 协议。要求Switch A和Switch B之间建立EBGP连接,Switch B和Switch C之间建立IBGP连接,使 得Switch C能够访问Switch A直连的 8.1.1.0/24 网段。 图1 BGP 基础配置组网图(交换应用)
3.2 配置思路
• 在 AS 65009 内部,保证 Switch B 到 Switch C 的 LoopBack 接口路由可达,Switch C 到 Switch B 的 LoopBack 接口路由可达,这样两个 IBGP 对等体才能建立 TCP 连接,本案例使 用 OSPF 协议实现。
• 由于设备缺省情况下 BGP 不发布任何本地的网段路由,为了使 Switch C 能够访问 Switch A 直连的 8.1.1.0/24 网段,将 8.1.1.0/24 网段宣告进 Switch A 的 BGP 进程中,将 3.1.1.0/24 网 段和 9.1.1.0/24 网段宣告进 Switch B 的 BGP 进程中。
3.1 组网需求 ··············································································································································· 1 3.2 配置思路 ··············································································································································· 1 3.3 使用版本 ··············································································································································· 1 3.4 配置注意事项········································································································································ 2 3.5 配置步骤 ··············································································································································· 2
3.5.1 配置各接口的IP地址 ·················································································································· 2 3.5.2 配置IBGP连接····························································································································2 3.5.3 配置EBGP连接 ·························································································································· 3 3.5.4 配置Switch B发布本地网段路由 ································································································ 5 3.6 验证配置 ··············································································································································· 6 3.7 配置文件 ··············································································································································· 6 4 BGP与IGP交互配置举例······················································································································· 8 4.1 组网需求 ··············································································································································· 8 4.2 配置思路 ··············································································································································· 8 4.3 使用版本 ··············································································································································· 8 4.4 配置注意事项········································································································································ 8 4.5 配置步骤 ··············································································································································· 9 4.5.1 配置各接口的IP地址 ·················································································································· 9 4.5.2 配置OSPF·································································································································· 9 4.5.3 配置EBGP连接 ·························································································································· 9 4.5.4 配置BGP与IGP交互·················································································································10 4.6 验证配置 ············································································································································· 11 4.7 配置文件 ············································································································································· 12 5 相关资料 ············································································································································· 14
i
1 简介
本文档介绍了 BGP 的基础配置举例。
2 配置前提
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺 省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置 不冲突。 本文档假设您已了解 BGP 特性。
3 IPv4 BGP基础配置举例
所以,必须使用 peer connect-interface 命令将 LoopBack 接口配置为 BGP 连接的源接口。 • EBGP 邻居关系的两台路由器,处于不同的 AS 域,对Hale Waihona Puke Baidu的 LoopBack 接口一般路由不可达,
H3C S7500E BGP 基础典型配置举例
Copyright © 2015 杭州华三通信技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。
目录
1 简介 ······················································································································································ 1 2 配置前提 ··············································································································································· 1 3 IPv4 BGP基础配置举例 ························································································································ 1
本举例是在 S7500E-CMW710-R7150 版本上进行配置和验证的。
1
3.4 配置注意事项
• 为了防止端口状态不稳定引起路由震荡,本举例使用 LoopBack 接口来创建 IBGP 对等体。 • 使用 LoopBack 接口创建 IBGP 对等体时,因为 LoopBack 接口不是两对等体实际连接的接口,
3.1 组网需求
随着A公司的不断发展,其网络规模也不断扩大,导致其设备运行的IGP协议不堪重负,为了解决这 一问题,公司管理者决定在设备上运行一些BGP的基础配置。如 图 1 所示,所有交换机均运行BGP 协议。要求Switch A和Switch B之间建立EBGP连接,Switch B和Switch C之间建立IBGP连接,使 得Switch C能够访问Switch A直连的 8.1.1.0/24 网段。 图1 BGP 基础配置组网图(交换应用)
3.2 配置思路
• 在 AS 65009 内部,保证 Switch B 到 Switch C 的 LoopBack 接口路由可达,Switch C 到 Switch B 的 LoopBack 接口路由可达,这样两个 IBGP 对等体才能建立 TCP 连接,本案例使 用 OSPF 协议实现。
• 由于设备缺省情况下 BGP 不发布任何本地的网段路由,为了使 Switch C 能够访问 Switch A 直连的 8.1.1.0/24 网段,将 8.1.1.0/24 网段宣告进 Switch A 的 BGP 进程中,将 3.1.1.0/24 网 段和 9.1.1.0/24 网段宣告进 Switch B 的 BGP 进程中。
3.1 组网需求 ··············································································································································· 1 3.2 配置思路 ··············································································································································· 1 3.3 使用版本 ··············································································································································· 1 3.4 配置注意事项········································································································································ 2 3.5 配置步骤 ··············································································································································· 2
3.5.1 配置各接口的IP地址 ·················································································································· 2 3.5.2 配置IBGP连接····························································································································2 3.5.3 配置EBGP连接 ·························································································································· 3 3.5.4 配置Switch B发布本地网段路由 ································································································ 5 3.6 验证配置 ··············································································································································· 6 3.7 配置文件 ··············································································································································· 6 4 BGP与IGP交互配置举例······················································································································· 8 4.1 组网需求 ··············································································································································· 8 4.2 配置思路 ··············································································································································· 8 4.3 使用版本 ··············································································································································· 8 4.4 配置注意事项········································································································································ 8 4.5 配置步骤 ··············································································································································· 9 4.5.1 配置各接口的IP地址 ·················································································································· 9 4.5.2 配置OSPF·································································································································· 9 4.5.3 配置EBGP连接 ·························································································································· 9 4.5.4 配置BGP与IGP交互·················································································································10 4.6 验证配置 ············································································································································· 11 4.7 配置文件 ············································································································································· 12 5 相关资料 ············································································································································· 14
i
1 简介
本文档介绍了 BGP 的基础配置举例。
2 配置前提
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺 省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置 不冲突。 本文档假设您已了解 BGP 特性。
3 IPv4 BGP基础配置举例
所以,必须使用 peer connect-interface 命令将 LoopBack 接口配置为 BGP 连接的源接口。 • EBGP 邻居关系的两台路由器,处于不同的 AS 域,对Hale Waihona Puke Baidu的 LoopBack 接口一般路由不可达,
H3C S7500E BGP 基础典型配置举例
Copyright © 2015 杭州华三通信技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。
目录
1 简介 ······················································································································································ 1 2 配置前提 ··············································································································································· 1 3 IPv4 BGP基础配置举例 ························································································································ 1