Quick quiz: OSPF LSA generation
Given the following OSPF configuration …
interface Loopback 0
ip ospf 1 area 0
!
interface Ethernet 0
ip ospf 1 area 0
!
interface Serial 1
ip ospf 1 area 0
!
router ospf 1
passive-interface Ethernet 0
… how many LSAs will the router originate? Leave your opinions in the comments.
And one LSA Type 2, the number depends of the nb of routers in the AREA.
So, LSA type 1 for each interface: serial, loopback and ethernet.
Assuming serial interface is p2p, no LSA type 2 will be generated.
My answer: 1 LSA (Router LSA)
E0, S1 & Lo0 will be seen as stub networks by OSPF.
By default, OSPF treats Loopback interfaces as STUB NETWORKS and will advertise them as STUB ROUTES (with mask /32). No LSAs are sent for loopback interfaces but they are still advertised. 8-)
OSPF treats ethernet interfaces as Broadcast network and hence generate LSA Type 1 & 2.
OSPF treats serial interfaces as Point-to-point network and hence only LSA Type 1.
Galvezc is right.
No ip addresses = no ospf process = no lsas.
Assumed that ip addresses were configured :)
Ethernet interfaces are treated as broadcast by default. As the Et0 interface is set to passsive, no adjacencies can form and this router can not participate in a DR election; it will therefore declare itself the DR for the Ethernet segment and originate a Type-2 LSA.
(Of course, this assumes that all interfaces have been bound to an OSPF area; there are no 'network' or 'ip ospf area' commands to be seen...)