• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

01-综合配置举例

02-H3C MSR系列路由器 OSPF支持多进程典型配置举例

本章节下载  (158.31 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Routers/00-Public/Configure/Typical_Configuration_Example/H3C_MSR_R6728-10884/01/202305/1843844_30005_0.htm

02-H3C MSR系列路由器 OSPF支持多进程典型配置举例

H3C MSR系列路由器

OSPF多进程典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2022-2023 新华三技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。



1  OSPF多进程典型配置举例

1.1  组网需求

图1所示,DeviceA与DeviceB在OSPF进程100中建立邻居关系,Device B与Device C在OSPF进程200中建立邻居关系。DeviceA和Device C不能通过OSPF学习到对方的路由。

图1 OSPF多进程配置组网图

 

1.2  配置步骤

1.2.1  配置Device A

# 配置设备的名称为DeviceA。

<Sysname> system-view

[Sysname] sysname DeviceA

# 配置OSPF 100,通告网段172.10.1.0/24。

[DeviceA] ospf 100 router-id 1.1.1.9

[DeviceA-ospf-100] area 0.0.0.0

[DeviceA-ospf-100-area-0.0.0.0] network 172.10.1.0 0.0.0.255

[DeviceA-ospf-100-area-0.0.0.0] quit

[DeviceA-ospf-100] quit

1.2.2  配置Device B

# 配置设备的名称为DeviceB。

<Sysname> system-view

[Sysname] sysname DeviceB

# 配置OSPF 100,通告网段172.10.1.0/24。

[DeviceB] ospf 100 router-id 2.2.2.9

[DeviceB-ospf-100] area 0.0.0.0

[DeviceB-ospf-100-area-0.0.0.0] network 172.10.1.0 0.0.0.255

[DeviceB-ospf-100-area-0.0.0.0] quit

[DeviceB-ospf-100] quit

# 配置OSPF 200,通告网段131.108.1.0/24。

[DeviceB] ospf 200 router-id 2.2.2.9

[DeviceB-ospf-200] area 0.0.0.0

[DeviceB-ospf-200-area-0.0.0.0] network 131.108.1.0 0.0.0.255

[DeviceB-ospf-200-area-0.0.0.0] quit

[DeviceB-ospf-200] quit

1.2.3  配置Device C

# 配置设备的名称为DeviceC。

<Sysname> system-view

[Sysname] sysname DeviceC

# 配置OSPF 200,通告网段131.108.1.0/24。

[DeviceC] ospf 200 router-id 3.3.3.9

[DeviceC-ospf-200] area 0.0.0.0

[DeviceC-ospf-200-area-0.0.0.0] network 131.108.1.0 0.0.0.255

[DeviceC-ospf-200-area-0.0.0.0] quit

[DeviceC-ospf-200] quit

1.3  验证配置

# 在Device B上执行display ospf peer命令,查看OSPF邻居信息。看到Device A和Device C已建立邻居关系。

[DeviceB] display ospf peer

 

         OSPF Process 100 with Router ID 2.2.2.9

               Neighbor Brief Information

 

 Area: 0.0.0.0

 Router ID       Address         Pri Dead-Time  State             Interface

 1.1.1.9         172.10.1.1      1   30         Full/DR           GE1/0/1

 

         OSPF Process 200 with Router ID 2.2.2.9

               Neighbor Brief Information

 

 Area: 0.0.0.0

 Router ID       Address         Pri Dead-Time  State             Interface

 3.3.3.9         131.108.1.1     1   39         Full/BDR          GE1/0/2

# 在Device A上执行display ip routing-table命令,路由表中不存在到达131.108.1.0/24的路由。

[DeviceA] display ip routing-table

 

Destinations : 11       Routes : 11

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0

1.1.1.9/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.0/32       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

172.10.1.0/24      Direct  0   0           172.10.1.1      GE1/0/1

172.10.1.0/32      Direct  0   0           172.10.1.1      GE1/0/1

172.10.1.1/32      Direct  0   0           127.0.0.1       InLoop0

172.10.1.255/32    Direct  0   0           172.10.1.1      GE1/0/1

255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

# 在Device C上执行display ip routing-table命令。路由表中不存在到达172.10.1.0/24的路由。

[DeviceC] display ip routing-table

 

Destinations : 11       Routes : 11

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0

3.3.3.9/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.0/32       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

131.108.1.0/24     Direct  0   0           131.108.1.1     GE1/0/2

131.108.1.0/32     Direct  0   0           131.108.1.1     GE1/0/2

131.108.1.1/32     Direct  0   0           127.0.0.1       InLoop0

131.108.1.255/32   Direct  0   0           131.108.1.1     GE1/0/2

255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

1.4  配置文件

·     Device A:

#

 sysname DeviceA

#

ospf 100 router-id 1.1.1.9

 area 0.0.0.0

  network 172.10.1.0 0.0.0.255

#

interface GigabitEthernet1/0/1

 ip address 172.10.1.2 255.255.255.0

#

·     Device B:

#

 sysname DeviceB

#

ospf 100 router-id 2.2.2.9

 area 0.0.0.0

  network 172.10.1.0 0.0.0.255

#

ospf 200 router-id 2.2.2.9

 area 0.0.0.0

  network 131.108.1.0 0.0.0.255

#

#

interface GigabitEthernet1/0/1

 ip address 172.10.1.1 255.255.255.0

#

interface GigabitEthernet1/0/2

 ip address 131.108.1.3 255.255.255.0

#

·     Device C:

#

 sysname DeviceC

#

ospf 200 router-id 3.3.3.9

 area 0.0.0.0

  network 131.108.1.0 0.0.0.255

#

interface GigabitEthernet1/0/1

 ip address 131.108.1.1 255.255.255.0

#

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们