Relationship among the media type, link type, and network type of OSPF on S series switches

Question: What are OSPF media type, link type, and network type? What is the relationship among them?
Answer: OSPF media type, link type, and network type are described as follows:
Media type: indicates types of physical links, including GigabitEthernet and Ethernet links.
Link type (in LSAs): The link type in an LSA is set based on the ospf network-type setting, as defined in RFC 2328.
On a point-to-point (P2P) network, the link type is point-to-point.
If a device is connected to a transmission network, the link type is transit.
If a device is connected to a stub network, the link type is stub.
If a device is connected to a virtual link, the link type is virtual.
Network type: The OSPF network type can be configured as required regardless of physical media.
Currently, OSPF network types include P2P, broadcast, NBMA, and P2MP.
Relationship among the media type, link type, and network type: The default OSPF network type depends on the media type, and the OSPF network type determines the link type in an LSA.

Scroll to top