Ethernet LAN Routing problem

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Routing problem Luca 12-12-05
|--> Re: Routing problem Walter Roberson12-12-05
Posted by Luca on December 12, 2005, 9:48 pm
Please log in for more thread options


Hi folks, I need help solving the following problem.
I have two LANs, one with ip 192.168.100.0 and subnet 255.255.255.0, the
other with ip 192.168.200.0 and subnet 255.255.255.0.
I need to connect the the two LANs using a server (can be Linux or
Windows, your choice). One LAN card of the server has ip 192.168.100.1,
the other has 192.168.200.1, so:


192.168.100.1 | 192.168.200.1
LAN1 -------------- SERVER -------------- LAN2
192.168.100.0 192.168.200.0
255.255.255.0 255.255.255.0

The question is: how do I set the server to let a host on one LAN to
ping another host on the other LAN?
Any help is appreciated.
Thank you
Luca


Posted by Walter Roberson on December 12, 2005, 10:28 pm
Please log in for more thread options


>Hi folks, I need help solving the following problem.
>I have two LANs, one with ip 192.168.100.0 and subnet 255.255.255.0, the
>other with ip 192.168.200.0 and subnet 255.255.255.0.
>I need to connect the the two LANs using a server (can be Linux or
>Windows, your choice). One LAN card of the server has ip 192.168.100.1,
>the other has 192.168.200.1, so:

>The question is: how do I set the server to let a host on one LAN to
>ping another host on the other LAN?

I'm not particularily familiar with Linux, but in a number of Unix
systems, all you need to do is configure (or "tune") the IP stack
to permit forwarding of IP packets between interfaces. The rest
of the work would all get handled through the normal Unix routing
procedures.

For example, in SGI's IRIX, all that would be necessary would
be to become root and command systune ipfowarding 1

In Linux, it's probably something closer to

echo 1 >> /proc/net/forwarding

but that's just an example of the general style; I don't know which
file you would need.


If I recall correctly, in Windows, it's one of the security policies
("manage computer" -- mmc) but I couldn't find it in a fish through
Windows 2000 Professional. It might have been on XP that I was looking.
--
Programming is what happens while you're busy making other plans.


Posted by David Tiktin on December 13, 2005, 11:19 am
Please log in for more thread options



> The question is: how do I set the server to let a host on one LAN
> to ping another host on the other LAN?

Enable forwarding. You can google for it or just see

http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html

Dave

--
D.a.v.i.d T.i.k.t.i.n
t.i.k.t.i.n [at] a.d.v.a.n.c.e.d.r.e.l.a.y [dot] c.o.m


Similar ThreadsPosted
Routing problem December 12, 2005, 9:48 pm
Lan to Lan to internet routing problem October 7, 2004, 8:48 am
Need a metaphor for routing March 30, 2006, 9:01 am
VLAN Routing June 21, 2007, 6:28 pm
VLAN Routing June 21, 2007, 6:32 pm
IGMP routing startup October 19, 2004, 2:14 pm
Inter VLAN Routing July 28, 2005, 3:18 am
Inter VLAN routing October 13, 2006, 12:36 pm
Desktop switch kills routing November 30, 2004, 1:19 pm
Routing between VLANs using a Layer 3 Switch March 24, 2005, 11:39 am
How-to Print w/inter-vlan routing? February 8, 2006, 2:40 pm
Help: Low-Cost Switch with VLAN routing / LAN Segmentation? October 17, 2005, 3:04 pm
static routing in addition to DHCP on my router. January 25, 2006, 11:47 pm
static routing in addition to DHCP on my router. January 25, 2006, 11:47 pm
3Com Superstack 4500 VLAN routing December 18, 2006, 10:33 am