第四章作业

PS:思维导图在最下方

实验要求:

1、R4为ISP,其上只配置IP地址;R4与其他所直连设备间均使用公有IP;
2、R3-R5、R6、R7为MGRE环境,R3为中心站点;
3、整个OSPF环境IP基于172.16.0.0/16划分;除了R12有两个环回,其他路由器均有一个环回IP
4、所有设备均可访问R4的环回;
5、减少LSA的更新量,加快收敛,保障更新安全;
6、全网可达;

实验过程:

R1:

[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 172.16.33.1 24
Apr 16 2024 18:14:24-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]int l0
[R1-LoopBack0]ip add 172.16.34.1 24
[R1-LoopBack0]q
[R1]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.33.1/24       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.34.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)    

[R1]ospf 1 rou    
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1]ne 0.0.0.0 255.255.255.255
[R1-ospf-1-area-0.0.0.1]q

[R1]dis ospf peer b

     OSPF Process 1 with Router ID 1.1.1.1
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.1          GigabitEthernet0/0/0             2.2.2.2          Full        
 0.0.0.1          GigabitEthernet0/0/0             3.3.3.3          Full        
 ----------------------------------------------------------------------------
[r1]ospf 1
[r1-ospf-1]a 1
[r1-ospf-1-area-0.0.0.1]stub-    
[r1-ospf-1-area-0.0.0.1]stub no    
[r1-ospf-1-area-0.0.0.1]stub no-summary

R2:

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 172.16.33.2 24
Apr 16 2024 18:18:09-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]int l0
[R2-LoopBack0]ip add 172.16.35.2 24
[R2-LoopBack0]q
[R2]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.33.2/24       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.35.2/24       up         up(s)     
NULL0                             unassigned           up         up(s) 

[R2]ospf 1 rou    
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]ne 0.0.0.0 255.255.255.255
[R2-ospf-1-area-0.0.0.1]q
[r2-ospf-1]a 1
[r2-ospf-1-area-0.0.0.1]stub    
[r2-ospf-1-area-0.0.0.1]stub no    
[r2-ospf-1-area-0.0.0.1]stub no-summary 

R3:

[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 172.16.33.3 24
Apr 16 2024 18:22:29-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]q
[R3]int s4/0/0
[R3-Serial4/0/0]ip add 34.0.0.3 24
[R3-Serial4/0/0]int l0
[R3-LoopBack0]ip add 172.16.36.3 24
[R3-LoopBack0]q
[R3]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.33.3/24       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.36.3/24       up         up(s)     
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       34.0.0.3/24          up         up        
Serial4/0/1                       unassigned           down       down   

[R3]ospf 1 rou    
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]ne 172.16.33.0 0.0.0.255

[R3]ip rou    
[R3]ip route
[R3]ip route-static 0.0.0.0 0 34.0.0.4

[R3]int t 0/0/0
[R3-Tunnel0/0/0]ip add 172.16.6.3 24
[R3-Tunnel0/0/0]tunnel-protocol g    
[R3-Tunnel0/0/0]tunnel-protocol gre p    
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R3-Tunnel0/0/0]sou    
[R3-Tunnel0/0/0]source s4/0/0
Apr 16 2024 19:49:52-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R3-Tunnel0/0/0]
[R3-Tunnel0/0/0]nhrp n    
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp en    
[R3-Tunnel0/0/0]nhrp entry m    
[R3-Tunnel0/0/0]nhrp entry multicast dy    
[R3-Tunnel0/0/0]nhrp entry multicast dynamic 

[R3]dis nhrp peer all
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
172.16.6.5      32    45.0.0.5        172.16.6.5      dynamic      route tunnel 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/0
Created time    : 00:06:31
Expire time     : 01:53:29
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
172.16.6.6      32    46.0.0.6        172.16.6.6      dynamic      route tunnel 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/0
Created time    : 00:04:50
Expire time     : 01:55:10
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
172.16.6.7      32    47.0.0.7        172.16.6.7      dynamic      route tunnel 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/0
Created time    : 00:01:03
Expire time     : 01:58:57

Number of nhrp peers: 3
[R3-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 3.3.3.3 
 area 0.0.0.1 
  network 172.16.33.0 0.0.0.255 
  network 172.16.36.0 0.0.0.255 
#
return
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]ne 172.16.6.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]q

[R3]int t0/0/0
[R3-Tunnel0/0/0]ospf n    
[R3-Tunnel0/0/0]ospf network-type b    
[R3-Tunnel0/0/0]ospf network-type broadcast 

[R3]dis ospf peer b

     OSPF Process 1 with Router ID 3.3.3.3
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          Tunnel0/0/0                      5.5.5.5          Full        
 0.0.0.0          Tunnel0/0/0                      6.6.6.6          Full        
 0.0.0.0          Tunnel0/0/0                      7.7.7.7          Full        
 0.0.0.1          GigabitEthernet0/0/0             1.1.1.1          Full        
 0.0.0.1          GigabitEthernet0/0/0             2.2.2.2          Full        
 ----------------------------------------------------------------------------
[r3]acl 2000
[r3-acl-basic-2000]rule per    
[r3-acl-basic-2000]rule permit sou    
[r3-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r3-acl-basic-2000]q
[r3]int s4/0/0
[r3-Serial4/0/0]nat out    
[r3-Serial4/0/0]nat outbound 2000
[r3-Serial4/0/0]

[r3]ospf 1
[r3-ospf-1]abr    
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]abr    
[r3-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0
[r3-ospf-1-area-0.0.0.1]

[r3]os    
[r3]ospf 1 
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]st    
[r3-ospf-1-area-0.0.0.1]stub no    
[r3-ospf-1-area-0.0.0.1]stub no-summary 

R4:

[R4]int s4/0/0
[R4-Serial4/0/0]ip add 34.0.0.4 24
[R4-Serial4/0/0]
Apr 16 2024 18:26:01-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R4-Serial4/0/0]int s4/0/1
[R4-Serial4/0/1]ip add 45.0.0.4 24
[R4-Serial4/0/1]int s3/0/0
[R4-Serial3/0/0]ip add 46.0.0.4 24
[R4-Serial3/0/0]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 47.0.0.4 24
Apr 16 2024 18:27:55-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]q
[R4]int l0
[R4-LoopBack0]ip add 172.16.2.4 24
[R4-LoopBack0]q
[R4]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 6
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 6
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              47.0.0.4/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.2.4/24        up         up(s)     
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       46.0.0.4/24          up         up        
Serial3/0/1                       unassigned           down       down      
Serial4/0/0                       34.0.0.4/24          up         up        
Serial4/0/1                       45.0.0.4/24          up         up        

R5:

[R5]int s4/0/0
[R5-Serial4/0/0]ip add 45.0.0.5 24
[R5-Serial4/0/0]
Apr 16 2024 18:30:21-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R5-Serial4/0/0]int l0
[R5-LoopBack0]ip add 172.16.3.5 24
[R5-LoopBack0]q
[R5]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 4
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 4

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           down       down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.3.5/24        up         up(s)     
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       45.0.0.5/24          up         up        
Serial4/0/1                       unassigned           down       down      

[R5]ospf 1 rou    
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]ne 172.16.3.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]
[R5-ospf-1-area-0.0.0.0]q

[R5]ip rou    
[R5]ip route
[R5]ip route-static 0.0.0.0 0 45.0.0.4
[R5]int t    
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]ip add 172.16.6.5 24
[R5-Tunnel0/0/0]tu    
[R5-Tunnel0/0/0]tunnel-protocol g    
[R5-Tunnel0/0/0]tunnel-protocol gre p    
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R5-Tunnel0/0/0]sou    
[R5-Tunnel0/0/0]source s    
[R5-Tunnel0/0/0]source Serial 4/0/0
Apr 16 2024 19:55:10-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]nhrpn    
[R5-Tunnel0/0/0]nhrp n    
[R5-Tunnel0/0/0]nhrp network-id 100
[R5-Tunnel0/0/0]nhrp en    
[R5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re    
[R5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register 

[R6-Tunnel0/0/0]nhrp n    
[R6-Tunnel0/0/0]nhrp network-id 100

[R5]ospf 1
[R5-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 5.5.5.5 
 area 0.0.0.0 
  network 172.16.3.0 0.0.0.255 
#
return
[R5]int t0/0/0
[R5-Tunnel0/0/0]ospf ne    
[R5-Tunnel0/0/0]ospf network-type b    
[R5-Tunnel0/0/0]ospf network-type broadcast 
[R5-Tunnel0/0/0]ospf dr-    
[R5-Tunnel0/0/0]ospf dr-priority 0
[r5]acl 2000
[r5-acl-basic-2000]sou    
[r5-acl-basic-2000]sor    
[r5-acl-basic-2000]rule per    
[r5-acl-basic-2000]rule permit so    
[r5-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r5-acl-basic-2000]q
[r5]int s4/0/0
[r5-Serial4/0/0]nat ou    
[r5-Serial4/0/0]nat outbound 2000
[r5-Serial4/0/0]

R6:

[R6]int s4/0/0
[R6-Serial4/0/0]ip add 46.0.0.6 24
[R6-Serial4/0/0]
Apr 16 2024 18:32:25-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R6-Serial4/0/0]int l0
[R6-LoopBack0]ip add 172.16.4.6 24
[R6-LoopBack0]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 172.16.65.1 30
Apr 16 2024 18:33:49-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R6-GigabitEthernet0/0/0]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.65.1/30       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.4.6/24        up         up(s)     
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       46.0.0.6/24          up         up        
Serial4/0/1                       unassigned           down       down

[R6]ospf 1 rou    
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]ne 172.16.4.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]q

[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]ne 172.16.65.1 0.0.0.0

[R6]dis ip ro    
[R6]dis ip routing-table p    
[R6]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 14       Routes : 14       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       46.0.0.0/24  Direct  0    0           D   46.0.0.6        Serial4/0/0
       46.0.0.4/32  Direct  0    0           D   46.0.0.4        Serial4/0/0
       46.0.0.6/32  Direct  0    0           D   127.0.0.1       Serial4/0/0
     46.0.0.255/32  Direct  0    0           D   127.0.0.1       Serial4/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
     172.16.4.0/24  Direct  0    0           D   172.16.4.6      LoopBack0
     172.16.4.6/32  Direct  0    0           D   127.0.0.1       LoopBack0
   172.16.4.255/32  Direct  0    0           D   127.0.0.1       LoopBack0
    172.16.65.0/30  Direct  0    0           D   172.16.65.1     GigabitEthernet
0/0/0
    172.16.65.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    172.16.65.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R6]ip rou    
[R6]ip route
[R6]ip route-static 0.0.0.0 0 46.0.0.4

[R6]int t    
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]ip add 172.16.6.6 24
[R6-Tunnel0/0/0]tu    
[R6-Tunnel0/0/0]tunnel-protocol g    
[R6-Tunnel0/0/0]tunnel-protocol gre p    
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R6-Tunnel0/0/0]sou    
[R6-Tunnel0/0/0]source s    
[R6-Tunnel0/0/0]source Serial 4/0/0
Apr 16 2024 19:57:26-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R6-Tunnel0/0/0]nhrp en    
[R6-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re
[R6-Tunnel0/0/0]q
[R6]ospf 1
[R6-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 6.6.6.6 
 area 0.0.0.0 
  network 172.16.4.0 0.0.0.255 
 area 0.0.0.2 
#
return
[R6-Tunnel0/0/0]ospf dr-priority 0

[R6]dis ospf peer b

     OSPF Process 1 with Router ID 6.6.6.6
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          Tunnel0/0/0                      3.3.3.3          Full        
 0.0.0.2          GigabitEthernet0/0/0             11.11.11.11      Full        
 ----------------------------------------------------------------------------
[r6]acl 2000
[r6-acl-basic-2000]rule per    
[r6-acl-basic-2000]rule permit so    
[r6-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r6-acl-basic-2000]q
[r6]int s4/0/0
[r6-Serial4/0/0]nat out    
[r6-Serial4/0/0]nat outbound 2000
[r6-Serial4/0/0]

[r6]ospf 1
[r6-ospf-1]abr    
[r6-ospf-1]a 2
[r6-ospf-1-area-0.0.0.2]abr    
[r6-ospf-1-area-0.0.0.2]abr-summary 172.16.64.0 255.255.224.0
[r6-ospf-1-area-0.0.0.2]q
[r6-ospf-1]

[r6]os    
[r6]ospf 1
[r6-ospf-1]nssa     
[r6-ospf-1]nss    
[r6-ospf-1]a 2
[r6-ospf-1-area-0.0.0.2]nss    
[r6-ospf-1-area-0.0.0.2]nssa no    
[r6-ospf-1-area-0.0.0.2]nssa no-import-route
[r6-ospf-1-area-0.0.0.2]nssa no-summary

R7:

[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 47.0.0.7 24
[R7-GigabitEthernet0/0/0]
Apr 16 2024 18:35:46-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R7-GigabitEthernet0/0/0]int l0
[R7-LoopBack0]ip add 172.16.5.7 24
[R7-LoopBack0]q
[R7]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 172.16.97.1 30
Apr 16 2024 18:37:16-08:00 R7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R7-GigabitEthernet0/0/1]q
[R7]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              47.0.0.7/24          up         up        
GigabitEthernet0/0/1              172.16.97.1/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.5.7/24        up         up(s)     
NULL0                             unassigned           up         up(s) 

[R7]ospf 1 rou    
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]ne 172.16.5.0 0.0.0.255
[R7-ospf-1-area-0.0.0.0]q

[R7-ospf-1-area-0.0.0.3]ne 172.16.97.1 0.0.0.0

[R7]ip rou    
[R7]ip route
[R7]ip route-static 0.0.0.0 0 47.0.0.4
[R7]ping -a 47.0.0.7 34.0.0.3
  PING 34.0.0.3: 56  data bytes, press CTRL_C to break
    Reply from 34.0.0.3: bytes=56 Sequence=1 ttl=254 time=80 ms
    Reply from 34.0.0.3: bytes=56 Sequence=2 ttl=254 time=40 ms
    Reply from 34.0.0.3: bytes=56 Sequence=3 ttl=254 time=30 ms
    Reply from 34.0.0.3: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 34.0.0.3: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 34.0.0.3 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/40/80 ms

[R7]ping -a 47.0.0.7 45.0.0.5
  PING 45.0.0.5: 56  data bytes, press CTRL_C to break
    Reply from 45.0.0.5: bytes=56 Sequence=1 ttl=254 time=70 ms
    Reply from 45.0.0.5: bytes=56 Sequence=2 ttl=254 time=20 ms
    Reply from 45.0.0.5: bytes=56 Sequence=3 ttl=254 time=30 ms
    Reply from 45.0.0.5: bytes=56 Sequence=4 ttl=254 time=30 ms
    Reply from 45.0.0.5: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 45.0.0.5 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/36/70 ms

[R7]ping -a 47.0.0.7 46.0.0.6
  PING 46.0.0.6: 56  data bytes, press CTRL_C to break
    Reply from 46.0.0.6: bytes=56 Sequence=1 ttl=254 time=50 ms
    Reply from 46.0.0.6: bytes=56 Sequence=2 ttl=254 time=30 ms
    Reply from 46.0.0.6: bytes=56 Sequence=3 ttl=254 time=20 ms
    Reply from 46.0.0.6: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 46.0.0.6: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 46.0.0.6 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/30/50 ms

[R7]int t    
[R7]int Tunnel 0/0/0
[R7-Tunnel0/0/0]ip add 172.16.6.7 24
[R7-Tunnel0/0/0]tu    
[R7-Tunnel0/0/0]tunnel-protocol 
[R7-Tunnel0/0/0]tunnel-protocol g    
[R7-Tunnel0/0/0]tunnel-protocol gre p    
[R7-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R7-Tunnel0/0/0]sou    
[R7-Tunnel0/0/0]source g0/0/0
Apr 16 2024 19:59:28-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R7-Tunnel0/0/0]nhrp n    
[R7-Tunnel0/0/0]nhrp network-id 100

[R7-Tunnel0/0/0]nhrp en    
[R7-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 re
[R7-Tunnel0/0/0]q
[R7]ospf 1
[R7-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 7.7.7.7 
 area 0.0.0.0 
  network 172.16.5.0 0.0.0.255 
 area 0.0.0.3 
  network 172.16.97.1 0.0.0.0 
#
return
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]ne 172.16.6.0 0.0.0.255
[R7-ospf-1-area-0.0.0.0]
Apr 16 2024 20:09:41-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R7-ospf-1-area-0.0.0.0]q
[R7-ospf-1]q
[R7]int t0/0/0
[R7-Tunnel0/0/0]ospf ne    
[R7-Tunnel0/0/0]ospf network-type b    
[R7-Tunnel0/0/0]ospf network-type broadcast 
[R7-Tunnel0/0/0]ospf dr-priority 0

[R7]dis ospf peer b

     OSPF Process 1 with Router ID 7.7.7.7
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          Tunnel0/0/0                      3.3.3.3          Full        
 0.0.0.3          GigabitEthernet0/0/1             8.8.8.8          Full        
 ----------------------------------------------------------------------------
[r7]acl 2000
[r7-acl-basic-2000]rule permi    
[r7-acl-basic-2000]rule permit so    
[r7-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[r7-acl-basic-2000]q
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]nat out    
[r7-GigabitEthernet0/0/0]nat outbound 2000
[r7-GigabitEthernet0/0/0]

[r7]ospf 1
[r7-ospf-1]a 3
[r7-ospf-1-area-0.0.0.3]abr    
[r7-ospf-1-area-0.0.0.3]abr-summary 172.16.96.0 255.255.224.0
[r7-ospf-1-area-0.0.0.3]q

[r7]os    
[r7]ospf 1
[r7-ospf-1]a 3
[r7-ospf-1-area-0.0.0.3]nssa no    
[r7-ospf-1-area-0.0.0.3]nssa no-summary

R8:

[R8]int g0/0/0
[R8-GigabitEthernet0/0/0]ip add 172.16.97.2 30
[R8-GigabitEthernet0/0/0]
Apr 16 2024 18:39:07-08:00 R8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R8]int g0/0/1
[R8-GigabitEthernet0/0/1]ip add 172.16.97.5 30
Apr 16 2024 18:40:55-08:00 R8 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R8-GigabitEthernet0/0/1]int l0
[R8-LoopBack0]ip add 172.16.98.8 24
[R8-LoopBack0]q

[R8]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.97.2/30       up         up        
GigabitEthernet0/0/1              172.16.97.5/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.98.8/24       up         up(s)     
NULL0                             unassigned           up         up(s)  

[R8]ospf 1 rou    
[R8]ospf 1 router-id 8.8.8.8
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]ne 0.0.0.0 255.255.255.255
[R8-ospf-1-area-0.0.0.3]q

[R8]dis ospf peer b

     OSPF Process 1 with Router ID 8.8.8.8
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.3          GigabitEthernet0/0/0             7.7.7.7          Full        
 0.0.0.3          GigabitEthernet0/0/1             9.9.9.9          Full        
 ----------------------------------------------------------------------------

[r8]ospf 1
[r8-ospf-1]a 3
[r8-ospf-1-area-0.0.0.3]nssa no    
[r8-ospf-1-area-0.0.0.3]nssa no-import-route
[r8-ospf-1-area-0.0.0.3]nssa no-summary

R9:

[R9]int g0/0/0
[R9-GigabitEthernet0/0/0]ip add 172.16.97.6 30
[R9-GigabitEthernet0/0/0]
Apr 16 2024 18:43:51-08:00 R9 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R9-GigabitEthernet0/0/0]int g0/0/1
[R9-GigabitEthernet0/0/1]ip add 172.16.129.1 30
Apr 16 2024 18:44:11-08:00 R9 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R9-GigabitEthernet0/0/1]int l0
[R9-LoopBack0]ip add 172.16.130.9 24
[R9-LoopBack0]q
[R9]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.97.6/30       up         up        
GigabitEthernet0/0/1              172.16.129.1/30      up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.130.9/24      up         up(s)     
NULL0                             unassigned           up         up(s)     

[R9]ospf 1 rou    
[R9]ospf 1 router-id 9.9.9.9
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]ne 172.16.97.6 0.0.0.0
[R9-ospf-1]q
[R9]ospf 2 rou    
[R9]ospf 2 router-id 9.9.9.9
[R9-ospf-2]a 4
[R9-ospf-2-area-0.0.0.4]ne 172.16.129.1 0.0.0.0
[R9-ospf-2-area-0.0.0.4]ne 172.16.130.0 0.0.0.255
[R9-ospf-2-area-0.0.0.4]q
[R9-ospf-2]q

[R9]ospf 1
[R9-ospf-1]im    
[R9-ospf-1]import-route ospf 2
[R9-ospf-1]q
[R9]ospf 2
[R9-ospf-2]im    
[R9-ospf-2]import-route ospf 1
[R9-ospf-2]q

[R9]dis ospf peer b

     OSPF Process 1 with Router ID 9.9.9.9
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.3          GigabitEthernet0/0/0             8.8.8.8          Full        
 ----------------------------------------------------------------------------

     OSPF Process 2 with Router ID 9.9.9.9
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.4          GigabitEthernet0/0/1             10.10.10.10      Full        
 ----------------------------------------------------------------------------
[r9]os    
[r9]ospf 1
[r9-ospf-1]a 3
[r9-ospf-1-area-0.0.0.3]nssa no    
[r9-ospf-1-area-0.0.0.3]nssa no-summary

[r9]os    
[r9]ospf 2
[r9-ospf-2]defa    
[r9-ospf-2]default-route-advertise
[r9-ospf-2]q


R10:

[R10]int g0/0/0
[R10-GigabitEthernet0/0/0]ip add 172.16.129.2 30
[R10-GigabitEthernet0/0/0]
Apr 16 2024 18:46:38-08:00 R10 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R10-GigabitEthernet0/0/0]int l0
[R10-LoopBack0]ip add 172.16.131.10 24
[R10-LoopBack0]q
[R10]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.129.2/30      up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.131.10/24     up         up(s)     
NULL0                             unassigned           up         up(s)    

[R10]ospf 2 rou    
[R10]ospf 2 router-id 10.10.10.10
[R10-ospf-2]a 4
[R10-ospf-2-area-0.0.0.4]ne 0.0.0.0 255.255.255.255
[R10-ospf-2-area-0.0.0.4]q

[R10]dis ip rou    
[R10]dis ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 11       Routes : 11       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
   172.16.129.0/30  Direct  0    0           D   172.16.129.2    GigabitEthernet
0/0/0
   172.16.129.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   172.16.129.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   172.16.130.9/32  OSPF    10   1           D   172.16.129.1    GigabitEthernet
0/0/0
   172.16.131.0/24  Direct  0    0           D   172.16.131.10   LoopBack0
  172.16.131.10/32  Direct  0    0           D   127.0.0.1       LoopBack0
 172.16.131.255/32  Direct  0    0           D   127.0.0.1       LoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[R10]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 15       Routes : 15       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
     172.16.5.7/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.97.0/30  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.97.4/30  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.98.8/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
   172.16.129.0/30  Direct  0    0           D   172.16.129.2    GigabitEthernet
0/0/0
   172.16.129.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   172.16.129.3/32  Direct  0    0           D   127.0.0.1       GigabitEthernet

[R10]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 11       Routes : 11       

OSPF routing table status : <Active>
         Destinations : 11       Routes : 11

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

     172.16.3.5/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
     172.16.5.7/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
     172.16.6.0/24  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.33.0/24  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.34.1/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.35.2/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.36.3/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.97.0/30  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.97.4/30  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
    172.16.98.8/32  O_ASE   150  1           D   172.16.129.1    GigabitEthernet
0/0/0
   172.16.130.9/32  OSPF    10   1           D   172.16.129.1    GigabitEthernet
0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0
 

R11:

[R11]int g0/0/0
[R11-GigabitEthernet0/0/0]ip add 172.16.65.2 30
Apr 16 2024 18:52:59-08:00 R11 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R11-GigabitEthernet0/0/0]int g0/0/1
[R11-GigabitEthernet0/0/1]ip add 172.16.65.5 30
Apr 16 2024 18:53:27-08:00 R11 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R11-GigabitEthernet0/0/1]int l0
[R11-LoopBack0]ip add 172.16.66.11 24
[R11-LoopBack0]q
[R11]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.65.2/30       up         up        
GigabitEthernet0/0/1              172.16.65.5/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.66.11/24      up         up(s)     
NULL0                             unassigned           up         up(s)  

[R11]ospf 1 rou    
[R11]ospf 1 router-id 11.11.11.11
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]ne 0.0.0.0 255.255.255.255
[R11-ospf-1-area-0.0.0.2]q
[R11-ospf-1]q

[R11]dis ospf peer b

     OSPF Process 1 with Router ID 11.11.11.11
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.2          GigabitEthernet0/0/0             6.6.6.6          Full        
 0.0.0.2          GigabitEthernet0/0/1             12.12.12.12      Full        
 ----------------------------------------------------------------------------
[r11-ospf-1]a 2
[r11-ospf-1-area-0.0.0.2]nss    
[r11-ospf-1-area-0.0.0.2]nssa no    
[r11-ospf-1-area-0.0.0.2]nssa no-import-route
[r11-ospf-1-area-0.0.0.2]nssa no-summary
[r11-ospf-1-area-0.0.0.2]

R12:

[R12]int g0/0/0
[R12-GigabitEthernet0/0/0]ip add 172.16.65.6 30
[R12-GigabitEthernet0/0/0]
Apr 16 2024 18:59:54-08:00 R12 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R12-GigabitEthernet0/0/0]int l0
[R12-LoopBack0]ip add 172.16.160.12 24
[R12-LoopBack0]int l1
[R12-LoopBack1]ip add 172.16.161.12 24
[R12-LoopBack1]q
[R12]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.65.6/30       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.160.12/24     up         up(s)     
LoopBack1                         172.16.161.12/24     up         up(s)     
NULL0                             unassigned           up         up(s)    

[R12]ospf 1rou    
[R12]ospf 1 rou    
[R12]ospf 1 router-id 12.12.12.12
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]ne 172.16.65.6 0.0.0.0
[R12]rip 1
[R12-rip-1]v 2
[R12-rip-1]undo su    
[R12-rip-1]undo summary 
[R12-rip-1]ne 172.16.0.0
[R12-rip-1]q

[R12]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 15       Routes : 15       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
    172.16.65.0/30  OSPF    10   2           D   172.16.65.5     GigabitEthernet
0/0/0
    172.16.65.4/30  Direct  0    0           D   172.16.65.6     GigabitEthernet
0/0/0
    172.16.65.6/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    172.16.65.7/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   172.16.66.11/32  OSPF    10   1           D   172.16.65.5     GigabitEthernet
0/0/0
   172.16.160.0/24  Direct  0    0           D   172.16.160.12   LoopBack0
  172.16.160.12/32  Direct  0    0           D   127.0.0.1       LoopBack0
 172.16.160.255/32  Direct  0    0           D   127.0.0.1       LoopBack0
   172.16.161.0/24  Direct  0    0           D   172.16.161.12   LoopBack1
  172.16.161.12/32  Direct  0    0           D   127.0.0.1       LoopBack1
 172.16.161.255/32  Direct  0    0           D   127.0.0.1       LoopBack1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[r12]os    
[r12]ospf 1
[r12-ospf-1]as    
[r12-ospf-1]asbr-summary 172.16.64.0 255.255.224.0
[r12-ospf-1]q

[r12]os    
[r12]ospf 1
[r12-ospf-1]a 2
[r12-ospf-1-area-0.0.0.2]nss    
[r12-ospf-1-area-0.0.0.2]nssa no    
[r12-ospf-1-area-0.0.0.2]nssa no-import-route
[r12-ospf-1-area-0.0.0.2]nssa no-summary
[r12-ospf-1-area-0.0.0.2]

实验现象:
 

[r1]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 11       Routes : 11       

OSPF routing table status : <Active>
         Destinations : 11       Routes : 11

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

     172.16.3.5/32  OSPF    10   1563        D   172.16.33.3     GigabitEthernet
0/0/0
     172.16.5.7/32  OSPF    10   1563        D   172.16.33.3     GigabitEthernet
0/0/0
     172.16.6.0/24  OSPF    10   1563        D   172.16.33.3     GigabitEthernet
0/0/0
    172.16.35.2/32  OSPF    10   1           D   172.16.33.2     GigabitEthernet
0/0/0
    172.16.36.3/32  OSPF    10   1           D   172.16.33.3     GigabitEthernet
0/0/0
    172.16.97.0/30  OSPF    10   1564        D   172.16.33.3     GigabitEthernet
0/0/0
    172.16.97.4/30  OSPF    10   1565        D   172.16.33.3     GigabitEthernet
0/0/0
    172.16.98.8/32  OSPF    10   1564        D   172.16.33.3     GigabitEthernet
0/0/0
   172.16.129.0/30  O_ASE   150  1           D   172.16.33.3     GigabitEthernet
0/0/0
   172.16.130.0/24  O_ASE   150  1           D   172.16.33.3     GigabitEthernet
0/0/0
  172.16.131.10/32  O_ASE   150  1           D   172.16.33.3     GigabitEthernet
0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

[r1]display ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 3        Routes : 3        

OSPF routing table status : <Active>
         Destinations : 3        Routes : 3

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   OSPF    10   2           D   172.16.33.3     GigabitEthernet
0/0/0
    172.16.35.2/32  OSPF    10   1           D   172.16.33.2     GigabitEthernet
0/0/0
    172.16.36.3/32  OSPF    10   1           D   172.16.33.3     GigabitEthernet
0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

[r12-GigabitEthernet0/0/0]ospf timer hello 5
[r12-GigabitEthernet0/0/0]q
[r12]ping 172.16.2.4
  PING 172.16.2.4: 56  data bytes, press CTRL_C to break
    Reply from 172.16.2.4: bytes=56 Sequence=1 ttl=253 time=70 ms
    Reply from 172.16.2.4: bytes=56 Sequence=2 ttl=253 time=30 ms
    Reply from 172.16.2.4: bytes=56 Sequence=3 ttl=253 time=30 ms
    Reply from 172.16.2.4: bytes=56 Sequence=4 ttl=253 time=40 ms
    Reply from 172.16.2.4: bytes=56 Sequence=5 ttl=253 time=30 ms

  --- 172.16.2.4 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/40/70 ms

[r10-GigabitEthernet0/0/0]q
[r10]ping 172.16.2.4
  PING 172.16.2.4: 56  data bytes, press CTRL_C to break
    Reply from 172.16.2.4: bytes=56 Sequence=1 ttl=252 time=70 ms
    Reply from 172.16.2.4: bytes=56 Sequence=2 ttl=252 time=40 ms
    Reply from 172.16.2.4: bytes=56 Sequence=3 ttl=252 time=30 ms
    Reply from 172.16.2.4: bytes=56 Sequence=4 ttl=252 time=30 ms
    Reply from 172.16.2.4: bytes=56 Sequence=5 ttl=252 time=40 ms

  --- 172.16.2.4 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/42/70 ms
 

[r1-GigabitEthernet0/0/0]ospf timer hello 5

[r2-GigabitEthernet0/0/0]ospf timer hello 5

[r3-GigabitEthernet0/0/0]ospf timer hello 5

其他区域同理配置

[r6-ospf-1]a 2
[r6-ospf-1-area-0.0.0.2]au    
[r6-ospf-1-area-0.0.0.2]authentication-mode md5 1 ci    
[r6-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[r6-ospf-1-area-0.0.0.2]

[r11]ospf 1 
[r11-ospf-1]a 2
[r11-ospf-1-area-0.0.0.2]au    
[r11-ospf-1-area-0.0.0.2]authentication-mode md5 1 cip    
[r11-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[r11-ospf-1-area-0.0.0.2]

[r12-ospf-1-area-0.0.0.2]authentication-mode md5 1 cip    
[r12-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher 12345
[r12-ospf-1-area-0.0.0.2]

其他区域同理配置

思维导图:

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值