linux and two routers
From: Marco Paglioni (nospam_at_netapps.it)
Date: 08/04/04
- Next message: Gerard H. Pille: "Re: Badness in local_bh_enable at kernel/softirq.c:136"
- Previous message: Gerard Wassink: "Re: parallel network connections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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??
- Next message: Gerard H. Pille: "Re: Badness in local_bh_enable at kernel/softirq.c:136"
- Previous message: Gerard Wassink: "Re: parallel network connections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|