LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2009, 01:05 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking static IP at home and dynamic on the road


I have a laptop running ubuntu hardy (8.04). When I'm at home, I want to run a static IP address. When I'm walkabout, everything uses DHCP so I want to do that. Also, some of the on-the-road connections are wired instead of wireless.

Q1. How do I config for static in a way that permits
dynamic when I'm traveling?

Q2. What do I use to manage the "network profile" -- use these settings here and those over there -- once I answer Q1 and get the settings in the first place?

Q3. How do I set static name server values that do not get klobbered by DHCP?

~~~ Dan 0;-D
 
Old 01-26-2009, 01:12 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I solved this problem by using "static" dhcp at home. Basically, my router (a WRT54G w/ Sveasoft Alchemy firmware) lets me use DHCP to assign specific addresses based on the MAC address. So at home, in the specific box I enter
Code:
192.168.XXX.XXX  XX:XX:XX:XX:XX:XX  hostname
Then I can just leave my laptop on DHCP all the time, but when I'm at home I get the predefined address and DNS hostname.
 
Old 01-26-2009, 06:41 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking more config details

I have both a linksys and a netgear wifi box.
I'm dashed if I can find where to do this
setting. Please offer more details.

Also, is there any convention for setting a domain
name on an RFC private network? My ISP has its domain name, but I'm not part of its net and cannot hijack some names.
If I have hosts named FRED, WILMA, BARNEY, and BETTY, do I simply ignore the domain part or is their a standard practice like localhost.localdomain or similar?
Can I use some nonsense like "dummy.lan" or whatever?
Does this matter?

~~~ 0;-/
 
Old 01-26-2009, 06:48 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
http://www.dvrplayground.com/article...f-Both-Worlds/

What model routers are you using? Some routers don't have the static DHCP by default and require a third party firmware.

As for the domain and hostname stuff, I just picked a domain name like "dummy.lan". Seeing your names, you could use something like "bedrock.lan" or just "bedrock". It doesn't matter. Your router should be able to deal with both on the local net.

As for Q3, do you mean you want to access your home network from on the road? If so, you need to look into dynamic DNS. Many routers with 3rd party firmware are setup to use this service.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Seeking advice on domain registration with dynamic IP satimis General 3 10-29-2007 05:46 AM
Home Network with mixed static ip and dynamic ip clients using linksys wrt54gs router ghostrider.002 Linux - Networking 6 05-14-2007 01:01 PM
Dynamic IP to Static Temujin_12 *BSD 2 06-10-2005 04:58 PM
Static vs Dynamic Big Al Linux - Networking 2 12-08-2003 03:10 PM
NS with static or dynamic IP cijunet Linux - Networking 3 05-08-2003 11:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration