Here goes a simple solution to advertise all interfaces in a routing protocol. In this example I am using OSPF.
R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 0.0.0.0 area 0
R2(config)#router ospf 1
R2(config-router)#network 0.0.0.0 255.255.255.255 area 0
These network statements mean to match and advertise any ip segment originating from the router. It seems that using the wildcard mask 255.255.255.255 works also but I prefer the wildcard of 0.0.0.0 because its a lot easier to type. :)
This shortcut works effectively if you are doing your personal lab and at one point became lazy such as me. If you have interfaces that you want to advertise to a certain area, you can always add the network command and presto it will be in a new area. Enjoy but don't stay lazy!
gooody
I'd always add a 'passive-interface default' to the ospf process if using a 'catch all' command
why we go for Passive interface command ? could you please explain with scenario