LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Route defaut Gateway to other Interface (https://www.linuxquestions.org/questions/linux-server-73/route-defaut-gateway-to-other-interface-910198/)

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 ?

ex:
eth1: 192.168.1/24 -> eth0 213.56.34.78.88
eth2: 192.168.2/24 -> eth0:0 213.56.34.78.89

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

Hello,

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

man route
It contains several examples.

Kind regards,

Eric


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