You want to check the ThingStatusChangeTrigger in a rule. It is not possible to directly link an item to the online status of e. g. a bridge.
Just search for it, there are already very good examples.
Beside fixing the root cause with a fixed IP address I think it is a good practice to check the status of bridges so that automations can react to e g a measurement being outdated.