All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rob Sterenborg" <rob@sterenborg.info>
To: netfilter@lists.netfilter.org
Subject: RE: Why the network is unreable?
Date: Sun, 5 Nov 2006 19:05:25 +0100	[thread overview]
Message-ID: <002901c70104$f8078d90$0101000a@tanjian> (raw)
In-Reply-To: <362728262.14561@st.lzu.edu.cn>

> 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



      reply	other threads:[~2006-11-05 18:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-05 12:04 Why the network is unreable? chenggh04
2006-11-05 18:05 ` Rob Sterenborg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002901c70104$f8078d90$0101000a@tanjian' \
    --to=rob@sterenborg.info \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.