OSPF Packets and Neighbor Discovery

Hi lagapides, thank u for reply.
I know that if i add network 192.168.1.2 0.0.0.1 area 0 command under the OSPF configuration, it’ work but, my question is why not work if i add the command redistribute connected under the OSPF configuration.
Both router have the network 192.168.1.2/31 connected, and the command redistribute connected, should advertise this network or not?

Thanks.

| lagapides Lazaros Agapides
October 14 |

  • | - |

Hello Alessandro

You’ve configured the interfaces correctly, using a /31 subnet mask. However, when you configured OSPF, you didn’t advertise that network. You must use the network command under the OSPF configuration to indicate which subnets will participate in OSPF and thus which interfaces will begin sending OSPF hello packets to establish adjacencies.

In your case, you must add the network 192.168.1.2 0.0.0.1 area 0 command under the OSPF configuration mode for both routers.

Take a look at this lesson for more details:

NetworkLessons.com – 18 Feb 13

### Basic OSPF Configuration

In this article i’ll walk you through the configuration of OSPF on CCNA level.

Est. reading time: 14 minutes

I hope this has been helpful!

Laz