3 Interface Setup

Discussion in 'HOWTO-Related Questions' started by mandrivanewbie, Nov 10, 2014.

  1. mandrivanewbie

    mandrivanewbie New Member

    Hello All

    I was wondering if someone may be able to assist me. I have a Mandriva server in place with 3 interfaces. eth0 is local, eth1 is on an ADSL router and eth2 is on another ADSL router.

    Presently the default gateway is eth1 which is 192.168.1.1. Using the shorewall masq file I wish to drive certain traffic through the second adsl line only (eth2) with the line eth2:196.*.*.* eth1
    (* is filled out with complete IP address)

    The challenge is that if I traceroute 196.*.*.* it uses 192.168.1.1 and not 10.0.0.1 which is the routers IP on eth2.

    I have clearly got something wrong, any ideas as to what I have missed?

    Ifconfig (* = blanked out details)

    eth0 Link encap:Ethernet HWaddr 38:*.*.*
    inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: *.*.* Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:370422 errors:0 dropped:0 overruns:0 frame:0
    TX packets:367261 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:36069943 (34.3 MiB) TX bytes:46759625 (44.5 MiB)
    Interrupt:18

    eth1 Link encap:Ethernet HWaddr 2C*.*.*
    inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: *.*.*Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:363902 errors:0 dropped:0 overruns:0 frame:0
    TX packets:366328 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:43686343 (41.6 MiB) TX bytes:34365612 (32.7 MiB)
    Memory:fe7e0000-fe800000

    eth2 Link encap:Ethernet HWaddr *.*.*
    inet addr:10.0.0.254 Bcast:10.0.0.255 Mask:255.255.255.0
    inet6 addr: *.*.* Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:296 errors:0 dropped:0 overruns:0 frame:0
    TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:38002 (37.1 KiB) TX bytes:5533 (5.4 KiB)
    Memory:fe8e0000-fe900000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:278 errors:0 dropped:0 overruns:0 frame:0
    TX packets:278 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:36066 (35.2 KiB) TX bytes:36066 (35.2 KiB)

    If I run:

    route add default gateway 10.0.0.1

    Then all traffic runs through the above routers ip.

    Any help would be greatly appreciated.

    Thanking you kindly in advance

    Regards

    Mandrivanewbie
     

Share This Page