close

1.png

說明:主要練習OSPF,Area X沒有與Area 0連在一起時該如何處理,

   可用兩種方式:一、Vitrual Link,二、Tunnel

   此Lab是用實機完成,PacketTracer可設定但當掉的機會還滿高的。

   為了減少行數,刪掉不必要之設定。


Vitrual Link作法:

一、在Core_Ro與wg_ro_1中建立一條依附在Area1上的Vitrual Link,讓Area2能與Area0相連。

二、在wg_ro_1與wg_ro_2中建立一條依附在Area2上的Vitrual Link,讓Area12能與Area0相連。

2.png

Tunnel作法:

可分為兩種作法

一、和Virtual Link一樣,在各Router相連都建一條Tunnel。Tunnel10+Tunnel100(範例是用這個方法)

二、Core_Ro對每台Rotuer都建立一條Tunnel。Tunnel10+Tunnelxx

三、這兩種都需將Tunnel網段丟進OSPF Area 0

3.png 


實作條件:

一、Core_Ro左邊為Area0,右邊(10.140.1.0)與wg_ro_1相連為Area1

二、wg_ro_1右邊(10.12.12.0)和wg_ro_2左邊(10.12.12.0)相連為Area2

三、wg_ro_2右邊(192.168.102.0)為Area12

四、利用Vitrual Link或Tunnel讓整個每台Router皆有完整OPSF


wg_ro_1設定如下:

Wg_RO_1#sh run

Building configuration...

Current configuration : 1289 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Wg_RO_1

!

no aaa new-model

no network-clock-participate slot 1

no network-clock-participate wic 0

ip cef

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

interface Tunnel10 建立Core_Ro到wg_ro_1的Tunnel

ip address 100.10.10.2 255.255.255.0

tunnel source 10.140.1.2 wg_ro_1 ip

tunnel destination 10.140.1.1 Core_Ro ip

!

interface Tunnel100 建立wg_ro_1到wg_ro_2的Tunnel

ip address 10.21.21.1 255.255.255.0

tunnel source 10.12.12.1 wg_ro_1 ip

tunnel destination 10.12.12.2 wg_ro_2 ip

!

interface Serial0/0

ip address 10.140.1.2 255.255.255.0

!

interface Serial0/1

ip address 10.12.12.1 255.255.255.0

clock rate 128000

!

router ospf 123

router-id 1.1.1.1

log-adjacency-changes

network 10.12.12.1 0.0.0.0 area 2

network 10.21.21.1 0.0.0.0 area 0 Tunnel網段丟進Area0

network 10.140.1.2 0.0.0.0 area 1

network 100.10.10.2 0.0.0.0 area 0 Tunnel網段丟進Area0

area 1 virtual-link 100.100.100.100 依附在Area1的VL,對方的Router-ID

area 2 virtual-link 2.2.2.2 依附在Area2的VL,對方的Router-ID

!

end


wg_ro_2設定如下:

Wg_RO_2#sh run

Building configuration...

Current configuration : 1129 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname Wg_Ro_2

!

no aaa new-model

no network-clock-participate slot 1

no network-clock-participate wic 0

ip cef

!

ip auth-proxy max-nodata-conns 3

ip admission max-nodata-conns 3

!

interface Tunnel100 建立wg_ro_1到wg_ro_2的Tunnel

ip address 10.21.21.2 255.255.255.0

tunnel source 10.12.12.2 wg_ro_2 ip

tunnel destination 10.12.12.1 wg_ro_1 ip

!

interface FastEthernet0/1

ip address 192.168.102.254 255.255.255.0

duplex auto

speed auto

!

interface Serial0/1

ip address 10.12.12.2 255.255.255.0

!

router ospf 123

router-id 2.2.2.2

log-adjacency-changes

network 10.12.12.2 0.0.0.0 area 2

network 10.21.21.2 0.0.0.0 area 0 Tunnel網段丟進Area0

network 192.168.102.254 0.0.0.0 area 12

area 2 virtual-link 1.1.1.1 依附在Area2的VL,對方的Router-ID

!

end

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 EdisonChang 的頭像
    EdisonChang

    Coolking's CCNP 筆記

    EdisonChang 發表在 痞客邦 留言(0) 人氣()