All of lore.kernel.org
 help / color / mirror / Atom feed
* Why the network is unreable?
@ 2006-11-05 12:04 chenggh04
  2006-11-05 18:05 ` Rob Sterenborg
  0 siblings, 1 reply; 2+ messages in thread
From: chenggh04 @ 2006-11-05 12:04 UTC (permalink / raw)
  To: netfilter

Hi:
    My network is like this:
    A(IP:192.168.0.2)          B(IP: 192.168.0.1)(IP:192.168.1.2) 
C(IP:192.168.1.1)
     (netmask:255.255.255.0)     255.255.255.0     255.255.255.0    
255.255.255.0
     (gw: 192.168.0.1)            gw : 192.168.1.1


   B is a machine with 2 network cards .
   At first I enable the /proc/sys/net/ipv4/ip_forward and set the default gw
192.168.1.1.
    Now, A ping B is ok and B ping C is ok. But when A ping C the network is
unreachable.
   I don't know why. Please help me.
   Best wishes.
   Thank you.
                                                 cheng




^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Why the network is unreable?
  2006-11-05 12:04 Why the network is unreable? chenggh04
@ 2006-11-05 18:05 ` Rob Sterenborg
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Sterenborg @ 2006-11-05 18:05 UTC (permalink / raw)
  To: netfilter

> Hi:
>     My network is like this:
>     A(IP:192.168.0.2)          B(IP: 192.168.0.1)(IP:192.168.1.2)
>      C(IP:192.168.1.1) (netmask:255.255.255.0)     255.255.255.0    
>      255.255.255.0 255.255.255.0 (gw: 192.168.0.1)            gw :
> 192.168.1.1 

I'm not sure what you mean because of wrapping.
You mean this?

A(IP: 192.168.0.2)
 (NM: 255.255.255.0)
 (GW: 192.168.0.1)

B(IP: 192.168.0.1)   (IP: 192.168.1.2)
 (NM: 255.255.255.0) (NM: 255.255.255.0)

C(IP: 192.168.1.1)
 (NM: 255.255.255.0)
 (GW: 192.168.1.1)

You should change the GW of C into 192.168.1.2.
C does not know the route to 192.168.0.2; B does.

>    B is a machine with 2 network cards .
>    At first I enable the /proc/sys/net/ipv4/ip_forward and
> set the default gw 192.168.1.1.
>     Now, A ping B is ok and B ping C is ok. But when A ping C the
> network is unreachable.
>    I don't know why. Please help me.


Gr,
Rob



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-05 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-05 12:04 Why the network is unreable? chenggh04
2006-11-05 18:05 ` Rob Sterenborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.