linux and two routers
From: Marco Paglioni (nospam_at_netapps.it)
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.
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 (18.104.22.168) 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
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
and why i get !X
trying the PING i get this:
PING www.riccione.net (22.214.171.124) 56(84) bytes of data.
64 bytes from host3-195-149-62.serverdedicati.aruba.it (126.96.36.199):
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??