實驗九OSPF虛鏈路

在這裏插入圖片描述
1、 在全區域0,1,2啓動OSPF協議
2、 查看R3的鄰居表

[r3]dis ospf peer brief 
	 OSPF Process 1 with Router ID 3.3.3.3
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.1          GigabitEthernet0/0/2               2.2.2.2          Full        
 0.0.0.1          GigabitEthernet0/0/0               1.1.1.1          Full        
 0.0.0.2          GigabitEthernet0/0/1               4.4.4.4          Full        
 ----------------------------------------------------------------------------

3、 查看R4的數據庫表

[r4]dis ospf lsdb 

	 OSPF Process 1 with Router ID 4.4.4.4
		 Link State Database 
		         Area: 0.0.0.2
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
 Router    4.4.4.4         4.4.4.4             74  48    80000003       1
 Router    3.3.3.3         3.3.3.3             72  36    80000005       1
 Network  10.0.34.3       3.3.3.3             72  32    80000002       0
沒有區域0的LSA

4、 使用虛鏈路

[r1]dis ospf vlink 
	 OSPF Process 1 with Router ID 1.1.1.1
		 Virtual Links 
 Virtual-link Neighbor-id  -> 3.3.3.3, Neighbor-State: Full
 Interface: 10.0.13.1 (GigabitEthernet0/0/0)
 Cost: 1  State: P-2-P  Type: Virtual 
 Transit Area: 0.0.0.1 
 Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1 
 GR State: Normal

5、 再次查看R4的OSPF的數據庫

<r4>dis ospf lsdb 

	 OSPF Process 1 with Router ID 4.4.4.4
		 Link State Database 
		         Area: 0.0.0.2
 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
 Router    4.4.4.4         4.4.4.4            405  48    80000003       1
 Router    3.3.3.3         3.3.3.3             68  36    80000006       1
 Network   10.0.34.3       3.3.3.3            403  32    80000002       0
 Sum-Net   10.0.13.0       3.3.3.3             68  28    80000001       1
 Sum-Net   10.0.12.0       3.3.3.3             68  28    80000001       2
 Sum-Net   10.0.3.3        3.3.3.3             68  28    80000001       0
 Sum-Net   10.0.2.2        3.3.3.3             68  28    80000001       1
 Sum-Net   10.0.1.1        3.3.3.3             68  28    80000001       1
     Sum-Net   10.0.23.0       3.3.3.3             68  28    80000001       1
實現備份,R431爲主
[r2]dis ospf vlink 
	 OSPF Process 1 with Router ID 2.2.2.2
		 Virtual Links 
 Virtual-link Neighbor-id  -> 3.3.3.3, Neighbor-State: Full
 Interface: 10.0.23.2 (GigabitEthernet0/0/1)
 Cost: 10  State: P-2-P  Type: Virtual 
 Transit Area: 0.0.0.1 
 Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1 
 GR State: Normal
R12在區域1實現備份
[r1]dis ospf vlink 
	 OSPF Process 1 with Router ID 1.1.1.1
		 Virtual Links 
 Virtual-link Neighbor-id  -> 2.2.2.2, Neighbor-State: Full
 Interface: 10.0.13.1 (GigabitEthernet0/0/0)
 Cost: 11  State: P-2-P  Type: Virtual 
 Transit Area: 0.0.0.1 
 Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1 
 GR State: Normal
關閉G0/0/1接口tracert 10.0.2.2
[r1]tracert 10.0.2.2
 traceroute to  10.0.2.2(10.0.2.2), max hops: 30 ,packet length: 40,press CTRL_C
 to break 
     1 10.0.13.3 20 ms  20 ms  20 ms 
     2 10.0.23.2 20 ms  20 ms  20 ms
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章