So through printer settings you set to look for a network printer on the right IP address after which cups should come with the printer, hardware address and the driver.
I do sometimes have to remove the old settings to get a working network printer after a reinstall or different router but generally it works OOTB.