Route table set up

Amilkar Sanz

Honorable
Sep 22, 2013
2
0
10,510
Hi everyone,

i'm new setting up a small network office, and I have a problem with the configuration of the net.

This its the sch.

I have a server with two NIC, one for external (building floor) net and another for the office net.

I have the external NIC (eth1) with IP=172.19.2.1/16 conect to a router with IP=172.19.1.1 on the floor. The route is the GW for the entire floor.

I try to create a private net for the office on the internal NIC (eth0) with IP=192.168.10.1/24.

/etc/network/interface look like this

auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0
broadcast 192.168.10.255

auto eth1
iface eth1 inet static
address 172.19.2.1
netmask 255.255.0.0
broadcast 172.19.255.255
gateway 172.19.1.1

Routing Table settings look like this
192.168.10.0 * 255.255.255.0 eth0
172,19.0.0 * 255.255.0.0 eth1
0.0.0.0 172.19.1.1 255.255.0.0 eth1

my lapt NIC have this config IP=192.168.10.11 GW 192.168.10.1

from the server i see 172.19.1.1 and 172.16.1.3 (dns server) that is found behind 172.19.1.1 (floor router) (** i also see www.google.com **)

from my lapt i can see both NIC on server, 192.168.10.1 (internal) and 172.19.2.1 (external)

but, from my lapt i cant see 172.16.1.3 (and www.google.com)...

if my server see 172.16.1.3 (and www.google.com) the route table is correct, so, my lapt must see 172.16.1.3, but not, so i don't undertands what i do wrong..

Please, can anybody help !

Thanks

 
Your server is just that a server it is edge device it will only handle packet for itself. It is not a router.

You might be able to get this to work with ICS but I would see if your router has the ability to run multiple vlans. You may also be able to load dd-wrt on the router and that does support multiple vlans.
 

Amilkar Sanz

Honorable
Sep 22, 2013
2
0
10,510


Hi, thank for your reply.

the server is Debian server, with ip_forward activated (ip_forward=1), so it is forwarding between the two NIC's.. I have done this before, but not with this configurations (mask, subnet, etc).

i'm sorry if I not express myself well, the router its a switch, to conect the diferent LAN on the floor (diferents and separate office) to the main router of the building.