cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1304
Views
0
Helpful
2
Replies

Ospf network Statement

hassan_syed6
Level 1
Level 1

Hello,

I am just wondering if someone can guide me to a document or kindly explain.

If i have 2 networks say 10.10.10.0 255.255.255.0 and 192.168.10.0 255.255.255.0

then under ospf i should have the statements like this

router ospf 1

network 10.10.10.0 0.0.0.255 area 0

network 192.168.10.0 0.0.0.255 area 0

BUT...

if i put

router ospf 1

network 0.0.0.0 255.255.255.255 area 0

then would both the above are same or not. I was told they are same. I have been searching the website but cannot get the concept or a document which can explain...

1 Accepted Solution

Accepted Solutions

Edison Ortiz
Hall of Fame
Hall of Fame

They are not the same.

The first one will only enable OSPF on interfaces belonging to subnet 10.10.10.0/24 and 192.168.10.0/24

The second one will enable OSPF on any interface in the router. If you were to create a loopback interface, this interface will also be included into OSPF and this can cause some problems if you did not intend to do so.

The network 0.0.0.0 255.255.255.255 area 0 is basically telling the router to enable OSPF on any interface that this router has. Not a recommended solution on production environment.

HTH,

__

Edison.

View solution in original post

2 Replies 2

Edison Ortiz
Hall of Fame
Hall of Fame

They are not the same.

The first one will only enable OSPF on interfaces belonging to subnet 10.10.10.0/24 and 192.168.10.0/24

The second one will enable OSPF on any interface in the router. If you were to create a loopback interface, this interface will also be included into OSPF and this can cause some problems if you did not intend to do so.

The network 0.0.0.0 255.255.255.255 area 0 is basically telling the router to enable OSPF on any interface that this router has. Not a recommended solution on production environment.

HTH,

__

Edison.

Thanks alot

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