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


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

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

From Tauno Voipio <tauno.voipio@notused.fi.invalid>
Newsgroups comp.os.linux.networking
Subject Re: linux as multi-port (subnet) router using Ubuntu 11.10 server
Date 2012-04-08 21:13 +0300
Organization A noiseless patient Spider
Message-ID <jlskg4$heh$1@dont-email.me> (permalink)
References (3 earlier) <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> <26518308.9.1333903498341.JavaMail.geo-discussion-forums@pbtd9>

Show all headers | View raw


On 8.4.12 7:44 , lincy wrote:
> 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
>

Point 2.

There is a DHCP server mentioned. Do you run DHCP in the network?

If you do, the proper location for the server is the Linux machine.
In other cases, you'll need a DHCP relay in the Linux machine.

The setup means that machines in 192.168.2.x network must have
192.168.2.1 as the default gateway, and similarly for networks
192.168.3.x and 192.168.4.x. The gateway must always be in the
same local network as the client.

For clients in the 192.168.1.x network it is different: the
default gateway must be 192.168.1.254.

IIRC, the WINS name server should be also in the local network.

Point 3.

Weird - if there is not a 'security' module in Windows blocking
the show. Can you test with a Linux laptop in the subnet?

As Pascal said, tcpdump or - still better - Wireshark is your
friend here.

Point 4.

A better listing is available from iptables:

   iptables -n -v -L

-- 

Tauno Voipio

PS. Thanks, Pascal.

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