OSPF实验

OSPF实验

1.拓扑图

在这里插入图片描述

2.需求分析

先进行IP划分,再启动OSPF进行配置

3.步骤

R1

GigabitEthernet0/0/0              192.168.1.1/27       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.97/27      up         up(s)     
NULL0                             unassigned           up         up(s)     
[Huawei]ospf 1 router-id 1.1.1.1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.31
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.96 0.0.0.31



R2

GigabitEthernet0/0/0              192.168.1.2/27       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.129/27     up         up(s)     
NULL0                             unassigned           up         up(s)     
[Huawei]ospf 1 router-id 2.2.2.2
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.31
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.128 0.0.0.31
 

R3

GigabitEthernet0/0/0              192.168.1.3/27       up         up        
GigabitEthernet0/0/1              192.168.1.33/27      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[Huawei]ospf 1 router-id 3.3.3.3
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.31
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.32 0.0.0.31
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 123456

R4

GigabitEthernet0/0/0              192.168.1.34/27      up         up        
GigabitEthernet0/0/1              192.168.1.65/27      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[Huawei]ospf 1 router-id 4.4.4.4
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.32 0.0.0.31
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.64 0.0.0.31
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 123456

R5

GigabitEthernet0/0/0              192.168.1.66/27      up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.129/25     up         up(s)     
NULL0                             unassigned           up         up(s)     
[Huawei]ospf 1 router-id 5.5.5.5
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.64 0.0.0.31
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456

4.验证

在这里插入图片描述

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值