OSPF Network Command

dppagcdppagc Member Posts: 293
int fa0/0
ip add
no shut

What is the difference between

router ospf 1 area 0


router ospf 1 area 0

They will both advertise the route right?


  • networker050184networker050184 Mod Posts: 11,962 Mod
    The network statement doesn't tell the router what to advertise. It tells the router which interface to participate in the process. So if an interface IP falls within the range of the network command it participates in that area and advertises the attached network and mask.

    So, in your case for the first one any interface with IP will take part in the OSPF process. The second one only an interface with the IP exactly will participate in the process. Again, what get advertised depends on the mask on the actual interface.
    An expert is a man who has made all the mistakes which can be made.
  • DKempeneersDKempeneers Banned Posts: 36 ■■□□□□□□□□
    CCNA level question :)
Sign In or Register to comment.