Nikita Sergeyevich Khrushchev wrote:
> > Clarify your network layout -- it is not entirely clear . Is the
Linux
>
> My system:
>
> A pc with WinXp Sp2:
> Ip: 192.168.2.2
> Netmask: 255.255.255.0
> Default gateway: 192.168.2.1
So, the Linux box acts as GW for XP box.
> Connected with a cross cable to a Linux-box (Slack 10.0) with 2
network
> card:
> eth0 (connected to WinXp):
> Ip: 192.168.2.1
> Netmask: 255.255.255.0
So, eth0 is the nic connected to XP box.
> eth1 (connected to an office lan where there is also a router
192.138.1.1
> that is the default gateway):
> 192.168.1.4
> Netmask: 255.255.255.0
Again, this is not clear -- what _hardware_ is the Linux box connected
to? I _assume_ it is connected _directly_ to the lan router but it
could be a switch or hub as far as I can tell. Is it directly
connected to the router or something else?
> Default gateway: 192.168.1.1
So this is the IP of the lan router. What brand/model is it? Can you
set routes to subnets _not_ directly connected to it in a config
file/screen?
> No firewall is installed on WinXp
XP with SP2 _does_ enable the XP firewall now, IIRC -- don't have one
handy at the moment to confirm. Double check that yours is disabled.
> and on Slack 10.0 (I've made de default
> installation of Slack so, I think, there is no firewall installed).
Correct, afaik.
> WinXp ping correctly both network card on Linux, eth0 and eth1,
This is good

Confirm that the Linux box is sending _out_ those
packets headed for the lan with a sniffer (tcpdump or ethereal) just to
be sure everything is OK.
> but don't
> ping nothing on the office lan, so neither the router (default
gateway).
> Linux ping correctly WinXp and the office lan.
This is a _classic_ sign that the router does not have a route to your
XP's subnet. Thus the _return_ packets are dropped by the router
because it has no instructions on what to do with them -- ie., what
interface to send them out on.
> Question:
> What I have to do for let WinXp comunicate with the office lan, so I
can go
> to Internet through the router?
> Thanks
I will be busy today with Christmas -- delayed due to weather :-(
Complete the other items in my previous post -- especially you need to
confirm/enter a route to 192.168.2.0 via 192.168.1.4. I can't tell you
how to do this without router info (and maybe not then as routers can
vary in _how_ to enter route table entries).
Also, in future posts, do _not_ summarize the output of commands -- we
need the _exact_ input line _and_ the _exact_, _full_ output. Xterm is
easiest way, but you can redirect to file from commandline.
I will check back this evening after festivities to see how it's going.
Anyone else is encouraged to help if they can :-)
hth,
prg
email above disabled