Are these devices layer 2 or layer 3?

It is both layer 2 and 3.