Hard code internal IP

Where Penguins and Daemons chill together in the warmth of the Sun.

Moderators: SecretSquirrel, notfred

Hard code internal IP

Postposted on Tue Nov 05, 2013 8:37 pm

Should I / how do I hard code an internal IP? I have a Ubuntu box that runs headless, is used for backups, and folding. During October, there was a power outage after which I could not sign in to x.x.0.194. I connected a keyboard and monitor and got folding for Frankie running. Today, by accident, I ran ifconfig and see x.x.0.193. Making that edit in my putty profile lets me sign in again.

Appreciate your help.
PhilipMcc
Gerbil First Class
Gold subscriber
 
 
Posts: 125
Joined: Thu Feb 05, 2009 10:15 am
Location: Pittsburgh

Re: Hard code internal IP

Postposted on Tue Nov 05, 2013 8:53 pm

The easiest is to config a static dhcp lease for your machine's mac address.
GodsMadClown
Gerbil First Class
 
Posts: 121
Joined: Thu Feb 27, 2003 10:02 am

Re: Hard code internal IP

Postposted on Tue Nov 05, 2013 9:01 pm

Yeah, much easier to do from the router side.
I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.
Captain Ned
Global Moderator
Gold subscriber
 
 
Posts: 23123
Joined: Wed Jan 16, 2002 7:00 pm
Location: Vermont, USA

Re: Hard code internal IP

Postposted on Wed Nov 06, 2013 8:14 am

Got it - thanks!
PhilipMcc
Gerbil First Class
Gold subscriber
 
 
Posts: 125
Joined: Thu Feb 05, 2009 10:15 am
Location: Pittsburgh

Re: Hard code internal IP

Postposted on Wed Nov 06, 2013 8:44 am

For completeness, I've included a link to an article detailing how to switch Ubuntu to a static IP from a DHCP address.

Howto: Ubuntu Linux convert DHCP network configuration to static IP configuration
http://www.cyberciti.biz/tips/howto-ubu ... ation.html
Flatland_Spider
Graphmaster Gerbil
 
Posts: 1324
Joined: Mon Sep 13, 2004 8:33 pm

Re: Hard code internal IP

Postposted on Wed Nov 06, 2013 9:24 am

Flatland_Spider wrote:For completeness, I've included a link to an article detailing how to switch Ubuntu to a static IP from a DHCP address.

Howto: Ubuntu Linux convert DHCP network configuration to static IP configuration
http://www.cyberciti.biz/tips/howto-ubu ... ation.html

If this was originally a desktop installation you will also want to remove the network-manager service; if you don't it will do stuff behind your back like overwriting your manually created resolv.conf. Network-manager is great for laptops where the system is frequently moved around to different networks. On a server (or arguably, even a desktop) it is generally more trouble than it is worth.
The years just pass like trains. I wave, but they don't slow down.
-- Steven Wilson
just brew it!
Administrator
Gold subscriber
 
 
Posts: 42982
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer


Return to Linux, Unix, and Assorted Madness

Who is online

Users browsing this forum: No registered users and 4 guests