How to set a static IP Address in Linux

Subscribers:
144
Published on ● Video Link: https://www.youtube.com/watch?v=pljl_lyHQso



Category:
Guide
Duration: 4:29
66,959 views
121


Here is a quick tutorial video on how to set up a static IP address in Linux. I assume that you have not changed any of your IP address settings in your modem/router, but if you have you'll get the information you need from ifconfig. I know there are a couple other ways to do this, but this seems the simplest to me.

I do zoom in on the video, so you won't need to worry if you can't, or don't, want to watch this in high definition.

A few errors I made in the video
1. I declared eth1 as the adapter to give a static address. If you only have one NIC in your machine, it will be eth0.
2. The command I gave to restart networking should have been $ sudo /etc/init.d/networking restart.







Tags:
Linux
IP
address
DHCP
ifconfig
Howto