I have Linux Mint Maya running on my home machine. It has a wireless connection using dhcp to my ISP's router. The connection was detected automatically when I installed Maya, and works. The router is pingable on 192.1681.254, and is visible via traceroute google.com. It generally allocates address 192.168.1.65 to the Maya machine.
I have a Raspberry Pi. Initially I connected it via ethernet to the ISP router, and it also worked. I have now connected it to the machine running Maya, using Ethernet. I set the ethernet connection on the Pi to 192.168.2.2, mask /24, gateway 192.168.2.1. I set the ethernet connection on the Maya machine using
ifconfig eth0 192.168.2.1
This allows me to ssh to the Pi, but the configuration is lost when I reboot the Maya machine.
When I ssh to the Pi, I can ping 192.168.2.1 and 192.168.1.65, but nothing else.
I would like to extend the capabilities of the ethernet connection. I cannot find a combination of settings in "Network Connections" in the Control Centre which brings eth0 up automatically on boot, nor which allow the Pi to ping anything more distant.
After some reading around, I saw advice that /etc/sysctl.conf under Maya should have net.ipv4.ip_forward=1 . I have set it, and it remains set after rebooting.
I have read some a few posts here and elsewhere about this type of problem, but I have not been able to find anything that I can understand which obviously solves the problem. Apologies for posting a query which doubtless has an answer somewhere here.