Find the answer to your Linux question:
Results 1 to 4 of 4
Hi 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Location
    Brasil
    Posts
    2

    two default gateways


    Hi

    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)

    and

    my email server only the router (192.168.1.254)

    my firewall itīs ok...

    I need help....

    thanks

    Fabio Leonardo Jung
    from Brasil

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    (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:
    Code:
    route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
    It appears that you can add a route per interface. (I haven't actually done this myself.)

    Good luck.

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Location
    Brasil
    Posts
    2
    I tried this, but not work... services as the qmail and bind always uses default gateway instead of other...

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    This is awkward. I replied on the other forum.. if you read this one first I will continue discussing here..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •