OSPFルーティングプロトコル - 仮想リンクの設定

仮想リンクトポロジ

OSPFルーティングプロトコル - 仮想リンクの設定

まず、展開サーバー環境

1、R1ルータ:

各インターフェースのIPアドレス情報を設定し、ループバック・アダプタは、固定IPアドレス、OSPFプロトコル設定情報を配置しました。
OSPFルーティングプロトコル - 仮想リンクの設定


conf t
int f0/0
ip add 192.168.10.1 255.255.255.0
no shut
int f0/1
ip add 192.168.20.1 255.255.255.0
no shut
ex
int lo 0                                
ip add 1.1.1.1 255.255.255.255        
no shut
ex
router ospf 1                                             
router-id 1.1.1.1                   
network 192.168.10.0 0.0.0.255 area 2  
network 192.168.20.0 0.0.0.255 area 2  

2、R2ルータ

各インターフェイスのIPアドレス情報を設定し、ループバック・アダプタ配置された固定IPアドレスは、OSPFプロトコルの構成情報は、仮想リンクを作成します。
OSPFルーティングプロトコル - 仮想リンクの設定


conf t
int f0/0
ip add 192.168.20.2 255.255.255.0
no shut
int f0/1
ip add 192.168.30.1 255.255.255.0
no shut
ex
int lo 0                                
ip add 2.2.2.2 255.255.255.255          
no shut
ex
router ospf 1                                
router-id 2.2.2.2                       
network 192.168.20.0 0.0.0.255 area 2   
network 192.168.30.0 0.0.0.255 area 1   
ex
router ospf 1                           
area 1 virtual-link 3.3.3.3           

3、R3ルータ:

各インターフェイスのIPアドレス情報を設定し、ループバック・アダプタ配置された固定IPアドレスは、OSPFプロトコルの構成情報は、仮想リンクを作成します。
OSPFルーティングプロトコル - 仮想リンクの設定


conf t
int f0/0
ip add 192.168.30.2 255.255.255.0
no shut
ex
int f0/1
ip add 192.168.40.1 255.255.255.0
no shut
int lo 0
ip add 3.3.3.3 255.255.255.255
no shut
ex
router ospf 1                        
router-id 3.3.3.3                     
network 192.168.30.0 0.0.0.255 area 1 
network 192.168.40.0 0.0.0.255 area 0 
ex
router ospf 1                       
area 1 virtual-link 2.2.2.2  

4、R4ルータ:

各インターフェースのIPアドレス情報を設定し、ループバック・アダプタは、固定IPアドレス、OSPFプロトコル設定情報を配置しました。
OSPFルーティングプロトコル - 仮想リンクの設定


conf t
int f0/0
ip add 192.168.40.2 255.255.255.0
no shut
int f0/1
ip add 192.168.50.1 255.255.255.0
no shut
ex
int lo 0
ip add 4.4.4.4 255.255.255.255
no shut
ex
router ospf 1                         
router-id 4.4.4.4                
network 192.168.40.0 0.0.0.255 area 0  
network 192.168.50.0 0.0.0.255 area 0 

クライアント環境の第二に、展開

図1に示すように、PC1のIPアドレスとゲートウェイ情報を設定

OSPFルーティングプロトコル - 仮想リンクの設定

図2に示すように、PC2のIPアドレスとゲートウェイ情報を設定

OSPFルーティングプロトコル - 仮想リンクの設定

第三に、ネットワーク全体の相互運用性の検証

OSPFルーティングプロトコル - 仮想リンクの設定

PC1とPC2は、仮想リンク、実験の成功を介して通信することができます!

おすすめ

転載: blog.51cto.com/14449521/2437945