Can mbed use two network interfaces

Can mbed use two network interfaces? If possible, how can these two interfaces be distinguished from their physical wiring?

Please refer to the documentation here, particularly the section Using multiple network interfaces.

This is for Mbed-OS v5. Documentation for v6 is not as clear, but will assume it is more or less the same.