Backup route
Posted: Fri Dec 10, 2010 1:13 pm
Hello
I have an eth0 address, say it is 192.168.5.191. I connect to my openvpn as server and get a VPN IP of
172.21.1.5 (so now I have both).
The software I am running relies on the fact that I have an IP address 172.21.1.5. However, if communication is temporarily
lost between my machine and the VPN server I will no longer have the 172 address, and there will be problems.
I want to just do an ifconfig eth0:1 172.21.1.5 netmask 255.255.0.0
But then I will have two interfaces (usually) with the 172.21.1.5 address. I would make the netmask the full 255.255.255.255
so only one route would be affected.
Is it OK to have the VPN IP and eth0:1 IP address the same or will it cause problems?
Yes you can tell me to try it which I did and it appears to be OK but appearances can be deceptive.
Thanks
I have an eth0 address, say it is 192.168.5.191. I connect to my openvpn as server and get a VPN IP of
172.21.1.5 (so now I have both).
The software I am running relies on the fact that I have an IP address 172.21.1.5. However, if communication is temporarily
lost between my machine and the VPN server I will no longer have the 172 address, and there will be problems.
I want to just do an ifconfig eth0:1 172.21.1.5 netmask 255.255.0.0
But then I will have two interfaces (usually) with the 172.21.1.5 address. I would make the netmask the full 255.255.255.255
so only one route would be affected.
Is it OK to have the VPN IP and eth0:1 IP address the same or will it cause problems?
Yes you can tell me to try it which I did and it appears to be OK but appearances can be deceptive.
Thanks