第五章作业

PS:思维导图在最下方!!!

实验要求:

实验过程:

r1:

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 100.1.1.1 24
Apr 23 2024 19:42:51-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]: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 192.168.0.1 32
[r1-LoopBack0]int l1
[r1-LoopBack1]ip add 192.168.1.1 32
[r1-LoopBack1]q
[r1]rip 1
[r1-rip-1]v 1
[r1-rip-1]v 2
[r1-rip-1]undo su    
[r1-rip-1]undo summary 
[r1-rip-1]ne 100.0.0.0
[r1-rip-1]ne 192.168.0.0
[r1-rip-1]ne 192.168.1.0
[r1-rip-1]q
[r1]

r2:

[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 100.1.1.2 24
[r2-GigabitEthernet0/0/0]
Apr 23 2024 19:46:25-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 g0/0/1
[r2-GigabitEthernet0/0/1]ip add 100.2.2.2 24
Apr 23 2024 19:47:02-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r2]rip 1
[r2-rip-1]v 2
[r2-rip-1]undo su    
[r2-rip-1]undo summary 
[r2-rip-1]ne 100.0.0.0
[r2-rip-1]q
[r2]ospf 1 rou    
[r2]ospf 1 router-id 1.1.1.1
Info: The configuration succeeded. You need to restart the OSPF process to valid
ate the new router ID.
[r2-ospf-1]a 0
[r2-ospf-1-area-0.0.0.0]ne 100.2.2.0 0.0.0.255
[r2-ospf-1-area-0.0.0.0]q
[r2]rip 1
[r2-rip-1]im    
[r2-rip-1]import-route ospf
[r2-rip-1]q
[r2]ospf 1
[r2-ospf-1]im    
[r2-ospf-1]import-route rip
[r2-ospf-1]q

[r2]acl 2000
[r2-acl-basic-2000]rule p    
[r2-acl-basic-2000]rule permit s    
[r2-acl-basic-2000]rule permit source 192.168.4.0 0.0.1.255
[r2-acl-basic-2000]rule de    
[r2-acl-basic-2000]rule deny s    
[r2-acl-basic-2000]rule deny source 192.168.4.0 0.0.1.255
[r2-acl-basic-2000]rule per    
[r2-acl-basic-2000]undo rule 5
[r2-acl-basic-2000]rule per    
[r2-acl-basic-2000]rule permit s 0.0.0.0 255.255.255.255
[r2-acl-basic-2000]q
[r2]route-policy o2r pe    
[r2]route-policy o2r permit node 10
Info: New Sequence of this List.
[r2-route-policy]if    
[r2-route-policy]if-match acl 2000
[r2-route-policy]q
[r2]rip 1
[r2-rip-1]im    
[r2-rip-1]import-route ospf 1 rou    
[r2-rip-1]import-route ospf 1 route-policy o2r
[r2-rip-1]q

[r2]rip 1
[r2-rip-1]si    
[r2-rip-1]silent-interface g0/0/1
[r2-rip-1]q
 

r3:

[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 100.2.2.3 24
[r3-GigabitEthernet0/0/0]
Apr 23 2024 19:50:47-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]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 100.3.3.3 24
Apr 23 2024 19:51:10-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r3-GigabitEthernet0/0/1]int l0
[r3-LoopBack0]ip add 192.168.2.1 32
[r3-LoopBack0]int l1
[r3-LoopBack1]ip add 192.168.3.1 32
[r3-LoopBack1]q
[r3]ospf 1 rou    
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a 0
[r3-ospf-1-area-0.0.0.0]ne 100.2.2.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]ne 192.
Apr 23 2024 19:59:22-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.2.100, Neighbor
Event=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-ospf-1-area-0.0.0.0]ne 192.
Apr 23 2024 19:59:22-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.2.100, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r3-ospf-1-area-0.0.0.0]ne 192.
Apr 23 2024 19:59:22-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.2.100, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r3-ospf-1-area-0.0.0.0]ne 192.
Apr 23 2024 19:59:22-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.2.100, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r3-ospf-1-area-0.0.0.0]ne 192.1
Apr 23 2024 19:59:22-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.2.100, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading

[r3-ospf-1-area-0.0.0.0]ne 192.1
Apr 23 2024 19:59:22-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.2.100, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r3-ospf-1-area-0.0.0.0]ne 192.168.2.1 0.0.0.0
[r3-ospf-1-area-0.0.0.0]ne 192.168.3.1 0.0.0.0
[r3-ospf-1-area-0.0.0.0]q
 

r4:

[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 100.3.3.4 24
Apr 23 2024 19:53:16-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]int l0
[r4-LoopBack0]ip add 192.168.4.1 32
[r4-LoopBack0]int l1
[r4-LoopBack1]ip add 192.168.5.1 32
[r4-LoopBack1]q
[r4]ospf 1 rou    
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]a 1
[r4-ospf-1-area-0.0.0.1]ne 0.0.0.0 255.255.255.255
[r4-ospf-1-area-0.0.0.1]
Apr 23 2024 20:01:21-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.3.3.100, Neighbor
Event=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r4-ospf-1-area-0.0.0.1]
Apr 23 2024 20:01:21-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.3.3.100, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r4-ospf-1-area-0.0.0.1]
Apr 23 2024 20:01:21-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.3.3.100, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r4-ospf-1-area-0.0.0.1]
Apr 23 2024 20:01:21-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.3.3.100, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r4-ospf-1-area-0.0.0.1]
Apr 23 2024 20:01:21-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.3.3.100, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading

[r4-ospf-1-area-0.0.0.1]
Apr 23 2024 20:01:21-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.3.3.100, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r4-ospf-1-area-0.0.0.1]q

[r4]dis ospf peer b

     OSPF Process 1 with Router ID 4.4.4.4
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.1          GigabitEthernet0/0/0             3.3.3.3          Full        
 ----------------------------------------------------------------------------
[r4]ip ip    
[r4]ip ip-prefix aa index 10 deny 192.168.0.0 23 le    
[r4]ip ip-prefix aa index 10 deny 192.168.0.0 23 less-equal 32
[r4]ip ip    
[r4]ip ip-prefix aa index 20 permit 0.0.0.0 0 le    
[r4]ip ip-prefix aa index 20 permit 0.0.0.0 0 less-equal 32
[r4]ospf 1
[r4-ospf-1]fi    
[r4-ospf-1]filter-lsa-out
[r4-ospf-1]filter-policy ip    
[r4-ospf-1]filter-policy ip-prefix  aaim    
[r4-ospf-1]filter-policy ip-prefix  aa im    
[r4-ospf-1]filter-policy ip-prefix  aa import 
[r4-ospf-1]q
 


实验现象:

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.1.1.0/24  Direct  0    0           D   100.1.1.1       GigabitEthernet
0/0/0
      100.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    100.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
      100.2.2.0/24  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/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
    192.168.0.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
    192.168.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[r1]dis ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 6        Routes : 6        

RIP routing table status : <Active>
         Destinations : 6        Routes : 6

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.2.2.0/24  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
      100.3.3.0/24  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
    192.168.2.1/32  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
    192.168.3.1/32  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
    192.168.4.1/32  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
    192.168.5.1/32  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0

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

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

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.1.1.0/24  O_ASE   150  1           D   100.3.3.3       GigabitEthernet
0/0/0
      100.2.2.0/24  OSPF    10   2           D   100.3.3.3       GigabitEthernet
0/0/0
    192.168.0.1/32  O_ASE   150  1           D   100.3.3.3       GigabitEthernet
0/0/0
    192.168.1.1/32  O_ASE   150  1           D   100.3.3.3       GigabitEthernet
0/0/0
    192.168.2.1/32  OSPF    10   1           D   100.3.3.3       GigabitEthernet
0/0/0
    192.168.3.1/32  OSPF    10   1           D   100.3.3.3       GigabitEthernet
0/0/0

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

[r1]dis ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 4        Routes : 4        

RIP routing table status : <Active>
         Destinations : 4        Routes : 4

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.2.2.0/24  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
      100.3.3.0/24  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
    192.168.2.1/32  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0
    192.168.3.1/32  RIP     100  1           D   100.1.1.2       GigabitEthernet
0/0/0

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

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

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.1.1.0/24  O_ASE   150  1           D   100.3.3.3       GigabitEthernet
0/0/0
      100.2.2.0/24  OSPF    10   2           D   100.3.3.3       GigabitEthernet
0/0/0
    192.168.2.1/32  OSPF    10   1           D   100.3.3.3       GigabitEthernet
0/0/0
    192.168.3.1/32  OSPF    10   1           D   100.3.3.3       GigabitEthernet
0/0/0

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

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

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.1.1.0/24  O_ASE   150  1           D   100.2.2.2       GigabitEthernet
0/0/0
    192.168.0.1/32  O_ASE   150  1           D   100.2.2.2       GigabitEthernet
0/0/0
    192.168.1.1/32  O_ASE   150  1           D   100.2.2.2       GigabitEthernet
0/0/0
    192.168.4.1/32  OSPF    10   1           D   100.3.3.4       GigabitEthernet
0/0/1
    192.168.5.1/32  OSPF    10   1           D   100.3.3.4       GigabitEthernet
0/0/1

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

思维导图:

  • 17
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值