04-H3C MSR係列路由器 OSPF支持多進程典型配置舉例
本章節下載: 04-H3C MSR係列路由器 OSPF支持多進程典型配置舉例 (167.81 KB)
H3C MSR係列路由器
OSPF多進程典型配置舉例
Copyright © 2024 bobty下载软件 版權所有,保留一切權利。
非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。
除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。
本文檔中的信息可能變動,恕不另行通知。
如圖1所示,DeviceA與DeviceB在OSPF進程100中建立鄰居關係,Device B與Device C在OSPF進程200中建立鄰居關係。DeviceA和Device C不能通過OSPF學習到對方的路由。
圖1 OSPF多進程配置組網圖
# 配置設備的名稱為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
# 配置設備的名稱為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
# 配置設備的名稱為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
# 在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
· 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保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!