Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

ospf network advertising

Hi all, After just reading a book, I see that if I want to advertise a network on my router, the best thing to do is advertise the full wildcard mask of the interface you want to advertise, then it will advertise the subnet of the interface, so if I have interface ay 192.168.1.1/24 and I add router ospf 1 network 192.168.1.1 0.0.0.0, it will still advertise the 192.168.1.0/24 network, is this correct ?

3 REPLIES
Hall of Fame Super Silver

Re: ospf network advertising

Hello Carl,

yes it is for this reason that network area commands can be regarded as similar to ACL statements:

the network area command is used to decide on what interface(s) to run the OSPF neighbor machine, the IP subnets associated to these interfaces are advertised.

Hope to help

Giuseppe

New Member

Re: ospf network advertising

hi there, so would it be best practice to normally do this ?

Hall of Fame Super Silver

Re: ospf network advertising

Hello Carl,

if you want to have a fine control this can be used.

However, in my opinion the better choice is to use a wildcard that matches the ip subnet mask.

There are some specific cases where having used 0.0.0.0 in the network area commands lead to some side effects in the forwarding address field of LSA type 5 (if I remenber correctly).

See the following for an exact explanation of network area command

http://www.cisco.com/en/US/docs/ios/12_0/np1/command/reference/1rospf.html#wp1018719

Hope to help

Giuseppe

362
Views
0
Helpful
3
Replies
CreatePlease to create content