1.png 


說明:主要為OSPF有一點進階的LAB,整個都可以用PT完成。

   練習兩個不同的Area與Redistribute,並看OSPF的Database詳細資訊

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


實作條件:

一、左邊跑OSPF 168 Area 1,右上跑OSPF 168 Area 0,右下跑RIP Ver2

二、左邊21.21.21.0/24,三台Router需調整成讓wg_ro_c成DR

三、右邊30.300.30.16/30,兩台Router需調整成讓wg_ro_e成DR

四、wg_ro_f將OSPF和RIP互相Redistribute

五、wg_ro_c的ip route裡要看到O E2 172.16.10.0 [110/30]

六、各Router設定Router-ID,wg_ro_a:1.1.1.1、wg_ro_b:2.2.2.2…以此類推

  但我發現我把a設定2.2.2.2,b設成1.1.1.1了,請見諒 Orz


備註:

一、剛做完Lab時,在wg_ro_a show ip ospf da時,最後的Type 5有時候會只有一條192.168.65.0/24

  可是有時候會有兩條 172.16.10.0/24,不知是設定有誤還是PT的BUG,詳情再問老師。

二、可以在wg_ro_c上再加上summary address,這點我沒有做,可自行練習。


Wg_ro_a設定如下:

wg_ro_a#sh run

Building configuration...

Current configuration : 1150 bytes

!

hostname wg_ro_a

!

interface FastEthernet0/0

ip address 192.168.32.254 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.33.254 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 192.168.34.254 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/1

ip address 21.21.21.202 255.255.255.0

ip ospf priority 0 設定ospf priority (0~255),0為不參與DR、BDR

duplex auto

speed auto

!

router ospf 168

router-id 2.2.2.2

log-adjacency-changes

network 192.168.32.0 0.0.0.255 area 1

network 192.168.33.0 0.0.0.255 area 1

network 192.168.34.0 0.0.0.255 area 1

network 21.21.21.0 0.0.0.255 area 1


Wg_ro_b設定如下:

wg_ro_b#sh run

Building configuration...

Current configuration : 1001 bytes

!

hostname wg_ro_b

!

interface FastEthernet0/0

ip address 192.168.17.254 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.16.254 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet1/0

ip address 21.21.21.201 255.255.255.0

ip ospf priority 0 設定ospf priority (0~255),0為不參與DR、BDR

duplex auto

speed auto

!

router ospf 168

router-id 1.1.1.1

log-adjacency-changes

network 192.168.16.0 0.0.0.255 area 1

network 192.168.17.0 0.0.0.255 area 1

network 21.21.21.0 0.0.0.255 area 1


wg_ro_c (ABR)設定如下:

wg_ro_c#sh run

Building configuration...

Current configuration : 1042 bytes

!

hostname wg_ro_c

!

interface FastEthernet0/0

ip address 21.21.21.203 255.255.255.0

ip ospf priority 255 設定ospf priority (0~255),255為參與DR、BDR且值最高

duplex auto

speed auto

!

interface Serial0/0/0

ip address 10.10.10.9 255.255.255.252

clock rate 128000

!

router ospf 168

router-id 3.3.3.3

log-adjacency-changes

network 10.10.10.0 0.0.0.255 area 0

network 21.21.21.0 0.0.0.255 area 1


wg_ro_d設定如下:

wg_ro_d#sh run

Building configuration...

Current configuration : 1036 bytes

!

hostname wg_ro_d

!

interface Serial0/0/0

ip address 10.10.10.10 255.255.255.252

!

interface Serial1/0/0

ip address 30.30.30.9 255.255.255.252

clock rate 128000

!

interface Serial1/1/0

ip address 30.30.30.13 255.255.255.252

clock rate 128000

!

router ospf 168

router-id 4.4.4.4

log-adjacency-changes

network 10.10.10.0 0.0.0.255 area 0

network 30.30.30.0 0.0.0.255 area 0


wg_ro_e設定如下:

wg_ro_e#sh run

Building configuration...

Current configuration : 1027 bytes

!

hostname wg_ro_e

!

interface FastEthernet0/0

ip address 192.168.96.254 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.97.254 255.255.255.0

duplex auto

speed auto

!

interface Serial1/0/0

ip address 30.30.30.10 255.255.255.252

!

interface Serial1/1/0

ip address 30.30.30.17 255.255.255.252

ip ospf network broadcast 把OSPF改成Broadcast模式

ip ospf priority 255

clock rate 128000

!

router ospf 168

router-id 5.5.5.5

log-adjacency-changes

network 192.168.96.0 0.0.0.255 area 0

network 192.168.97.0 0.0.0.255 area 0

network 30.30.30.0 0.0.0.255 area 0


wg_ro_f (ASBR)設定如下:

wg_ro_f#sh run

Building configuration...

Current configuration : 1080 bytes

!

hostname wg_ro_f

!

interface FastEthernet0/0

ip address 192.168.64.254 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 192.168.65.254 255.255.255.0

duplex auto

speed auto

!

interface Serial1/0/0

ip address 30.30.30.14 255.255.255.252

!

interface Serial1/1/0

ip address 30.30.30.18 255.255.255.252

ip ospf network broadcast 把OSPF改成Broadcast模式

!

router ospf 168

router-id 6.6.6.6

log-adjacency-changes

redistribute rip metric 30 subnets 將RIP Redistribute進OSPF並metric為30

network 192.168.64.0 0.0.0.255 area 0

network 30.30.30.0 0.0.0.255 area 0

!

router rip

version 2

redistribute ospf 168 metric 1 將OSPF Redistribute進RIP並metric為1

network 192.168.65.0

no auto-summary


wg_ro_g設定如下:

wg_ro_g#sh run

Building configuration...

Current configuration : 565 bytes

!

hostname wg_ro_g

!

interface FastEthernet0/0

ip address 192.168.65.253 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/1

ip address 172.16.10.254 255.255.255.0

duplex auto

speed auto

!

router rip

version 2

network 172.16.0.0

network 192.168.65.0

no auto-summary


設定後截圖:

2.png

3.png

4.png

4-1.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png 


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

    Coolking's CCNP 筆記

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