two default gateways
How do I add two default route with two different gateways on different interfaces with different priorities:
eth0 192.168.0.1 Intranet
eth1 192.168.1.1 internet router for internal QMail
eth2 192.168.2.1 internet adsl for Proxy
for the eth1 the gateway must be 192.168.1.254
for the eth2 the gateway must be 192.168.2.254
proxy and navigation must use adsl (192.168.2.254)
my email server only the router (192.168.1.254)
my firewall itīs ok...
I need help....
Fabio Leonardo Jung
from Brasil :)
(I posted the same response on the other forum you asked this on.)
Have a look at the man pages for route.
I found this example:
It appears that you can add a route per interface. (I haven't actually done this myself.)
route add -net 22.214.171.124 netmask 255.255.255.0 dev eth0
I tried this, but not work... services as the qmail and bind always uses default gateway instead of other...
This is awkward. ;) I replied on the other forum.. if you read this one first I will continue discussing here..