Configuring OSPF

OSPF Configuration Examples

Jelly Configuration

hostname jelly

!

interface serial 2

ip address 10.0.0.3 255.0.0.0

ip ospf network point-to-multipoint encapsulation frame-relay

clock rate 2000000

frame-relay map ip 10.0.0.2 301 broadcast

!

router ospf 1

network 10.0.0.0 0.0.0.255 area 0

OSPF Point-to-Multipoint, Broadcast Example

The following example illustrates a point-to-multipoint network with broadcast:

interface Serial0

ip address 10.0.1.1 255.255.255.0 encapsulation frame-relay

ip ospf cost 100

ip ospf network point-to-multipoint frame-relay map ip 10.0.1.3 202 broadcast frame-relay map ip 10.0.1.4 203 broadcast frame-relay map ip 10.0.1.5 204 broadcast frame-relay local-dlci 200

!

router ospf 1

network 10.0.1.0 0.0.0.255 area 0 neighbor 10.0.1.5 cost 5 neighbor 10.0.1.4 cost 10

The following example shows the configuration of the neighbor at 10.0.1.3:

interface serial 0

ip address 10.0.1.3 255.255.255.0 ip ospf network point-to-multipoint encapsulation frame-relay frame-relay local-dlci 301

frame-relay map ip 10.0.1.1 300 broadcast no shut

!

router ospf 1

network 10.0.1.0 0.0.0.255 area 0

The output shown for neighbors in the first configuration is as follows:

Router# show ip ospf neighbor

Neighbor ID

Pri

State

 

Dead Time

Address

Interface

4.1.1.1

1

FULL/

-

00:01:50

10.0.1.5

Serial0

3.1.1.1

1

FULL/

-

00:01:47

10.0.1.4

Serial0

2.1.1.1

1

FULL/

-

00:01:45

10.0.1.3

Serial0

The route information in the first configuration is as follows:

Router# show 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 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default

Cisco IOS IP Configuration Guide

IPC-243

Page 289
Image 289
Cisco Systems 78-11741-02 manual Ospf Point-to-Multipoint, Broadcast Example, Jelly Configuration, IPC-243