OSPF Single Area

gascitytankΔίκτυα και Επικοινωνίες

28 Οκτ 2013 (πριν από 3 χρόνια και 9 μήνες)

83 εμφανίσεις

OSPF (Open Shortest Path First)

Single Area Configuration and Testing








By

Nur Wajianto


Collinsvile, Brisbane QD May 15 2007

Link State Routing Protocols

2

Link
-
state

routing

protocols

are

also

known

as

shortest

path

first

protocols

and

are

built

around

Edsger

Dijkstra's

shortest

path

first

(SPF)

algorithm
.

There

are

two

link
-
state

routing

protocols

for

IP

:



OSPF(Open

Shortest

Path

First)


IS
-
IS(Intermediate
-
System
-
to
-
Intermediate
-
System)

Advantages of a Link State Routing
Protocol

3


Each

router

builds

its

own

topological

map

of

the

network

to

determine

the

shortest

path


Immediate

flooding

of

LSPs

achieves

faster

convergence


LSPs

are

sent

only

when

there

is

a

change

in

the

topology

and

contain

only

the

information

regarding

that

change


Hierarchical

design

used

when

implementing

multiple

areas

Basic Configuration and Goals

4


Set the host name, and bring up the interfaces


Configure

the

OSPF

routing

protocol


Select

the

directly

connected

networks


Display

the

routing

table


Display

the

OSPF

protocol

information


Configure Routers as the figure below

5

Verify that each router can ping its
directly connected neighbors


6

Queensland#ping

10
.
1
.
1
.
2

Queensland#ping

192
.
168
.
100
.
6

Darwin#ping

10
.
1
.
1
.
1

Adelaide#ping

192
.
168
.
100
.
5


Add OSPF to Queensland use the
Process ID number 100



7

Queensland#config

terminal

Queensland(config)#router

ospf

100

Queensland(config
-
router)#network

10
.
1
.
1
.
0

0
.
0
.
0
.
255

area

0

Queensland(config
-
router)#network

192
.
168
.
100
.
4

0
.
0
.
0
.
3

area

0


Add OSPF to Darwin use the
Process ID number 100



8

Darwin#config

terminal

Darwin(config)#router

ospf

100

Darwin(config
-
router)#network

10
.
1
.
1
.
0

0
.
0
.
0
.
255

area

0



Add OSPF to Adelaide use the Process
ID number 100



9

Adelaide#config

terminal

Adelaide(config)#router

ospf

100

Adelaide(config
-
router)#network

192
.
168
.
100
.
4

0
.
0
.
0
.
3

area

0



Test OSPF Routing



10

OSPF

should

now

be

running

on

all

three

routers
.

Press

CTRL+Z

to

exit

to

privileged

mode,

and

can

ping

non
-
directly

connected

routers
.

From

Darwin,

and

now

be

able

to

ping

Adelaide’s

serial

0

interface
.


Darwin#ping

192
.
168
.
100
.
6


Type

escape

sequence

to

abort
.

Sending

5
,

100
-
byte

ICMP

Echos

to

192
.
168
.
100
.
6
,

timeout

is

2

seconds
:

!!!!!

Success

rate

is

100

percent

(
5
/
5
),

round
-
trip

min/avg/max

=

62
/
62
/
63

ms




Test OSPF Routing



11

Connect

to

Adelaide

and

ping

Darwin’s

serial

1

interface
.

If

can

ping

on

both

devices,

mean

its

correctly

configured

routing

and

otherwise


Adelaide#ping

10
.
1
.
1
.
2


Type

escape

sequence

to

abort
.

Sending

5
,

100
-
byte

ICMP

Echos

to

10
.
1
.
1
.
2
,

timeout

is

2

seconds
:

!!!!!

Success

rate

is

100

percent

(
5
/
5
),

round
-
trip

min/avg/max

=

62
/
62
/
63

ms


Display the routing table on
Darwin’s Router




12

Darwin#sh

ip

route

Codes
:

C

-

connected,

S

-

static,

I

-

IGRP,

R

-

RIP,

M

-

mobile,

B

-

BGP


D

-

EIGRP,

EX

-

EIGRP

external,

O

-

OSPF,

IA

-

OSPF

inter

area


N
1

-

OSPF

NSSA

external

type

1
,

N
2

-

OSPF

NSSA

external

type

2


E
1

-

OSPF

external

type

1
,

E
2

-

OSPF

external

type

2
,

E

-

EGP


i

-

IS
-
IS,

L
1

-

IS
-
IS

level
-
1
,

L
2

-

IS
-
IS

level
-
2
,

ia

-

IS
-
IS

inter

area


*

-

candidate

default,

U

-

per
-
user

static

route,

o

-

ODR


P

-

periodic

downloaded

static

route


Gateway

of

last

resort

is

not

set



10
.
0
.
0
.
0
/
24

is

subnetted,

1

subnets

C

10
.
1
.
1
.
0

is

directly

connected,

Serial
1
/
1


192
.
168
.
100
.
0
/
30

is

subnetted,

1

subnets

O

192
.
168
.
100
.
4

[
110
/
1562
]

via

10
.
1
.
1
.
1
,

00
:
16
:
14
,

Serial
1
/
1

Display the Specific IP Routing Protocol
Information on Darwin’s Router





13

Darwin#show

ip

protocols


Routing

Protocol

is

"ospf

100
"


Outgoing

update

filter

list

for

all

interfaces

is

not

set



Incoming

update

filter

list

for

all

interfaces

is

not

set



Router

ID

10
.
1
.
1
.
2


Number

of

areas

in

this

router

is

1
.

1

normal

0

stub

0

nssa


Maximum

path
:

4


Routing

for

Networks
:


10
.
1
.
1
.
0

0
.
0
.
0
.
255

area

0


Routing

Information

Sources
:



Gateway

Distance

Last

Update



10
.
1
.
1
.
1

110

00
:
17
:
05


Distance
:

(default

is

110
)

Display the OSPF Database on
Darwin’s Router





14

Darwin#show

ip

ospf

database


OSPF

Router

with

ID

(
10
.
1
.
1
.
2
)

(Process

ID

100
)



Router

Link

States

(Area

0
)


Link

ID

ADV

Router

Age

Seq#

Checksum

Link

count

10
.
1
.
1
.
2

10
.
1
.
1
.
2

1228

0
x
80000002

0
x
00
e
13
b

2

192
.
168
.
100
.
5

192
.
168
.
100
.
5

1072

0
x
80000008

0
x
00940
b

4

192
.
168
.
100
.
6

192
.
168
.
100
.
6

1072

0
x
80000002

0
x
00
ab
5
d

2

Display the all of IP OSPF Neighbors





15

Darwin#show

ip

ospf

neighbor

Neighbor

ID

Pri

State

Dead

Time

Address

Interface

192
.
168
.
100
.
5

0

FULL/

-

00
:
00
:
33

10
.
1
.
1
.
1

Serial
1
/
1

Darwin#show

ip

ospf

interface

Serial
1
/
1

is

up,

line

protocol

is

up


Internet

address

is

10
.
1
.
1
.
2
/
24
,

Area

0


Process

ID

100
,

Router

ID

10
.
1
.
1
.
2
,

Network

Type

POINT
-
TO
-
POINT,

Cost
:

781


Transmit

Delay

is

1

sec,

State

POINT
-
TO
-
POINT,

Priority

0


No

designated

router

on

this

network


No

backup

designated

router

on

this

network


Timer

intervals

configured,

Hello

10
,

Dead

40
,

Wait

40
,

Retransmit

5


Hello

due

in

00
:
00
:
09


Index

1
/
1
,

flood

queue

length

0


Next

0
x
0
(
0
)/
0
x
0
(
0
)


Last

flood

scan

length

is

1
,

maximum

is

1


Last

flood

scan

time

is

0

msec,

maximum

is

0

msec


Neighbor

Count

is

1

,

Adjacent

neighbor

count

is

1


Adjacent

with

neighbor

192
.
168
.
100
.
5


Suppress

hello

for

0

neighbor(s)






16

Thank You For Your Attention

Ask and Question