linux and two routers

From: Marco Paglioni (nospam_at_netapps.it)
Date: 08/04/04


Date: Wed, 4 Aug 2004 13:32:37 +0200

i have my linux machine with an eth0 on the local lan, and a eth1 on a
switch with two routers (one hdsl and one adsl)

there is no nat, and the linux box has all available public IP minus the
hdsl one. It has as default gateway, the router adress.
Everything works...
now i have to use the adsl router to forward some traffic, or do a snat for
some remote users to enter via vpn.

I have added a virtual adress to the eth1 (eth1:1)
i've tried first with webmin "routing and gateways", but putting a stati
route here, didn't give anything when doing a "route" command (every subnet
has a default gateway of "*")

i've tried a "route add" with the adsl subnet and the adsl router ip as
gateway. Then i tried to
tracert and i got this (i'm replacing ips with something more meaningful
with < and >):

---------------------
traceroute to www.riccione.net (62.149.195.3) from <ip eth1:1>, 30 hops max,
38 byte packets
 1 <hostname router hdsl> (<ip router hdsl>) 24.227 ms 24.677 ms 25.110
ms
 2 <hostname router hdsl> (<ip router hdsl>) 24.805 ms !X * 25.076 ms !X
---------------------

what i don't understand is why i got reply from hdsl router intstead the
adsl one
and why i get !X

trying the PING i get this:
PING www.riccione.net (62.149.195.3) 56(84) bytes of data.
64 bytes from host3-195-149-62.serverdedicati.aruba.it (62.149.195.3):
icmp_seq=0 ttl=55 time=15.6 ms

and after 20 seconds i do a ctrl-c and i get:
--- www.riccione.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 15.656/15.656/15.656/0.000 ms, pipe 2

i managed to get 2 pings in about 82 seconds

can someone help me??



Relevant Pages

  • Re: DSL not recognizing the modem...what else is new?
    ... If your speedtouch is *not* a gateway type device, ... what's the harm in using the router *even if* ... operators looking to deploy a simple and flexible ADSL gateway ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Additionally
    ... gateway IP, ... Not the original IP of the adsl ... router I assume, and my ISP does not provide a gateway IP, only ... If I configure the ADSL Router as a bridge connection, ...
    (microsoft.public.windows.server.sbs)
  • Re: 1 server 2 nics both with gateways
    ... network interface should have a default gateway. ... route on the Cisco router to send Internet traffic to the ADSL router. ...
    (microsoft.public.win2000.general)
  • Re: connect 2 lan to access internet through dlink g604t modem router
    ... the cost of a router alone especially with an always on connection such as ... Plug everything into the it,...including the ADSL device. ... one adaptor connecting to the ADSL model router and the ... default gateway 10.1.1.1 ...
    (microsoft.public.win2000.networking)
  • USR Gateway
    ... I have a gateway (USR 9106 adsl, ap, router). ...
    (comp.security.firewalls)