OSPF 单区域实验

简介: OSPF 单区域实验

第一步先将四个路由器配置通

AR3

[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip addr 192.168.1.3 24
[Huawei-GigabitEthernet0/0/0]int l 1
[Huawei-LoopBack1]ip addr 3.3.3.3 24
[Huawei-LoopBack1]

AR1

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip addr 192.168.1.1 24
Mar  1 2020 13:44:57-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 l 1
[Huawei-LoopBack1]ip addr 5.5.5.5 24

AR2

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip addr 192.168.1.2 24
Mar  1 2020 13:46:40-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 l 1
[Huawei-LoopBack1]ip addr 4.4.4.4 24
[Huawei-LoopBack1]quit
[Huawei]sys ar2
[ar2]

AR4

<Huawei>sys ar4
            ^
Error:Too many parameters found at '^' position.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys ar4
[ar4]int g0/0/0
[ar4-GigabitEthernet0/0/0]ip addr 192.168.1.4 24
Mar  1 2020 13:49:02-08:00 ar4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ar4-GigabitEthernet0/0/0]int l 1
[ar4-LoopBack1]ip addr 2.2.2.2 24
[ar4-LoopBack1]ping 192.168.1.1
  PING 192.168.1.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=110 ms
    Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=60 ms
    Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=50 ms
    Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=60 ms
    Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=255 time=50 ms
  --- 192.168.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/66/110 ms
[ar4-LoopBack1]ping 192.168.1.2
  PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=50 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=40 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=60 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=50 ms
  --- 192.168.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/58/90 ms
[ar4-LoopBack1]ping 192.168.1.3
  PING 192.168.1.3: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.3: bytes=56 Sequence=1 ttl=255 time=140 ms
    Reply from 192.168.1.3: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 192.168.1.3: bytes=56 Sequence=3 ttl=255 time=60 ms
    Reply from 192.168.1.3: bytes=56 Sequence=4 ttl=255 time=60 ms
    Reply from 192.168.1.3: bytes=56 Sequence=5 ttl=255 time=50 ms
  --- 192.168.1.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/70/140 ms
[ar4-LoopBack1]

第二步开始配置ospf

[AR1]router id 5.5.5.5
Info: Router ID has been modified, please reset the relative protocols manually 
to update the Router ID.
[AR1]ospf
[AR1-ospf-1]area 0
[AR1-ospf-1-area-0.0.0.0]net  
[AR1-ospf-1-area-0.0.0.0]network 5.5.5.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]net 192.168.1.0 0.0.0.255
[AR1]router id 5.5.5.5
Info: Router ID has been modified, please reset the relative protocols manually 
to update the Router ID.
[AR1]ospf
[AR1-ospf-1]area 0
[AR1-ospf-1-area-0.0.0.0]net  
[AR1-ospf-1-area-0.0.0.0]network 5.5.5.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]net 192.168.1.0 0.0.0.255
/*****************************************************************************************************************************/
<ar2>sys
Enter system view, return user view with Ctrl+Z.
[ar2]router id 4.4.4.4
Info: Router ID has been modified, please reset the relative protocols manually 
to update the Router ID.
[ar2]ospf
[ar2-ospf-1]area 0
[ar2-ospf-1-area-0.0.0.0]net 4.4.4.0 0.0.0.255
[ar2-ospf-1-area-0.0.0.0]net 192.168.1.0 0.0.0.255
[ar2-ospf-1-area-0.0.0.0]
/******************************************************************************************************************************/
<ar3>sys
Enter system view, return user view with Ctrl+Z.
[ar3]router id 3.3.3.3
Info: Router ID has been modified, please reset the relative protocols manually 
to update the Router ID.
[ar3]ospf
[ar3-ospf-1]area 0
[ar3-ospf-1-area-0.0.0.0]net 3.3.3.0 0.0.0.255
[ar3-ospf-1-area-0.0.0.0]net 192.168.1.0 0.0.0.255
[ar3-ospf-1-area-0.0.0.0]
/******************************************************************************************************************************/
<ar4>sys
Enter system view, return user view with Ctrl+Z.
[ar4]router id 2.2.2.2
Info: Router ID has been modified, please reset the relative protocols manually 
to update the Router ID.
[ar4]ospf
[ar4-ospf-1]area 0
[ar4-ospf-1-area-0.0.0.0]net 2.2.2.0 0.0.0.255
[ar4-ospf-1-area-0.0.0.0]net 192.168.1.0 0.0.0.255
[ar4-ospf-1-area-0.0.0.0]
/******************************************************************************************************************************/
[ar4-ospf-1]dis ospf lsdb
   OSPF Process 1 with Router ID 2.2.2.2
     Link State Database 
             Area: 0.0.0.0
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
 Router    4.4.4.4         4.4.4.4             85  48    80000008       1
 Router    2.2.2.2         2.2.2.2             83  48    80000005       1
 Router    5.5.5.5         5.5.5.5             86  48    8000000A       1
 Router    3.3.3.3         3.3.3.3             84  48    80000006       1
 Network   192.168.1.1     5.5.5.5             86  40    80000006       0
[ar4-ospf-1]
目录
相关文章
|
1月前
|
网络协议 数据库 vr&ar
1. OSPF 基础实验(一):单区域
1. OSPF 基础实验(一):单区域
|
1月前
|
网络协议 vr&ar 网络架构
1. OSPF 基础实验(二):多区域
1. OSPF 基础实验(二):多区域
|
3月前
|
网络协议 数据库
ospf 多区域实验
ospf 多区域实验
24 0
|
6月前
|
网络协议
【OSPF宣告——network命令与多区域配置实验案例】
【OSPF宣告——network命令与多区域配置实验案例】
90 0
【OSPF宣告——network命令与多区域配置实验案例】
|
10月前
|
网络协议 数据安全/隐私保护 网络架构
多区域的OSPF实战配置
多区域的OSPF实战配置
53 0
|
网络协议 数据库 网络架构
ospf多区域原理和配置
ospf多区域原理和配置
226 0
ospf多区域原理和配置
|
网络协议 网络架构

热门文章

最新文章