Many of the newbies get confused while configuring OSPF network statements. Wild card masks are sometimes a pain. Although I have already covered wild card masks usage in my earlier post. Here is an example in lieu to OSPF.
router ospf process id
network x.x.x.x wildcardmask area area-id
ip address 172.30.105.86 255.255.255.252
To add serial0 in OSPF, command will be
router ospf 100 —-> 100 is a process id
network 172.30.105.84 0.0.0.3 area 0
Here we have used wild card mask. but you know we can accomplish the same task with following:-
router ospf 100
network 172.30.105.86 0.0.0.0 area 0
Here we are directly advertising interface address rather then network. This is a convenient method as you don't have to always worry abt wild card masks.