Set A Static IP On Linux

The interfaces file is where you need to change from the default “dhcp” setting to add some information about the “static” IP address that you want to configure.

Edit the /network/interfaces file

~$ sudo nano /etc/network/interfaces

sudo nano /etc/network/interfaces


Then reboot the computer or run the below command

~$ sudo /etc/init.d/networking restart

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.