Personal computing discussed

Moderators: SecretSquirrel, notfred

 
PhilipMcc
Gold subscriber
Gerbil First Class
Topic Author
Posts: 128
Joined: Thu Feb 05, 2009 10:15 am
Location: Pittsburgh

Hard code internal IP

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.
 
GodsMadClown
Gerbil First Class
Posts: 121
Joined: Thu Feb 27, 2003 10:02 am

Re: Hard code internal IP

Tue Nov 05, 2013 8:53 pm

The easiest is to config a static dhcp lease for your machine's mac address.
 
Captain Ned
Gold subscriber
Global Moderator
Posts: 24081
Joined: Wed Jan 16, 2002 7:00 pm
Location: Vermont, USA

Re: Hard code internal IP

Tue Nov 05, 2013 9:01 pm

Yeah, much easier to do from the router side.
And then of course I've got this terrible pain in all the diodes down my left hand side.
 
PhilipMcc
Gold subscriber
Gerbil First Class
Topic Author
Posts: 128
Joined: Thu Feb 05, 2009 10:15 am
Location: Pittsburgh

Re: Hard code internal IP

Wed Nov 06, 2013 8:14 am

Got it - thanks!
 
Flatland_Spider
Graphmaster Gerbil
Posts: 1324
Joined: Mon Sep 13, 2004 8:33 pm

Re: Hard code internal IP

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
 
just brew it!
Gold subscriber
Administrator
Posts: 44644
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: Hard code internal IP

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

Who is online

Users browsing this forum: No registered users and 1 guest