If you need (OSPF, BGP, NAT), look for the i86bi_linuxl3-adventerprisek9 image. For advanced features (e.g., VRF, MPLS), use CSR1000v or IOS-XRv images.

# Set license (required to bypass crypto errors) export IOL_LIC=1234567890abcdef1234567890abcdef ./i86bi_linuxl2-adventerprisek9-m_152_may_2018.bin -e 1 -s 0

The file i86bi_linuxl2-adventerprisek9-m_152_may_2018.bin is a specifically designed to run as a Layer 2 switch in a virtualized environment, typically on Cisco IOL (IOS on Linux) .