-   Linux - Server (
-   -   Route defaut Gateway to other Interface (

opensys 10-26-2011 02:19 AM

Route defaut Gateway to other Interface
Hello Folks,

I have a server with two public IP address, on the same interface like:
eth0 and the alias eth0:0 and is working ok.

Exists two interfaces eth1 and eth2.
Is possible to route the default gateway in the eth1 to eth0 and the eth2 to eth0:0 ?

eth1: 192.168.1/24 -> eth0
eth2: 192.168.2/24 -> eth0:0

I try some examples with ip route, and iptables mark without success. Can anyone post some example to i make this rules?

Regards :)

EricTRA 10-28-2011 01:12 AM


Have a look at the man page for the route command:

man route
It contains several examples.

Kind regards,


All times are GMT -5. The time now is 06:15 AM.