I have PC with two interfaces eth0 and wlan0. I set two different networks, on eth0 192.168.0.0, and on wlan0 192.168.1.0. I also configure DHCP server (isc-dhcp-server) and it works fine. When I connect via cable I got an address from 192.168.0.0 network (eg. 192.168.0.2), and when I connect via wifi I got an address from wlan0 network.
I want to connect one device (e.g. X) on the ethernet and another (e.g. Y) on wifi at the same time and have possibility to ping from device X the device Y.
I disable firewall by typing ufw disable
, and I enable ip4 forward, but it doesn't help.
How can I ping device X from device Y?