• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

H3C MSR1000[2600][3600]路由器 配置举例一本通-R9141-6W101

目录

35-OSPF支持多进程典型配置举例

本章节下载 35-OSPF支持多进程典型配置举例  (159.69 KB)

35-OSPF支持多进程典型配置举例


1  OSPF多进程典型配置举例

1.1  组网需求

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

图1 OSPF多进程配置组网图

1.2  使用版本

本举例是在MSR2630E-X1设备的R9141P16版本上进行配置和验证的。

1.3  配置步骤

1.3.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.3.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.3.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.4  验证配置

# 在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           GE0/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          GE0/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      GE0/0/1

172.10.1.0/32      Direct  0   0           172.10.1.1      GE0/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      GE0/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     GE0/0/2     

131.108.1.0/32     Direct  0   0           131.108.1.1     GE0/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     GE0/0/2     

255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

1.5  配置文件

·     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 GigabitEthernet0/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 GigabitEthernet0/0/1

 ip address 172.10.1.1 255.255.255.0

#

interface GigabitEthernet0/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 GigabitEthernet0/0/1

 ip address 131.108.1.1 255.255.255.0

#

1.6  相关资料

·     《H3C MSR1000[2600][3600]路由器 配置指导(V9)》中的“三层技术-IP路由配置指导”

·     《H3C MSR1000[2600][3600]路由器 命令参考(V9)》中的“三层技术-IP路由命令参考”

 

 

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

新华三官网
联系我们