Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux and two routers

Reply
Thread Tools Display Modes

linux and two routers

 
 
Marco Paglioni
Guest
Posts: n/a

 
      08-04-2004, 11:32 AM
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??








 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux server with 2 nics and 2 routers Innocenti Maresin Linux Networking 1 08-14-2006 04:11 PM
Anyone got one of those Linksys wifi routers you can run Linux on? Fred Finisterre Broadband 5 08-07-2006 09:48 PM
Linux vs IOS on routers... LordGarak@gmail.com Linux Networking 0 03-04-2006 07:03 PM
tc and QoS between two linux routers raakjoer@gmail.com Linux Networking 2 10-28-2005 03:53 PM
Linux Routers working cranium.2003@gmail.com Linux Networking 4 05-13-2005 05:28 PM



1 2 3 4 5 6 7 8 9 10 11