In Windows, I can add a persistent route for an IP using the interface number of my VPN connection. However, when I reconnect to the VPN later, the interface number changes, which means the route I added previously no longer works. So each time I connect to the VPN, I have to re-add the route, using the VPN's current interface number.
For example, the VPN's route number may be 0x300003, then when I disconnect and reconnect, the route number becomes 0x320003, and so on.
Is there a way of adding a persistent route to the table which applies to a range of interface numbers? Or some other way of doing this without, each time I connect to the VPN, having to manually find the right interface # and re-add the route?