Thank you for using the forum.
The switches are part of a stack or they are standalone?
If they are on standalone both switches need an IP address in the same subnet so they can reach each other and also need to have the VLAN tagged, can you please share a show run for both devices so we can further assist you? Also, please share a show ip route or show ip from each device.
Ayleth Alvarez | Sr Technical Support Engineer | TAC Wired