I have an Ubuntu-box as a gateway with two interfaces. The first one (eth0) is the internal network and has the following address:
The second one is connected to a router from an ISP, to which I don't have access! And, alas, it has 192.168.1.1 as address... So I ended up choosing the following for eth1:
route add 192.168.1.1 eth1 ip route add default via 192.168.1.1 dev eth1
But this only works if I change the IP of my gateway on eth0 to 192.168.1.2 or something else. Is there a way to define the routing while keeping 192.168.1.1 on my gateway, too?
PS: Yes, I could reconfigure my internal network to something else, but as there is a Windows-domain-server on it, I don't want to do that.