CCNP實戰教程之OSPF路由彙總研究

課題內容:redis

OSPF路由彙總研究網絡


在R5上配置4個末節網絡,通告進OSPF區域1,在R3上作彙總爲一條路由ide

觀察彙總後的狀況:產生指向的null 0的路由、彙總路由的度量值、LSAoop

在R2上配置四個末節網絡,重分佈進OSPF區域2,在R2上作彙總spa

觀察彙總後的狀況:產生指向的null 0的路由、彙總路由的度量值、LSApwa

拓撲圖router

clip_image001

步驟:blog

1、進行基本部署ip

一、 配置IP地址  配置省略  (含幀中繼配置)路由

R2:

default int s1/0

default int s1/1

default int s1/2

frame-relay switching

interface Serial1/0

no ip address

no shut

encapsulation frame-relay

frame-relay intf-type dce

frame-relay route 103 interface Serial1/2 301

frame-relay route 104 interface Serial1/1 401 //本實驗中,沒有這條配置 //

!

interface Serial1/1

no ip address

no shut

encapsulation frame-relay

frame-relay intf-type dce

frame-relay route 401 interface Serial1/0 104 //本實驗中,沒有這條配置 //

frame-relay route 403 interface Serial1/2 304

!

interface Serial1/2

no ip address

no shut

encapsulation frame-relay

frame-relay intf-type dce

frame-relay route 301 interface Serial1/0 103

frame-relay route 304 interface Serial1/1 403

R1:

interface Serial1/0

no shutdown

ip address 10.1.1.1 255.255.255.0

encapsulation frame-relay

R3:

interface Serial1/2

no shutdown

ip address 10.1.1.3 255.255.255.0

encapsulation frame-relay

R4:

interface Serial1/1

no shutdown

ip address 10.1.1.4 255.255.255.0

encapsulation frame-relay

每臺設備配置環回口,作爲router-id

規劃爲: 172.16.1.X/32中 X = 設備編號

例如: R1的環回口地址爲  172.16.1.1/32


二、 配置OSPF協議  (配置省略)

須要特殊注意,R一、R三、R4經過幀中繼網絡互聯,其中R1和R4之間沒有虛電路,沒法直接通訊,在這裏推薦採用OSPF的點到多點網絡工做模式;

檢查OSPF鄰居:

R3#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

172.16.1.1 0 FULL/ - 00:01:49 10.1.1.1 Serial1/2

172.16.1.4 0 FULL/ - 00:01:56 10.1.1.4 Serial1/2

172.16.1.5 0 FULL/ - 00:00:32 10.1.35.5 Ethernet0/3

R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

172.16.1.1 1 FULL/DROTHER 00:00:32 10.1.124.1 Ethernet0/2

172.16.1.4 1 FULL/DR 00:00:38 10.1.124.4 Ethernet0/2


三、 在R5上配置4個末節網絡,通告進OSPF區域1,在R3上作彙總爲一條路由

規劃四個末節網絡IP網絡號分別爲: 192.168.5.0/30 配置四個連續的子網;

R5

interface Loopback0

ip address 192.168.5.1 255.255.255.252 secondary

ip address 192.168.5.5 255.255.255.252 secondary

ip address 192.168.5.9 255.255.255.252 secondary

ip address 192.168.5.13 255.255.255.252 secondary

ip address 172.16.1.5 255.255.255.255

ip ospf 110 area 1


在R3上作彙總爲一條路由

R3(config)#router ospf 110

R3(config-router)#area 1 range 192.168.5.0 255.255.255.240


觀察彙總後的狀況:產生指向的null 0的路由、彙總路由的度量值、LSA

R3#show ip route ospf | in summary

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

O 192.168.5.0/28 is a summary, 00:01:30, Null0

//在R3本地造成了一條指向null 0 的彙總路由


R3#show ip ospf database summary 192.168.5.0 self-originate

OSPF Router with ID (172.16.1.3) (Process ID 110)

Summary Net Link States (Area 0)

LS age: 159

Options: (No TOS-capability, DC, Upward)

LS Type: Summary Links(Network)

Link State ID: 192.168.5.0 (summary Network Number)

Advertising Router: 172.16.1.3

LS Seq Number: 80000002

Checksum: 0x70A

Length: 28

Network Mask: /28

MTID: 0 Metric: 11


在R2上配置四個末節網絡

規劃爲:  10.2.X.0/24

ip address 10.2.1.1 255.255.255.0 secondary

ip address 10.2.2.1 255.255.255.0 secondary

ip address 10.2.3.1 255.255.255.0 secondary

ip address 10.2.0.1 255.255.255.0


重分佈進OSPF區域2

R2(config)#router ospf 110

R2(config-router)#redistribute connected subnets


驗證:

R2#show ip ospf database | begin Type-5

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag

10.2.0.0 172.16.1.2 49 0x80000001 0x00A72D 0

10.2.1.0 172.16.1.2 49 0x80000001 0x009C37 0

10.2.2.0 172.16.1.2 49 0x80000001 0x009141 0

10.2.3.0 172.16.1.2 49 0x80000001 0x00864B 0


R5#show ip route ospf | include O E

O E2 10.2.0.0/24 [110/20] via 10.1.35.3, 00:01:29, Ethernet0/3

O E2 10.2.1.0/24 [110/20] via 10.1.35.3, 00:01:29, Ethernet0/3

O E2 10.2.2.0/24 [110/20] via 10.1.35.3, 00:01:29, Ethernet0/3

O E2 10.2.3.0/24 [110/20] via 10.1.35.3, 00:01:29, Ethernet0/3


在R2上作彙總

R2(config-router)#summary-address 10.2.0.0 255.255.252.0

驗證:

R2#show ip ospf database | begin Type-5

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag

10.2.0.0 172.16.1.2 32 0x80000003 0x009441 0

R5#show ip route ospf | include O E

O E2 10.2.0.0/22 [110/20] via 10.1.35.3, 00:00:43, Ethernet0/3


觀察彙總後的狀況:產生指向的null 0的路由、彙總路由的度量值、LSA

R2#show ip route ospf | include summary

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

l 10.2.0.0/22 is a summary, 00:01:28, Null0

R2#show ip ospf database external self-originate

OSPF Router with ID (172.16.1.2) (Process ID 110)

Type-5 AS External Link States

LS age: 112

Options: (No TOS-capability, DC, Upward)

LS Type: AS External Link

Link State ID: 10.2.0.0 (External Network Number )

Advertising Router: 172.16.1.2

LS Seq Number: 80000003

Checksum: 0x9441

Length: 36

Network Mask: /22

Metric Type: 2 (Larger than any link state path)

MTID: 0

Metric: 20

Forward Address: 0.0.0.0

External Route Tag: 0


謝謝你們!我是達叔。

相關文章
相關標籤/搜索