I have a ethernet connection eth0 and a wifi usb connection wlan0 on my raspbian box which both connect to a router with internet.In my etc/network/interfaces file I have a setup that allows me to connect via SSH to my eth0 or wlan0 iface....iface eth0 inet static        address 192.168.1.100        netmask 255.255.255.0        gateway 192.168.1.1...iface wlan0 inet static        address 192.168.1.200        netmask 255.255.255.0...This config is fine and works as expected.However this setup causes conflict with another software that demands each to have iface to be on its own subnet.When I reconfigure my /etc/network/interfaces file like so...iface eth0 inet static        address 192.168.1.100        netmask 255.255.255.0        gateway 192.168.1.1...iface wlan0 inet static        address 192.168.2.200        netmask 255.255.255.0...As wlan0 is now apart of another subnet (192.168. 2 .200) I can no longer connect to it through SSH, I also can not reach it via ping 192.168.2.200 from a Windows Machine.When connected to eth0 through SSH, cmd tcpdump returns...23:05:27.296764 IP 192.168.1.5.49846 > 192.168.1.100.ssh: Flags [.], ack 2284256, win 252, length 023:05:27.297540 IP 192.168.1.100.ssh > 192.168.1.5.49846: Flags [P.], seq 2284256:2284544, ack 17665, win 594, length 28823:05:27.298780 IP 192.168.1.5.49846 > 192.168.1.100.ssh: Flags [.], ack 2284544, win 251, length 023:05:27.299201 IP 192.168.1.100.ssh > 192.168.1.5.49846: Flags [P.], seq 2284544:2284832, ack 17665, win 594, length 28823:05:27.300434 IP 192.168.1.5.49846 > 192.168.1.100.ssh: Flags [.], ack 2284832, win 256, length 023:05:27.301316 IP 192.168.1.100.ssh > 192.168.1.5.49846: Flags [P.], seq 2284832:2285120, ack 17665, win 594, length 28823:05:27.302296 IP 192.168.1.100.ssh > 192.168.1.5.49846: Flags [P.], seq 2285120:2285280, ack 17665, win 594, length 16023:05:27.302712 IP 192.168.1.5.49846 > 192.168.1.100.ssh: Flags [.], ack 2285120, win 255, length 023:05:27.303873 IP 192.168.1.5.49846 > 192.168.1.100.ssh: Flags [.], ack 2285280, win 254, length 0...What I have TriedUpdated /etc/network/interfaces and changed netmask to netmask 255.255.0.0Still the problem remains
How to assign two iface to different subnets?
networking;network interface;subnets