AT&T provides a modem when you sign on, but once it is out of warranty you are on your own.
Good thing I have a spare. Good luck.
Tell AT&T you are switching to cable internet and they’ll probably give you a new modem. Maybe lower your monthly bill, too.