Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #1245

Re: linux as multi-port (subnet) router using Ubuntu 11.10 server

From lincy <lincylin@gmail.com>
Newsgroups comp.os.linux.networking
Subject Re: linux as multi-port (subnet) router using Ubuntu 11.10 server
Date 2012-04-08 09:44 -0700
Organization http://groups.google.com
Message-ID <26518308.9.1333903498341.JavaMail.geo-discussion-forums@pbtd9> (permalink)
References (2 earlier) <13863831.877.1333898763111.JavaMail.geo-discussion-forums@pbjk8> <20292715.691.1333900061222.JavaMail.geo-discussion-forums@pbsy3> <jlsdeu$2s1d$1@saria.nerim.net> <18422322.213.1333902286409.JavaMail.geo-discussion-forums@pbag4> <jlsehl$2sf8$1@saria.nerim.net>

Show all headers | View raw


Pascal Hambourg於 2012年4月9日星期一UTC+8上午12時31分47秒寫道:
> lincy a écrit :
> > 
> > 192.168.2.x/192.168.3.x/192.168.4.x can't ping each other.
> > ex: 192.168.2.x can't ping 192.168.3.x
> > but 192.168.2.a can ping 192.168.2.b, 192.168.3.a can ping 192.168.3.b
> 
> Did you check that /proc/sys/net/ipv4/ip_forward is actually set to 1 ?
> What is the output of "route -n" or "ip route" on the Linux router and
> on a host in each subnet ?
> What is the exact result (output) of the ping commands ?
> What is the output of iptables-save on the Linux router ?

1. yes, It's 1

2. 4 ports router.
Kernel IP routing table
Destination    Gateway        Genmask        Flags   Metric   Ref   Use  Iface
0.0.0.0        192.168.1.254  0.0.0.0        UG      100      0     0    eth0
192.168.2.0    *              255.255.255.0  U       0        0     0    eth1
192.168.3.0    *              255.255.255.0  U       0        0     0    eth2
192.168.4.0    *              255.255.255.0  U       0        0     0    eth3
192.168.1.0    *              255.255.255.0  U       0        0     0    eth0

client machine. (windows)
IP address : 192.168.2.181
netmask : 255.255.255.0
gateway : 192.168.2.1
DHCP server : 192.168.2.1
DNS Server : 192.168.2.1
WINS Server : 192.168.1.1
NetBIOS over tcpip : yes

3.
ping 192.168.3.51
Timeout...
Timeout...
....



4.
# Generated by iptables-save v1.4.10 on Mon Apr  9 00:41:02 2012
*filter
:INPUT ACCEPT [686:74793]
:FORWARD ACCEPT [129:25283]
:OUTPUT ACCEPT [607:68740]
COMMIT
# Completed on Mon Apr  9 00:41:02 2012
# Generated by iptables-save v1.4.10 on Mon Apr  9 00:41:02 2012
*nat
:PREROUTING ACCEPT [55:5548]
:INPUT ACCEPT [41:4300]
:OUTPUT ACCEPT [73:7833]
:POSTROUTING ACCEPT [86:8975]
COMMIT
# Completed on Mon Apr  9 00:41:02 2012
# Generated by iptables-save v1.4.10 on Mon Apr  9 00:41:02 2012
*mangle
:PREROUTING ACCEPT [816:100182]
:INPUT ACCEPT [686:74793]
:FORWARD ACCEPT [129:25283]
:OUTPUT ACCEPT [607:68740]
:POSTROUTING ACCEPT [1002:127527]
COMMIT
# Completed on Mon Apr  9 00:41:02 2012

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-08 05:50 -0700
  Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2012-04-08 17:16 +0300
    Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-08 08:26 -0700
      Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-08 08:47 -0700
        Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-08 18:13 +0200
          Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-08 09:24 -0700
            Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-08 18:31 +0200
              Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-08 09:44 -0700
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-08 19:54 +0200
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-08 17:13 -0700
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-09 10:45 +0200
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-09 06:40 -0700
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-09 21:01 +0200
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-09 12:56 -0700
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-09 23:33 +0200
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2012-04-10 08:55 +0300
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-09 23:40 -0700
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2012-04-10 14:39 +0300
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-10 08:22 -0700
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2012-04-08 21:13 +0300
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2012-04-08 20:48 +0200
                Re: linux as multi-port (subnet) router using Ubuntu 11.10 server lincy <lincylin@gmail.com> - 2012-04-08 17:25 -0700

csiph-web