I have a Debian based Linux router with 2 NICS using iptables that is working fine. We recently installed a second Internet connection along with a separate consumer router for that connection. Everything works fine as it is and the default gateway can be changed on a computer to use the other network connection if needed.
My question is if I can configure a virtual interface on the linux router so that I can access the router from the other network if need be. For everything else it would stay with the default gateway currently in use.
The current /etc/network/interfaces file looks like this:
iface eth1 inet static
iface eth0 inet static
I am thinking of adding the following (10.233.0.254 is the other internet connection router):
iface eth1:0 inet static
I am guessing that I will need to add some route information, and/or something to the iptables config to get it to work properly. The current routing table is:
0.0.0.0 x.x.x.158 0.0.0.0 UG 0 0 0 eth0
10.233.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
x.x.x.152 0.0.0.0 255.255.255.248 U 0 0 0 eth0
I am not on site and therefore want to double check the configuration before I activate it and lose access to the network (if it is incorrect).
Any help would be appreciated!