cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
947
Views
0
Helpful
9
Replies

OSPF setup help

avilt
Level 3
Level 3

I have my setup as shown below.

Area0<----Router-A---->Area0<----Router-B---->Area1

ROUTERB:
interface GigabitEthernet0/0
ip address 10.10.126.9 255.255.255.192
ip ospf message-digest-key 1 md5 XXXXYYYY

interface GigabitEthernet0/1
ip address 10.10.88.142 255.255.255.192
ip ospf message-digest-key 100 md5 7 XXXXYYYY
ip ospf priority 254

router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
network 10.10.88.142 0.0.0.0 area 1
network 10.10.126.0 0.0.0.63 area 0

Do I also need to put the following command on router-B?

network 10.10.126.0 0.0.0.63 area 1

2 Accepted Solutions

Accepted Solutions

Mahesh Gohil
Level 7
Level 7

Hi Avilt,

if you write this command the below statement

network 10.10.126.0 0.0.0.63 area 0

will be over written as

network 10.10.126.0 0.0.0.63 area 1

and your ospf config will look like

router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
network 10.10.88.142 0.0.0.0 area 1
network 10.10.126.0 0.0.0.63 area 1

and the impact is you will not find ospf adjacency between RouterA and Router B.

Regards

Mahesh

View solution in original post

Hello ,

No , the 10.10.126. segment is part of Area 0,

This route you will see it in Area 1 , if you have more then Router B in this area , as intre-area route (O IA).

Dan

View solution in original post

9 Replies 9

Jerry Ye
Cisco Employee
Cisco Employee

Is 10.10.126.0 0.0.0.63 in area 1 or area 0? You need to configure which interface is going to participate in OSPF in Router A. You need to put the OSPF authentication in Router A also.

HTH,

jerry

Mahesh Gohil
Level 7
Level 7

Hi Avilt,

if you write this command the below statement

network 10.10.126.0 0.0.0.63 area 0

will be over written as

network 10.10.126.0 0.0.0.63 area 1

and your ospf config will look like

router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
area 1 authentication message-digest
network 10.10.88.142 0.0.0.0 area 1
network 10.10.126.0 0.0.0.63 area 1

and the impact is you will not find ospf adjacency between RouterA and Router B.

Regards

Mahesh

Hi,

Can you share the configuration for both the routers ?

ROUTERA:

interface GigabitEthernet0/0

ip address 10.10.126.54 255.255.255.192

ip ospf message-digest-key 1 md5 XXXXYYYY

interface GigabitEthernet0/1

ip address 10.10.88.199 255.255.255.240

ip ospf message-digest-key 1 md5 7 XXXXYYYY

router ospf 65182

log-adjacency-changes

area 0 authentication message-digest

network 10.10.88.199 0.0.0.0 area 0

network 10.10.126.0 0.0.0.63 area 0

--------------------------------------------------

ROUTERB:

interface GigabitEthernet0/0

ip address 10.10.126.9 255.255.255.192

ip ospf message-digest-key 1 md5 XXXXYYYY

interface GigabitEthernet0/1

ip address 10.10.88.142 255.255.255.192

ip ospf message-digest-key 100 md5 7 XXXXYYYY

router ospf 65182

log-adjacency-changes

area 0 authentication message-digest

area 1 authentication message-digest

network 10.10.126.0 0.0.0.63 area 0

network 10.10.88.142 0.0.0.0 area 1

On router-B, in order to advertise the route to 10.10.126.0 in area-1, do I also need to put the following command on router-B?

network 10.10.126.0 0.0.0.63 area 1

Hello ,

No , the 10.10.126. segment is part of Area 0,

This route you will see it in Area 1 , if you have more then Router B in this area , as intre-area route (O IA).

Dan

I am bit confused about the usage of network command in OSPF.
For example in the following config, if I do not add the command "network 10.10.126.9 0.0.0.0 area 0" is the router going to advertise the route to network 10.10.126.0 in area0 on the interface GigabitEthernet0/1?


TESTROUTER:
interface GigabitEthernet0/0
ip address 10.10.126.9 255.255.255.192

interface GigabitEthernet0/1
ip address 10.10.88.142 255.255.255.192
ip ospf message-digest-key 1 md5 7 XXXXYYYY

router ospf 65182
log-adjacency-changes
area 0 authentication message-digest
network 10.10.88.142 0.0.0.0 area 0

Hi Avilt,

In case of ospf if you want to enable ospf on interface then you will have to put the IP  of that interface

via. network command in ospf.

Network command serve two purpose.

1- Help in estlablishing neighbor relationship with connected interface device

2- and advt. that network in ospf

For your query. You already have ospf route for network 10.10.126.0 on router B then you need not to put it in network command to advt. on your interface

GigabitEthernet0/1. You will see that network advt. on other routers as Net summary link.

Please issue "sh ip ospf database" to verify the same on router connected to GigabitEthernet0/1

Please feel free to write if you have any more query

Regards

Mahesh

Thank You Mahesh.

Just to clarify further regarding point 2

2- and advt. that network in ospf

Is this command goint to advertise every active route even though the network command is not defined for every network ?

Hi Avilt,

This will advt. the route covered under this subnet. I mean if you put 10.10.10.0/16 then it will advt. all active route

belongs to that subnet

Hope this is clear to you

Regards

mahesh

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card