mattomatto wrote:Hi there,
My router is on 192.168.1.1
I changed my pi ip from dhcp to static in /etc/network interfaces
The problem is that if I give it the IP 192.168.2.2, I can ping it from another machine but I can't ping my router from the pi.
If I give it an address on 192.168.1.x I get "Connect: Network unreachable" when I try to ping.
Check the ip address, netmask & gateway of the other machine. Can you reach the "router" from this other machine? You can use a netmask of 255.255.0.0 but you may wish to check your network. With 192.168.x.x generally you'd use a netmask of 255.255.255.0 so this smells like misconfiguration.