华三交换机OSPF多域配置方法( 二 )


[SWD-ospf-1-area-0.0.0.2]quit
[SWD-ospf-1]quit
#保存配置
[SWD]save force
 
3.5 验证配置# 查看Switch A的OSPF邻居 , Full是正常状态
[SWA]display ospf peer
OSPF Process 1 with Router ID 192.168.1.1
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time State Interface
192.168.2.1 192.168.0.2 1 32 Full/BDR Vlan100
Area: 0.0.0.1
Router ID Address Pri Dead-Time State Interface
192.168.1.2 192.168.1.2 1 36 Full/BDR Vlan200
#查看Switch A的OSPF路由信息
[SWA]display ospf routing
OSPF Process 1 with Router ID 192.168.1.1
Routing Table
Topology base (MTID 0)
Routing for network
Destination Cost Type NextHop AdvRouter Area
172.16.1.0/24 2 Stub 192.168.1.2 192.168.1.2 0.0.0.1
172.17.1.0/24 3 Inter 192.168.0.2 192.168.2.1 0.0.0.0
192.168.0.0/24 1 Transit 0.0.0.0 192.168.1.1 0.0.0.0
192.168.1.0/24 1 Transit 0.0.0.0 192.168.1.1 0.0.0.1
192.168.2.0/24 2 Inter 192.168.0.2 192.168.2.1 0.0.0.0
Total nets: 5
Intra area: 3 Inter area: 2 ASE: 0 NSSA: 0
#查看Switch A的路由表信息 , 有到172.16.1.0、172.17.1.0、192.168.2.0的路由
[SWA]display ip routing-table
Destinations : 19 Routes : 19
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/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.16.1.0/24 O_INTRA 10 2 192.168.1.2 Vlan200
172.17.1.0/24 O_INTER 10 3 192.168.0.2 Vlan100
192.168.0.0/24 Direct 0 0 192.168.0.1 Vlan100
192.168.0.0/32 Direct 0 0 192.168.0.1 Vlan100
192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.255/32 Direct 0 0 192.168.0.1 Vlan100
192.168.1.0/24 Direct 0 0 192.168.1.1 Vlan200
192.168.1.0/32 Direct 0 0 192.168.1.1 Vlan200
192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.255/32 Direct 0 0 192.168.1.1 Vlan200
192.168.2.0/24 O_INTER 10 2 192.168.0.2 Vlan100
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
# PC1 ping PC2 正常通信
C:Usersmfw2656>ping 172.17.1.2
Ping 172.17.1.2 (172.17.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 172.17.1.2: icmp_seq=0 ttl=254 time=8.000 ms
56 bytes from 172.17.1.2: icmp_seq=1 ttl=254 time=2.000 ms
56 bytes from 172.17.1.2: icmp_seq=2 ttl=254 time=3.000 ms
56 bytes from 172.17.1.2: icmp_seq=3 ttl=254 time=3.000 ms
172.17.1.2的 Ping 统计信息:
数据包: 已发送 = 4 , 已接收 = 4 , 丢失 = 0 (0% 丢失) , 
返行程的估计时间(以毫秒为单位):
最短 = 2ms , 最长 = 3ms , 平均 = 2ms

【华三交换机OSPF多域配置方法】


推荐阅读