How to make script to reset network interface

Hello

I'm using purevpn with fixed ip, occasionaly when connection resets i'm getting wrong ip and i need to manually reset to get correct one.
Is there a way to check ip on connect and reset interface when ip is wrong?

Thanks

Methods:

3 Likes