ospf协议实验

在这里插入图片描述
链路ip
192.168.1.0 27
192.168.1.32 27
192.168.1.64 27
192.168.1.96 27
192.168.1.128 27
环回ip
192.168.1.161 32
192.168.1.193 32
192.168.1.225 32
AR1

[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 27
Mar 26 2023 20:21:50-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The
line protocol IP on the interface GigabitEthernet0/0/0 has entered
the UP state. [Huawei-GigabitEthernet0/0/0]int l0
[Huawei-LoopBack0]ip add 192.168.1.32 27 Error: The specified IP
address is invalid. [Huawei-LoopBack0]ip add 192.168.1.32 24 Info: A
similar IP subnet already exists. Please verify the current IP subnet
de sign. [Huawei-LoopBack0]ip add 192.168.161 32
^ Error: Wrong parameter found at ‘^’ position. [Huawei-LoopBack0]ip add 192.168.1.161 32
[Huawei-LoopBack0]q [Huawei]ospf 1 [Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ospf dr-priority
[Huawei-GigabitEthernet0/0/0]ospf dr-priority 10
[Huawei-GigabitEthernet0/0/0]

AR2

[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add
192.168.1.33 27 Mar 26 2023 20:29:52-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the
interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]int l0 [Huawei-LoopBack0]ip add
192.168.1.193 32 [Huawei-LoopBack0]q [Huawei]ospf 1 [Huawei-ospf-1]areo 0
^ Error: Unrecognized command found at ‘^’ position. [Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.33 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q

AR3

[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.65
27 Mar 26 2023 20:34:14-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The
line protocol IP on the interface GigabitEthernet0/0/0 has entered
the UP state. [Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.97 27 Mar 26 2023
20:34:46-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]int l0 [Huawei-LoopBack0]ip add
192.168.1.
^ Error: Wrong parameter found at ‘^’ position. [Huawei-LoopBack0]q [Huawei]ospf 1 router [Huawei]ospf 1
router-id
^ Error:Incomplete command found at ‘^’ position. [Huawei]ospf 1 [Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.65 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]area1
^ Error: Unrecognized command found at ‘^’ position. [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]ne
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.97 0.0.0.0
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher
123456

AR4

[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.65
27 [Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.97 27 [Huawei]ospf 1
[Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]network 192.168.1.65
0.0.0.0 [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]ne [Huawei-ospf-1-area-0.0.0.1]network 192.168.1.97 0.0.0.0
[Huawei-ospf-1-area-0.0.0.1]q [Huawei-GigabitEthernet0/0/0]ospf
authentication-mode md5 1 cipher 123456

AR5

[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.130
27 Mar 26 2023 20:47:11-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The
line protocol IP on the interface GigabitEthernet0/0/0 has entered
the UP state. [Huawei-GigabitEthernet0/0/0]int l0
[Huawei-LoopBack0]ip add 192.168.1.225 32 [Huawei-LoopBack0]q
[Huawei]ospf 1 [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]net
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.130 0.0.0.0
[Huawei-ospf-1]default-route-advertise //发放缺省
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher
123456

AR3

[Huawei]display  ospf lsdb

	 OSPF Process 1 with Router ID 192.168.1.65
		 Link State Database 

		         Area: 0.0.0.0
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
 Router    192.168.1.65    192.168.1.65      1117  36    80000003       1
 Sum-Net   192.168.1.96    192.168.1.65      1108  28    80000001       1
 
		         Area: 0.0.0.1
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
 Router    192.168.1.98    192.168.1.98       732  48    80000005       1
 Router    192.168.1.65    192.168.1.65       681  36    80000006       1
 Sum-Net   192.168.1.64    192.168.1.65      1108  28    80000001       1
 

AR3
在这里插入图片描述

AR4
在这里插入图片描述

在这里插入图片描述
AR5
在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值