Auteur : Pacôme MASSOL (pacome.massol@laposte.net)
Document mis en ligne le : 17/02/2003 - Retour à la page d'accueil.


Zebra et OSPF

La topologie est la suivante :

Cliquez sur les textes "Configuration", "État" et "Table de routage" pour voir les informations sur chaque routeur.


R1

Configuration

R1(OSPF)# show running-config

Current configuration:
!
hostname R1(OSPF)
password foo
!
!
!
interface lo
!
interface eth0
!
interface eth1
!
router ospf
network 11.0.0.0/8 area 1
network 30.0.0.0/8 area 0
!
line vty
!
end

État

R1 # telnet localhost 2604
Trying 127.0.0.1...
Connected to localhost. Escape character is '^]'.
 
Hello, this is zebra (version 0.91a).
Copyright 1996-2001 Kunihiro Ishiguro.
 
 
User Access Verification
 
Password:
R1(OSPF)> enable

R1(OSPF)# show ip ospf
 OSPF Routing Process, Router ID: 30.0.0.1
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Refresh timer 10 secs
 This router is an ABR, ABR type is: Standard (RFC2328)
 Number of external LSA 0
 Number of areas attached to this router: 2
 
 Area ID: 0.0.0.0 (Backbone)
   Number of interfaces in this area: Total: 1, Active: 1
   Number of fully adjacent neighbors in this area: 1
   Area has no authentication
   SPF algorithm executed 9 times
   Number of LSA 9
 
 Area ID: 0.0.0.1
   Shortcutting mode: Default, S-bit consensus: no
   Number of interfaces in this area: Total: 1, Active: 1
   Number of fully adjacent neighbors in this area: 1
   Area has no authentication
   Number of full virtual adjacencies going through this area: 0
   SPF algorithm executed 10 times
   Number of LSA 9

R1(OSPF)# show ip ospf interface
lo is up, line protocol is up
  OSPF not enabled on this interface
eth0 is up, line protocol is up
  Internet Address 30.0.0.1/8, Area 0.0.0.0
  Router ID 30.0.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 30.0.0.1, Interface Address 30.0.0.1
  Backup Designated Router (ID) 30.0.0.2, Interface Address 30.0.0.2
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:10
  Neighbor Count is 1, Adjacent neighbor count is 1
eth1 is up, line protocol is up
  Internet Address 11.0.0.1/8, Area 0.0.0.1
  Router ID 30.0.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Designated Router (ID) 12.0.0.1, Interface Address 11.0.0.2
  Backup Designated Router (ID) 30.0.0.1, Interface Address 11.0.0.1
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:01
  Neighbor Count is 1, Adjacent neighbor count is 1

R1(OSPF)# show ip ospf database

       OSPF Router with ID (30.0.0.1)
                Router Link States (Area 0.0.0.0)

Link ID

ADV Router

Age

Seq#

CkSum

Link count

30.0.0.1

30.0.0.1

1034

0x80000003

0xfecb

1

30.0.0.2

30.0.0.2

1005

0x80000004

0xfacb

1

                Net Link States (Area 0.0.0.0)

Link ID

ADV Router

Age

Seq#

CkSum

30.0.0.1

30.0.0.1

1034

0x80000001

0x1fbd

                 Summary Link States (Area 0.0.0.0) 

Link ID

ADV Router

Age

Seq#

CkSum

Route

11.0.0.0

30.0.0.1

1139

0x80000001

0x2bfd

11.0.0.0/8

12.0.0.0

30.0.0.1

164

0x80000002

0x809c

12.0.0.0/8

21.0.0.0

30.0.0.2

1021

0x80000001

0xa27b

21.0.0.0/8

22.0.0.0

30.0.0.2

870

0x80000001

0xf919

22.0.0.0/8

172.18.0.0

30.0.0.2

767

0x80000001

0xdf80

172.18.0.0/24

192.168.3.0

30.0.0.1

1109

0x80000001

0xb003

192.168.3.0/24

                 Router Link States (Area 0.0.0.1)

Link ID

ADV Router

Age

Seq#

CkSum

Link count

12.0.0.1

12.0.0.1

1144

0x80000006

0xf9e2

2

30.0.0.1

30.0.0.1

1114

0x80000003

0xb13e

1

192.168.3.254

192.168.3.254

1228

0x80000005

0x15b7

2

                 Net Link States (Area 0.0.0.1) 

Link ID

ADV Router

Age

Seq#

CkSum

11.0.0.2

12.0.0.1

1145

0x80000001

0xda39

12.0.0.2

192.168.3.254

1228

0x80000001

0x5d0b

                 Summary Link States (Area 0.0.0.1) 

Link ID

ADV Router

Age

Seq#

CkSum

Route

21.0.0.0

30.0.0.1

999

0x80000001

0x0d08

21.0.0.0/8

22.0.0.0

30.0.0.1

864

0x80000001

0x64a5

22.0.0.0/8

30.0.0.0

30.0.0.1

1139

0x80000001

0x33e2

30.0.0.0/8

172.18.0.0

30.0.0.1

761

0x80000001

0x4a0d

172.18.0.0/24

R1(OSPF)# show ip ospf route

============ OSPF network routing table ============

N

 

11.0.0.0/8

[10]

area:

0.0.0.1

 

 

 

 

directly

attached

to

eth1

N

 

12.0.0.0/8

[20]

area:

0.0.0.1

 

 

 

 

via

11.0.0.2,

eth1

 

N

IA

21.0.0.0/8

[20]

area:

0.0.0.0

 

 

 

 

via

30.0.0.2,

eth0

 

N

IA

22.0.0.0/8

[30]

area:

0.0.0.0

 

 

 

 

via

30.0.0.2,

eth0

 

N

 

30.0.0.0/8

[10]

area:

0.0.0.0

 

 

 

 

directly

attached

to

eth0

N

IA

172.18.0.0/24

[40]

area:

0.0.0.0

 

 

 

 

via

30.0.0.2,

eth0

 

N

 

192.168.3.0/24

[30]

area:

0.0.0.1

 

 

 

 

via

11.0.0.2,

eth1

 

============ OSPF router routing table =============

R

30.0.0.2

[10]

area:

0.0.0.0,

ABR

 

 

via

30.0.0.2,

eth0

 

============ OSPF external routing table ===========

R1(OSPF)# show ip ospf neighbor

Neighbor ID

Pri

State

Dead Time

Address

Interface

RXmtL

RqstL

DBsmL

30.0.0.2

1

Full/Backup

00:00:37

30.0.0.2

eth0

0

0

0

12.0.0.1

1

Full/DR

00:00:31

11.0.0.2

eth1

0

0

0

Table de routage

R1(OSPF)# R1(Zebra)> show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, > - selected route, * - FIB route

O   11.0.0.0/8 [110/10] is directly connected, eth1, 00:14:51
C>* 11.0.0.0/8 is directly connected, eth1
O>* 12.0.0.0/8 [110/20] via 11.0.0.2, eth1, 00:14:11
O>* 21.0.0.0/8 [110/20] via 30.0.0.2, eth0, 00:13:21
O>* 22.0.0.0/8 [110/30] via 30.0.0.2, eth0, 00:12:19
O   30.0.0.0/8 [110/10] is directly connected, eth0, 00:14:41
C>* 30.0.0.0/8 is directly connected, eth0
C>* 127.0.0.0/8 is directly connected, lo
O>* 172.18.0.0/24 [110/40] via 30.0.0.2, eth0, 00:10:51
O>* 192.168.3.0/24 [110/30] via 11.0.0.2, eth1, 00:14:11


R2

Configuration

R2(OSPF)# show running-config

Current configuration:
!
hostname R2(OSPF)
password foo
!
!
!
interface lo
!
interface eth0
!
interface eth1
!
router ospf
network 11.0.0.0/8 area 1
network 12.0.0.0/8 area 1
!
line vty
!
end

État

R2 # telnet localhost 2604
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is zebra (version 0.91a).
Copyright 1996-2001 Kunihiro Ishiguro.


User Access Verification

Password:
R2(OSPF)> enable

R2(OSPF)# show ip ospf
 OSPF Routing Process, Router ID: 12.0.0.1
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Refresh timer 10 secs
 Number of external LSA 0
 Number of areas attached to this router: 1

 Area ID: 0.0.0.1
   Shortcutting mode: Default, S-bit consensus: no
   Number of interfaces in this area: Total: 2, Active: 2
   Number of fully adjacent neighbors in this area: 2
   Area has no authentication
   Number of full virtual adjacencies going through this area: 0
   SPF algorithm executed 11 times
   Number of LSA 9

R2(OSPF)# show ip ospf interface
lo is up, line protocol is up
  OSPF not enabled on this interface
eth0 is up, line protocol is up
  Internet Address 11.0.0.2/8, Area 0.0.0.1
  Router ID 12.0.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 12.0.0.1, Interface Address 11.0.0.2
  Backup Designated Router (ID) 30.0.0.1, Interface Address 11.0.0.1
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:02
  Neighbor Count is 1, Adjacent neighbor count is 1
eth1 is up, line protocol is up
  Internet Address 12.0.0.1/8, Area 0.0.0.1
  Router ID 12.0.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Designated Router (ID) 192.168.3.254, Interface Address 12.0.0.2
  Backup Designated Router (ID) 12.0.0.1, Interface Address 12.0.0.1
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:05
  Neighbor Count is 1, Adjacent neighbor count is 1

R2(OSPF)# show ip ospf database

       OSPF Router with ID (12.0.0.1)
                Router Link States (Area 0.0.0.1)

Link ID

ADV Router

Age

Seq#

CkSum

Link count

12.0.0.1

12.0.0.1

1087

0x80000006

0xf9e2

2

30.0.0.1

30.0.0.1

1058

0x80000003

0xb13e

1

192.168.3.254

192.168.3.254

1171

0x80000005

0x15b7

2

                 Net Link States (Area 0.0.0.1) 

Link ID

ADV Router

Age

Seq#

CkSum

11.0.0.2

12.0.0.1

1087

0x80000001

0xda39

12.0.0.2

192.168.3.254

1171

0x80000001

0x5d0b

                 Summary Link States (Area 0.0.0.1) 

Link ID

ADV Router

Age

Seq#

CkSum

Route

21.0.0.0

30.0.0.1

943

0x80000001

0x0d08

21.0.0.0/8

22.0.0.0

30.0.0.1

808

0x80000001

0x64a5

22.0.0.0/8

30.0.0.0

30.0.0.1

1082

0x80000001

0x33e2

30.0.0.0/8

172.18.0.0

30.0.0.1

705

0x80000001

0x4a0d

172.18.0.0/24

 

R2(OSPF)# show ip ospf route

============ OSPF network routing table ============

N

 

11.0.0.0/8

[10]

area:

0.0.0.1

 

 

 

 

directly

attached

to

eth0

N

 

12.0.0.0/8

[10]

area:

0.0.0.1

 

 

 

 

directly

attached

to

eth1

N

IA

21.0.0.0/8

[30]

area:

0.0.0.1

 

 

 

 

via

11.0.0.1,

eth0

 

N

IA

22.0.0.0/8

[40]

area:

0.0.0.1

 

 

 

 

via

11.0.0.1,

eth0

 

N

IA

30.0.0.0/8

[20]

area:

0.0.0.1

 

 

 

 

via

11.0.0.1,

eth0

 

N

IA

172.18.0.0/24

[50]

area:

0.0.0.1

 

 

 

 

via

11.0.0.1,

eth0

 

N

 

192.168.3.0/24

[20]

area:

0.0.0.1

 

 

 

 

via

12.0.0.2,

eth1

 

============ OSPF router routing table =============

R

30.0.0.1

[10]

area:

0.0.0.1,

ABR

 

 

via

11.0.0.1,

eth0

 

============ OSPF external routing table ===========

 

R2(OSPF)# show ip ospf neighbor

Neighbor ID

Pri

State

Dead Time

Address

Interface

RXmtL

RqstL

DBsmL

30.0.0.1

1

Full/Backup

00:00:38

11.0.0.1

eth0

0

0

0

192.168.3.254

1

Full/DR

00:00:34

12.0.0.2

eth1

0

0

0

Table de routage

R2(OSPF)#

R2(Zebra)> show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
      B - BGP, > - selected route, * - FIB route

O   11.0.0.0/8 [110/10] is directly connected, eth0, 00:14:48
C>* 11.0.0.0/8 is directly connected, eth0
O   12.0.0.0/8 [110/10] is directly connected, eth1, 00:14:58
C>* 12.0.0.0/8 is directly connected, eth1
O>* 21.0.0.0/8 [110/30] via 11.0.0.1, eth0, 00:12:48
O>* 22.0.0.0/8 [110/40] via 11.0.0.1, eth0, 00:11:46
O>* 30.0.0.0/8 [110/20] via 11.0.0.1, eth0, 00:13:43
C>* 127.0.0.0/8 is directly connected, lo
O>* 172.18.0.0/24 [110/50] via 11.0.0.1, eth0, 00:10:17
O>* 192.168.3.0/24 [110/20] via 12.0.0.2, eth1, 00:14:18

R3

Configuration

R3(OSPF)# show running-config

Current configuration:
!
hostname R3(OSPF)
password foo
!
!
!
interface lo
!
interface eth0
!
interface eth1
!
router ospf
passive-interface eth1
network 12.0.0.0/8 area 1
network 192.168.3.0/24 area 1
!
line vty
!
end

État

R3 # telnet localhost 2604
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
 
Hello, this is zebra (version 0.91a).
Copyright 1996-2001 Kunihiro Ishiguro.

User Access Verification

Password:
R3(OSPF)> enable

R3(OSPF)# show ip ospf
 OSPF Routing Process, Router ID: 192.168.3.254
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Refresh timer 10 secs
 Number of external LSA 0
 Number of areas attached to this router: 1

 Area ID: 0.0.0.1
   Shortcutting mode: Default, S-bit consensus: no
   Number of interfaces in this area: Total: 2, Active: 2
   Number of fully adjacent neighbors in this area: 1
   Area has no authentication
   Number of full virtual adjacencies going through this area: 0
   SPF algorithm executed 13 times
   Number of LSA 9

R3(OSPF)# show ip ospf interface
lo is up, line protocol is up
  OSPF not enabled on this interface
eth0 is up, line protocol is up
  Internet Address 12.0.0.2/8, Area 0.0.0.1
  Router ID 192.168.3.254, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 192.168.3.254, Interface Address 12.0.0.2
  Backup Designated Router (ID) 12.0.0.1, Interface Address 12.0.0.1
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:08
  Neighbor Count is 1, Adjacent neighbor count is 1
eth1 is up, line protocol is up
  Internet Address 192.168.3.254/24, Area 0.0.0.1
  Router ID 192.168.3.254, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 192.168.3.254, Interface Address 192.168.3.254
  No backup designated router on this network
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    No Hellos (Passive interface)
  Neighbor Count is 0, Adjacent neighbor count is 0

 R3(OSPF)# show ip ospf database

       OSPF Router with ID (192.168.3.254)


                Router Link States (Area 0.0.0.1) 

Link ID

ADV Router

Age

Seq#

CkSum

Link count

12.0.0.1

12.0.0.1

981

0x80000006

0xf9e2

2

30.0.0.1

30.0.0.1

952

0x80000003

0xb13e

1

192.168.3.254

192.168.3.254

1063

0x80000005

0x15b7

2

                Net Link States (Area 0.0.0.1)

Link ID

ADV Router

Age

Seq#

CkSum

11.0.0.2

12.0.0.1

981

0x80000001

0xda39

12.0.0.2

192.168.3.254

1063

0x80000001

0x5d0b

                Summary Link States (Area 0.0.0.1)

Link ID

ADV Router

Age

Seq#

CkSum

Route

21.0.0.0

30.0.0.1

837

0x80000001

0x0d08

21.0.0.0/8

22.0.0.0

30.0.0.1

702

0x80000001

0x64a5

22.0.0.0/8

30.0.0.0

30.0.0.1

976

0x80000001

0x33e2

30.0.0.0/8

172.18.0.0

30.0.0.1

599

0x80000001

0x4a0d

172.18.0.0/24


R3(OSPF)# show ip ospf route

============ OSPF network routing table ============

N

 

11.0.0.0/8

[20]

area:

0.0.0.1

 

 

 

 

via

12.0.0.1,

eth0

 

N

 

12.0.0.0/8

[10]

area:

0.0.0.1

 

 

 

 

directly

attached

to

eth0

N

IA

21.0.0.0/8

[40]

area:

0.0.0.1

 

 

 

 

via

12.0.0.1,

eth0

 

N

IA

22.0.0.0/8

[50]

area:

0.0.0.1

 

 

 

 

via

12.0.0.1,

eth0

 

N

IA

30.0.0.0/8

[30]

area:

0.0.0.1

 

 

 

 

via

12.0.0.1,

eth0

 

N

IA

172.18.0.0/24

[60]

area:

0.0.0.1

 

 

 

 

via

12.0.0.1,

eth0

 

N

 

192.168.3.0/24

[10]

area:

0.0.0.1

 

 

 

 

directly

attached

to

eth1

============ OSPF router routing table =============

R

30.0.0.1

[20]

area:

0.0.0.1,

ABR

 

 

via

12.0.0.1,

eth0

 

============ OSPF external routing table ===========

 

R3(OSPF)# show ip ospf neighbor

Neighbor ID

Pri

State

Dead Time

Address

Interface

RXmtL

RqstL

DBsmL

12.0.0.1

1

Full/Backup

00:00:34

12.0.0.1

eth0

0

0

0

Table de routage

R3(Zebra)> show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, > - selected route, * - FIB route

O>* 11.0.0.0/8 [110/20] via 12.0.0.1, eth0, 00:12:48
O   12.0.0.0/8 [110/10] is directly connected, eth0, 00:14:09
C>* 12.0.0.0/8 is directly connected, eth0
O>* 21.0.0.0/8 [110/40] via 12.0.0.1, eth0, 00:11:18
O>* 22.0.0.0/8 [110/50] via 12.0.0.1, eth0, 00:10:16
O>* 30.0.0.0/8 [110/30] via 12.0.0.1, eth0, 00:12:13
C>* 127.0.0.0/8 is directly connected, lo
O>* 172.18.0.0/24 [110/60] via 12.0.0.1, eth0, 00:08:48
O   192.168.3.0/24 [110/10] is directly connected, eth1, 00:14:19
C>* 192.168.3.0/24 is directly connected, eth1


R4

Configuration

R4(OSPF)# show running-config

Current configuration:
!
hostname R4(OSPF)
password foo
!
!
!
interface lo
!
interface eth0
!
interface eth1
!
router ospf
network 21.0.0.0/8 area 2
network 30.0.0.0/8 area 0
!
line vty
!
end

État

R4# telnet localhost 2604
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is zebra (version 0.91a).
Copyright 1996-2001 Kunihiro Ishiguro.


User Access Verification

Password:
R4(OSPF)> enable

R4(OSPF)# show ip ospf
 OSPF Routing Process, Router ID: 30.0.0.2
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Refresh timer 10 secs
 This router is an ABR, ABR type is: Standard (RFC2328)
 Number of external LSA 0
 Number of areas attached to this router: 2

 Area ID: 0.0.0.0 (Backbone)
   Number of interfaces in this area: Total: 1, Active: 1
   Number of fully adjacent neighbors in this area: 1
   Area has no authentication
   SPF algorithm executed 14 times
   Number of LSA 9

 Area ID: 0.0.0.2
   Shortcutting mode: Default, S-bit consensus: no
   Number of interfaces in this area: Total: 1, Active: 1
   Number of fully adjacent neighbors in this area: 1
   Area has no authentication
   Number of full virtual adjacencies going through this area: 0
   SPF algorithm executed 12 times
   Number of LSA 9

 

R4(OSPF)# show ip ospf interface
lo is up, line protocol is up
  OSPF not enabled on this interface
eth0 is up, line protocol is up
  Internet Address 30.0.0.2/8, Area 0.0.0.0
  Router ID 30.0.0.2, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Designated Router (ID) 30.0.0.1, Interface Address 30.0.0.1
  Backup Designated Router (ID) 30.0.0.2, Interface Address 30.0.0.2
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:05
  Neighbor Count is 1, Adjacent neighbor count is 1
eth1 is up, line protocol is up
  Internet Address 21.0.0.1/8, Area 0.0.0.2
  Router ID 30.0.0.2, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 30.0.0.2, Interface Address 21.0.0.1
  Backup Designated Router (ID) 22.0.0.1, Interface Address 21.0.0.2
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:03
  Neighbor Count is 1, Adjacent neighbor count is 1

 

R4(OSPF)# show ip ospf database

       OSPF Router with ID (30.0.0.2)
                Router Link States (Area 0.0.0.0)

Link ID

ADV Router

Age

Seq#

CkSum

Link count

30.0.0.1

30.0.0.1

1212

0x80000003

0xfecb

1

30.0.0.2

30.0.0.2

1181

0x80000004

0xfacb

1

                Net Link States (Area 0.0.0.0)

Link ID

ADV Router

Age

Seq#

CkSum

30.0.0.1

30.0.0.1

1212

0x80000001

0x1fbd

                Summary Link States (Area 0.0.0.0)

Link ID

ADV Router

Age

Seq#

CkSum

Route

11.0.0.0

30.0.0.1

1316

0x80000001

0x2bfd

11.0.0.0/8

12.0.0.0

30.0.0.1

342

0x80000002

0x809c

12.0.0.0/8

21.0.0.0

30.0.0.2

1196

0x80000001

0xa27b

21.0.0.0/8

22.0.0.0

30.0.0.2

1046

0x80000001

0xf919

22.0.0.0/8

172.18.0.0

30.0.0.2

943

0x80000001

0xdf80

172.18.0.0/24

192.168.3.0

30.0.0.1

1286

0x80000001

0xb003

192.168.3.0/24

                Router Link States (Area 0.0.0.2)

Link ID

ADV Router

Age

Seq#

CkSum

count

22.0.0.1

22.0.0.1

979

0x80000006

0x633f

2

30.0.0.2

30.0.0.2

1081

0x80000003

0x4c8e

1

172.18.0.254

172.18.0.254

938

0x80000005

0xc2ff

2

                Net Link States (Area 0.0.0.2)

Link ID

ADV Router

Age

Seq#

CkSum

21.0.0.1

30.0.0.2

1081

0x80000001

0x32ba

22.0.0.1

22.0.0.1

979

0x80000001

0x66f0

                Summary Link States (Area 0.0.0.2)

Link ID

ADV Router

Age

Seq#

CkSum

Route

11.0.0.0

30.0.0.2

1176

0x80000001

0x8994

11.0.0.0/8

12.0.0.0

30.0.0.2

1176

0x80000001

0xe032

12.0.0.0/8

30.0.0.0

30.0.0.2

1196

0x80000001

0x2de7

30.0.0.0/8

192.168.3.0

30.0.0.2

1176

0x80000001

0x0f99

192.168.3.0/24

 

R4(OSPF)# show ip ospf route

============ OSPF network routing table ============

N

IA

11.0.0.0/8

[20]

area:

0.0.0.0

 

 

 

 

via

30.0.0.1,

eth0

 

N

IA

12.0.0.0/8

[30]

area:

0.0.0.0

 

 

 

 

via

30.0.0.1,

eth0

 

N

 

21.0.0.0/8

[10]

area:

0.0.0.2

 

 

 

 

directly

attached

to

eth1

N

 

22.0.0.0/8

[20]

area:

0.0.0.2

 

 

 

 

via

21.0.0.2,

eth1

 

N

 

30.0.0.0/8

[10]

area:

0.0.0.0

 

 

 

 

directly

attached

to

eth0

N

 

172.18.0.0/24

[30]

area:

0.0.0.2

 

 

 

 

via

21.0.0.2,

eth1

 

N

IA

192.168.3.0/24

[40]

area:

0.0.0.0

 

 

 

 

via

30.0.0.1,

eth0

 

============ OSPF router routing table =============

R

30.0.0.1

[10]

area:

0.0.0.0,

ABR

 

 

via

30.0.0.1,

eth0

 

============ OSPF external routing table ===========

 

R4(OSPF)# show ip ospf neighbor

Neighbor ID

Pri

State

Dead Time

Address

Interface

RXmtL

RqstL

DBsmL

30.0.0.1

1

Full/DR

00:00:33

30.0.0.1

eth0

0

0

0

22.0.0.1

1

Full/Backup

00:00:34

21.0.0.2

eth1

0

0

0

Table de routage

R4(OSPF)#

R4(Zebra)> show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       B - BGP, > - selected route, * - FIB route

O>* 11.0.0.0/8 [110/20] via 30.0.0.1, eth0, 00:13:59
O>* 12.0.0.0/8 [110/30] via 30.0.0.1, eth0, 00:13:59
O   21.0.0.0/8 [110/10] is directly connected, eth1, 00:14:29
C>* 21.0.0.0/8 is directly connected, eth1
O>* 22.0.0.0/8 [110/20] via 21.0.0.2, eth1, 00:13:03
O   30.0.0.0/8 [110/10] is directly connected, eth0, 00:14:39
C>* 30.0.0.0/8 is directly connected, eth0
C>* 127.0.0.0/8 is directly connected, lo
O>* 172.18.0.0/24 [110/30] via 21.0.0.2, eth1, 00:11:34
O>* 192.168.3.0/24 [110/40] via 30.0.0.1, eth0, 00:13:59

R5

Configuration

R5(OSPF)# show running-config

Current configuration:
!
hostname R5(OSPF)
password foo
!
!
!
interface lo
!
interface eth0
!
interface eth1
!
router ospf
network 21.0.0.0/8 area 2
network 22.0.0.0/8 area 2
!
line vty
!
end

État

R5 # telnet localhost 2604
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is zebra (version 0.91a).
Copyright 1996-2001 Kunihiro Ishiguro.


User Access Verification

Password:
R5(OSPF)> enable

R5(OSPF)# show ip ospf
 OSPF Routing Process, Router ID: 22.0.0.1
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Refresh timer 10 secs
 Number of external LSA 0
 Number of areas attached to this router: 1

 Area ID: 0.0.0.2
   Shortcutting mode: Default, S-bit consensus: no
   Number of interfaces in this area: Total: 2, Active: 2
   Number of fully adjacent neighbors in this area: 2
   Area has no authentication
   Number of full virtual adjacencies going through this area: 0
   SPF algorithm executed 10 times
   Number of LSA 9

R5(OSPF)# show ip ospf interface
lo is up, line protocol is up
  OSPF not enabled on this interface
eth0 is up, line protocol is up
  Internet Address 21.0.0.2/8, Area 0.0.0.2
  Router ID 22.0.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State Backup, Priority 1
  Designated Router (ID) 30.0.0.2, Interface Address 21.0.0.1
  Backup Designated Router (ID) 22.0.0.1, Interface Address 21.0.0.2
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:10
  Neighbor Count is 1, Adjacent neighbor count is 1
eth1 is up, line protocol is up
  Internet Address 22.0.0.1/8, Area 0.0.0.2
  Router ID 22.0.0.1, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 22.0.0.1, Interface Address 22.0.0.1
  Backup Designated Router (ID) 172.18.0.254, Interface Address 22.0.0.2
  Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:03
  Neighbor Count is 1, Adjacent neighbor count is 1

R5(OSPF)# show ip ospf database

       OSPF Router with ID (22.0.0.1)
                Router Link States (Area 0.0.0.2)

Link ID

ADV Router

Age

Seq#

CkSum

count

22.0.0.1

22.0.0.1

1033

0x80000006

0x633f

2

30.0.0.2

30.0.0.2

1137

0x80000003

0x4c8e

1

172.18.0.254

172.18.0.254

992

0x80000005

0xc2ff

2

                Net Link States (Area 0.0.0.2)

Link ID

ADV Router

Age

Seq#

CkSum

21.0.0.1

30.0.0.2

1137

0x80000001

0x32ba

22.0.0.1

22.0.0.1

1033

0x80000001

0x66f0

                Summary Link States (Area 0.0.0.2)

Link ID

ADV Router

Age

Seq#

CkSum

Route

11.0.0.0

30.0.0.2

1231

0x80000001

0x8994

11.0.0.0/8

12.0.0.0

30.0.0.2

1231

0x80000001

0xe032

12.0.0.0/8

30.0.0.0

30.0.0.2

1252

0x80000001

0x2de7

30.0.0.0/8

192.168.3.0

30.0.0.2

25

0x80000002

0x0d9a

192.168.3.0/24

 

R5(OSPF)# show ip ospf route

============ OSPF network routing table ============

N

IA

11.0.0.0/8

[30]

area:

0.0.0.2

 

 

 

 

via

21.0.0.1,

eth0

 

N

IA