Hola! Estoy intentado unir dos redes mediante un debian, pero no acabo de conseguirlo. El esquema es el siguiente...
Red A - 192.168.1.X
Red B - 192.168.0.X
Adicionalmente, mi equipo tiene la ip 192.168.0.5 y el router de internet es 192.168.1.1
La configuración del debian es la siguiente...
root@hades:~# cat /etc/network/interfaces# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).# The loopback network interfaceauto loiface lo inet loopback# The primary network interfaceauto eth1iface eth1 inet staticaddress 192.168.1.4netmask 255.255.255.0# The primary network interfaceauto eth0iface eth0 inet staticaddress 192.168.0.1netmask 255.255.255.0
root@hades:~# cat /proc/sys/net/ipv4/ip_forward1
Con esta configuración he intentado realizar un ping al router desde mi maquina y no llega :( ¿que puede estar pasando? ¿como se podría solucionar?
El siguiente paso será añadir el ruteo para la salida a internet...
route add default gateway 192.168.1.1
Sería correcto? Se podría meter esta linea en /etc/network/interfaces?