Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.