How to set a static IP address in Linux

HomeNews, Other Content, TechHow to set a static IP address in Linux
How to set a static IP address in Linux
How to set a static IP address in Linux
Here's a quick video tutorial on how to configure a static IP address in Linux. I'm assuming you haven't 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 several other ways to do this, but this seems the simplest to me.

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

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

Please take the opportunity to connect and share this video with your friends and family if you find it useful.

No Comments

Leave a Reply

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