Page 1 of 1

Change default static IP

Posted: Tue Feb 16, 2016 9:12 pm
by apl4
I am trying to change the static IP address of my RPI. My home network is set up with a different subnet to the defaul RPI of 192.168.0.252.

I can connect using SSH by changing the ip of my laptop, but when I try to enter any sudo command, I get the message

root@raspberry-pi:~# sudo cp /etc/network/interfaces /etc/network/interfaces.backup
-bash: sudo: command not found

Also, because I can't get the network address changed, I can't run an apt-get update command.

Re: Change default static IP

Posted: Wed Feb 17, 2016 7:45 am
by janosvitok
If you are root, there's no point of running sudo.
Just run the command without the sudo prefix

Re: Change default static IP

Posted: Wed Feb 17, 2016 11:03 am
by CTM Tom
As Jan/ said,

You are the 'root' user which means you have all the permissions that you would need. I will also point out that the IP can be changed on the web interface as well under system configuration :)

Re: Change default static IP

Posted: Wed Mar 09, 2016 2:20 pm
by bodex
hi,

is there a change to log in as pi ?

I although want to change the IP of my Pi but I´ve no access to the Webinterface 192.168.0.252:9999.


I´m using the newest Release.

Maybe somebody can help me.

bodex