第三天OSPF实验

一、实验要求

在这里插入图片描述

二、OSPF区域划分
[R1]ospf 1 router-id 1.1.1.1
[R2]ospf 1 router-id 2.2.2.2
[R3]ospf 1 router-id 3.3.3.3
[R4]ospf 1 router-id 4.4.4.4
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.0.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.0.2.1 0.0.0.0
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]display this
#
 area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 10.0.1.2 0.0.0.0
#
return
[R3-ospf-1-area-0.0.0.0]network 10.0.2.2 0.0.0.0
[R3-ospf-1]area 1
[R3-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.1]network 10.0.3.1 0.0.0.0
[R4-ospf-1]area 1
[R4-ospf-1-area-0.0.0.1]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.1]network 10.0.3.2 0.0.0.0
R1:
[R1-ospf-1-area-0.0.0.0]display this
#
 area 0.0.0.0
  network 1.1.1.1 0.0.0.0
  network 10.0.1.1 0.0.0.0
  network 10.0.2.1 0.0.0.0
#
return

R2:
[R2-ospf-1-area-0.0.0.0]display this
#
 area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 10.0.1.2 0.0.0.0
#

R3:(注意,R3有两个不同的网段,宣告时有两个区域)
[R3-ospf-1-area-0.0.0.0]display this 
#
 area 0.0.0.0
  network 10.0.2.2 0.0.0.0
#

[R3-ospf-1-area-0.0.0.1]display this
#
 area 0.0.0.1
  network 3.3.3.3 0.0.0.0
  network 10.0.3.1 0.0.0.0
#
return

R4[R4-ospf-1-area-0.0.0.1]display this
#
 area 0.0.0.1
  network 4.4.4.4 0.0.0.0
  network 10.0.3.2 0.0.0.0
#
return
[R3]interface e0/0/0
[R3-Ethernet0/0/1]ospf dr-priority 3
[R3-Ethernet0/0/1]q
[R3]q	
<R3>reset ospf process 
Warning: The OSPF process will be reset. Continue? [Y/N]:y
[R2]interface e0/0/0
[R2-Ethernet0/0/0]ospf dr-priority 3
[R2-Ethernet0/0/0]q
[R2]q	
<R2>reset ospf process 
Warning: The OSPF process will be reset. Continue? [Y/N]:y
[R3-Ethernet0/0/0]ospf dr-priority 4
[R3-Ethernet0/0/0]q
[R3]q
<R3>reset ospf process 
Warning: The OSPF process will be reset. Continue? [Y/N]:y
[R4-ospf-1-area-0.0.0.1]dis ospf peer 

	 OSPF Process 1 with Router ID 4.4.4.4
		 Neighbors 

 Area 0.0.0.1 interface 10.0.3.2(Ethernet0/0/0)'s neighbors
 Router ID: 3.3.3.3          Address: 10.0.3.1        
   State: Full  Mode:Nbr is  Slave  Priority: 3
   DR: 10.0.3.2  BDR: 10.0.3.1  MTU: 0    
   Dead timer due in 35  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:08:29     
   Authentication Sequence: [ 0 ] 
R3-ospf-1-area-0.0.0.0]dis ospf peer 

	 OSPF Process 1 with Router ID 3.3.3.3
		 Neighbors 

 Area 0.0.0.0 interface 10.0.2.2(Ethernet0/0/0)'s neighbors
 Router ID: 1.1.1.1          Address: 10.0.2.1        
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 10.0.2.1  BDR: 10.0.2.2  MTU: 0    
   Dead timer due in 31  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:10:15     
   Authentication Sequence: [ 0 ] 

		 Neighbors 

 Area 0.0.0.1 interface 10.0.3.1(Ethernet0/0/1)'s neighbors
 Router ID: 4.4.4.4          Address: 10.0.3.2        
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: 10.0.3.2  BDR: 10.0.3.1  MTU: 0    
   Dead timer due in 38  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:10:18     
   Authentication Sequence: [ 0 ] 

[R2-ospf-1-area-0.0.0.0]dis ospf peer

	 OSPF Process 1 with Router ID 2.2.2.2
		 Neighbors 

 Area 0.0.0.0 interface 10.0.1.2(Ethernet0/0/0)'s neighbors
 Router ID: 1.1.1.1          Address: 10.0.1.1        
   State: Full  Mode:Nbr is  Slave  Priority: 1
   DR: 10.0.1.1  BDR: 10.0.1.2  MTU: 0    
   Dead timer due in 32  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:09:01     
   Authentication Sequence: [ 0 ] 
[R4]ping 1.1.1.1
  PING 1.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=254 time=50 ms
    Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=254 time=60 ms
    Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=254 time=50 ms
    Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=254 time=80 ms
    Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=254 time=50 ms



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值