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


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

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 17:25 -0700
Organization http://groups.google.com
Message-ID <7920073.12.1333931157758.JavaMail.geo-discussion-forums@pbtd9> (permalink)
References (4 earlier) <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> <jlskg4$heh$1@dont-email.me>

Show all headers | View raw


> 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.

Yes, I have using dnsmasq in this 4 ports linux box.

here is the conf.

except-interface=eth0      # don't dhcp for 192.168.1.0
dhcp-range=interface:eth1,192.168.2.101,192.168.2.200,255.255.255.0 #the default gw will as eth1 -> 192.168.2.1
dhcp-range=interface:eth2,192.168.3.101,192.168.3.200,255.255.255.0 # the default gw will as eth2 -> 192.168.3.1
dhcp-range=interface:eth3,192.168.4.101,192.168.4.200,255.255.255.0 # the default gw will as eth3 -> 192.168.4.1
dhcp-option=44,192.168.1.1 # Wins point to self (Samba just for WINS Server)


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

192.168.1.0 was dhcp by 192.168.1.254 (firewall). All machine in 192.168.1.0 was default gw to 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?
> 

I will try to setup an linux box as client to try this late.

> 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
> 
> -- 

Chain INPUT (policy ACCEPT 27166 packets, 1905K bytes)
 pkts bytes target     prot opt in     out     source       destination         

Chain FORWARD (policy ACCEPT 17895 packets, 10M bytes)
 pkts bytes target     prot opt in     out     source       destination         

Chain OUTPUT (policy ACCEPT 29452 packets, 5517K bytes)
 pkts bytes target     prot opt in     out     source       destination     

Back to comp.os.linux.networking | Previous | Next — Previous 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