Showing posts with label vi. Show all posts
Showing posts with label vi. Show all posts

Tuesday, May 7, 2013

How to statically assign an IP address in Linux...and keep it after reboot

Whether you're using Fedora version gazillion, Ubuntu 10, or Backtrack, I'm sure you've experienced some issue with setting your network configuration...and ensuring the figures you enter actually stick after a reboot. How annoying is that? It certainly makes you feel like a noob when you can't get your systems to talk because of an IP configuration error.

Well, you're not alone. There are some variances of Linux that do not save the IP configuration you input unless you hard code it into the appropriate networking file. You can set it 'ifconfig eth0 192.168.x.x/24 or go into the GUI of Fedora, but it loses its config after a simple reboot. Here's a simple way to avoid all that mess: