前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >H3C配置OSPF

H3C配置OSPF

作者头像
py3study
发布2020-01-10 10:57:49
5320
发布2020-01-10 10:57:49
举报
文章被收录于专栏:python3python3python3
  1. 组网需求 • • 所有的交换机都运行 OSPF,并将整个自治系统划分为 3 个区域。 • • 其中 Switch A 和 Switch B 作为 ABR 来转发区域之间的路由。 • • 配置完成后,每台交换机都应学到 AS 内的到所有网段的路由。
  2. 实验拓扑
H3C配置OSPF
H3C配置OSPF
  1. 配置步骤 (1) 配置各接口的 IP 地址(略) 例SwitchB: <H3C>sys [H3C]hostname SwitchB [SwitchB]vlan 100 [SwitchB-vlan100]port g 1/0/10 [SwitchB-vlan100]quit [SwitchB]vlan 200 [SwitchB-vlan200]port g 1/0/20 [SwitchB-vlan200]quit [SwitchB]inter vlan 100 [SwitchB-Vlan-interface100]ip add 10.1.1.2 24 [SwitchB-Vlan-interface100]quit [SwitchB]inter vlan 200 [SwitchB-Vlan-interface200]ip add 10.3.1.1 24 [SwitchB-Vlan-interface200]quit [SwitchB]

(2) 配置 OSPF 基本配置

配置 Switch A。

<SwitchA> system-view [SwitchA] router id 10.2.1.1 [SwitchA] ospf [SwitchA-ospf-1] area 0 [SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [SwitchA-ospf-1-area-0.0.0.0] quit [SwitchA-ospf-1] area 1 [SwitchA-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255 [SwitchA-ospf-1-area-0.0.0.1] quit [SwitchA-ospf-1] quit

配置 Switch B。

<SwitchB> system-view [SwitchB] router id 10.3.1.1 [SwitchB] ospf [SwitchB-ospf-1] area 0 [SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [SwitchB-ospf-1-area-0.0.0.0] quit [SwitchB-ospf-1] area 2 [SwitchB-ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255 [SwitchB-ospf-1-area-0.0.0.2] quit [SwitchB-ospf-1] quit

配置 Switch C。

<SwitchC> system-view [SwitchC] router id 10.4.1.1 [SwitchC] ospf [SwitchC-ospf-1] area 1 [SwitchC-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255 [SwitchC-ospf-1-area-0.0.0.1] network 10.4.1.0 0.0.0.255 [SwitchC-ospf-1-area-0.0.0.1] quit [SwitchC-ospf-1] quit

配置 Switch D。

<SwitchD> system-view [SwitchD] router id 10.5.1.1 [SwitchD] ospf [SwitchD-ospf-1] area 2 [SwitchD-ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255 [SwitchD-ospf-1-area-0.0.0.2] network 10.5.1.0 0.0.0.255 [SwitchD-ospf-1-area-0.0.0.2] quit [SwitchD-ospf-1] quit4. 验证配置

查看 Switch A 的 OSPF 邻居。

[SwitchA] display ospf peer verbose

查看 Switch A 的 OSPF 路由信息。

[SwitchA] display ospf routing

查看 Switch D 的 OSPF 路由信息。

[SwitchD] display ospf routing

在 Switch D 上使用 Ping 进行测试连通性。

[SwitchD] ping 10.4.1.1

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-07-25 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 配置 Switch A。
  • 配置 Switch B。
  • 配置 Switch C。
  • 配置 Switch D。
  • 查看 Switch A 的 OSPF 邻居。
  • 查看 Switch A 的 OSPF 路由信息。
  • 查看 Switch D 的 OSPF 路由信息。
  • 在 Switch D 上使用 Ping 进行测试连通性。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档