Hi,
You really only need the OSPF neighborship accross the subinterfaces that you regard as your layer3 IP routing
interfaces/Vlans.
Lets say you use vlans 21 & 22 for IP routing and these are sub interfaces on fas0/0 off each router
and may be they have a serial routed interface Serial0/0/0
router ospf 1
area 0 authentication message-digest
passive-interface default
no passive-interface FastEthernet0/0.21
no passive-interface FastEthernet0/0.22
no passive-interface Serial0/0/0
... MORE OSPF CONFIG ....
!
!
!
interface FastEthernet0/0.21
ip ospf message-digest-key 1 md5 MY-OSPF-PASSWORD
.... MORE CONFIG ....
!
interface FastEthernet0/0.22
ip ospf message-digest-key 1 md5 MY-OSPF-PASSWORD
.... MORE CONFIG ....
!
interface Serial0/0/0
ip ospf message-digest-key 1 md5 MY-OSPF-PASSWORD
.... MORE CONFIG ....
!
You will now only allow OSPF neiborships to form on your selected interfaces/sub-interfaces
Hope this helps
Regards
Alex
Regards,
Alex.
Please rate useful posts.