1. 程式人生 > >OSPF多區域與擴展應用

OSPF多區域與擴展應用

net summary .com version 路由匯總 src network 1.2 work

技術分享圖片

AR1:

Int lo 0

Ip add 1.1.1.1 24

Int g0/0/0

Ip add 12.1.1.1 24

Ospf 1 router-id 1.1.1.1

Area 0

Network 1.1.1.0 0.0.0.255

Network 12.1.1.0 0.0.0.255

AR2:

Int lo 0

Ip add 2.2.2.2 24

Int g0/0/1

Ip add 12.1.1.2 24

Int g0/0/0

Ip add 23.1.1.2 24

Ospf 1 router-id 2.2.2.2

Area 0

Network 2.2.2.0 0.0.0.255

Network 12.1.1.0 0.0.0.255

Area 1

Network 23.1.1.0 0.0.0.255

AR3:

Int lo 0

Ip add 3.3.3.3 24

Int g0/0/1

Ip add 23.1.1.3 24

Ospf 1 router-id 3.3.3.3

Area 1

Network 3.3.3.0 0.0.0.255

Network 23.1.1.0 0.0.0.255

技術分享圖片

路由匯總

AR3:

Int lo 1

Ip add 172.16.16.1 24

Int lo 2

Ip add 172.16.17.1 24

Int lo 3

Ip add 172.16.18.1 24

Int lo 4

Ip add 172.16.19.1 24

Ospf 1

Area 1

Network 172.16.16.0 0.0.0.255

Network 172.16.17.1 0.0.0.255

Network 172.16.18.0 0.0.0.255

Network 172.16.19.0 0.0.0.255

在AR2上做匯總

Ospf 1

Area 1

Abr-summary 172.16.16.0 255.255.252.0

技術分享圖片

外部路由引入與匯總

AR3:

Int lo 5

Ip add 192.168.0.1 24

Int lo 6

Ip add 192.168.1.1 24

Int lo 7

Ip add 192.168.2.1 24

Int lo 8

Ip add 192.168.3.1 24

Rip 1

Version 2

Undo sum

Network 192.168.0.0

Network 192.168.1.0

Network 192.168.2.0

Network 192.168.3.0

Ospf 1

Import-route rip 1

Asbr-summary 192.168.0.0 255.255.252.0

引入默認路由

default-route-advertise always

?

?

?

OSPF多區域與擴展應用