im running a debian 9 server with 2 nic, so kids have their own lan. so far so good, but i cant route properly to receive a connection on nic2
interfaces:
forwarding is on# The primary network interface
allow-hotplug enp2s0
iface enp2s0 inet static
address 192.168.178.111
netmask 255.255.255.0
gateway 192.168.178.1
dns-nameservers 192.168.178.1
allow-hotplug enp1s0
iface enp1s0 inet static
address 192.168.1.1
netmask 255.255.255.0
route setecho '1' > /proc/sys/net/ipv4/ip_forward
dnsmasq configured on correct dhcp range.route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.178.1 enp2s0
when plugging in device on enp1s0, i got an ip (192.168.1.171) but no connection. internet fails, ping on gateway or enp2s0 also fails.dhcp-range=enp1s0,192.168.1.150,192.168.1.175,72h
route
any idea where i missed the point?0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 enp2s0
192.168.1.0 192.168.178.1 255.255.255.0 UG 0 0 0 enp2s0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s0
thx