Setting Fixed IP

Raspberry Pi

Over the years I've dbeen playing with Raspberry Pi's ut only recently started to document what I have done or know.

Changes required to set Fixed IP

 

A fixed IP on either the wifi or ethernet port even both is possible so you know where the device is at all times.

Gain access to Root with the SU command and the run "nmtui"

This will give you access to the change device on the RPI. So set the system Hostname if you wish to something you like. To enable the Fixed IP on the ethernet click the

"Edit a connection" tab. You may have to highlight the tab and then use the tab key to move to

"OK". In the next page the choice of ethernet or wifi is chosen. For the wifi choose only the one you wish to connect to. Tab to "Edit".

Now the fun begins. Tab down to the

"IPv4 CONFIGURATION" and change it from

"Automatic" to "Manual" Next move to addresses and

"Add where you insert the IP address you want to be fixed to. Next add the

*Gateway" which is the IP address of the modem / router you are using (probably something like 192.168.1.254).

Next you "add DNS server", a choice of your router DNS or use Google 8.8.8.8 and or 8.8.4.4 if not sure.

Now move to the end of the page and go to the "OK" tab if you cant then something is wrong. After you hit OK step down the menu to Back

and then "Quit" and tab to "OK". After exit to make the connection live the system need to be rebooted use "reboot".


You can do the other port separately or at the same time but they should not use the same IP address or you will get clashes.