Re: switching between dynamic and static IP on wifi laptop?



On 27 Jun 2006 10:56:54 -0700, idiotprogrammer wrote:
Hi, I'm using a laptop to develop a test a web application. That
involves running a private web server (apache/zope).

I have a laptop that runs Linux FC 5. I can configure a static IP for
my wireless NAT at my apartment. However, on the road, I don't know
DNS or gateway information, so it's easier to use DHCP. That sounds
like a problem. It seems to be easier to configure and run my
application with a static IP address.

I envision two scenarios: I want to demonstrate my web application on a
private network or at a conference. Another scenario is working at my
parents' house (where they have a wifi NAT I set up).

In Fedora 5, I'm having problems switching back and forth. For one
thing, at my parents' house, they have a different ISP and have
different DNS entries. At a public wifi network, I have to assume that
DHCP is the default option. (btw, I've had difficulties on FC 5
switching between dynamic and static network configurations).

If I am in a DHCP network, what can I do to simulate a static IP for
the purpose of development/testing?

When I am at my parents' house, I can probably use a static IP, but I
can't connect until I know the DNS servers of my parent's ISP. I'm
assuming I can hardcode the DNS entries on my parents' router. But if
my parents' ISP uses DHCP to assign them a dynamic IP, can I do some
sort of command to figure out what DNS server settings to make when I'm
at their house?

Finally, generally, can I configure apache webserver in a private NAT
with only a host name? How?

Are you aware that you can set up different network "profiles" in the
network configuration tool? For example, set up profiles for various
static IP addresses as desired, and a further "dynamic" profile that
uses dhcp. You can then set up grub boot entries with netprofile kernel
parameters and so boot into whichever profile is appropriate.

As for the web server problems, all I can think of is to use a dynamic
name service such as dyndns.org or zoneedit.com with a client such as
ddclient.

Bob T.
.



Relevant Pages

  • Re: No network when using a static adderss.
    ... Well, we need this machine to replace a web server, so DHCP is not an ... >> process went as planned, however, I cannot connect to the network. ... >> change the connection type from static to DHCP, ...
    (comp.os.linux.networking)
  • Re: No network when using a static adderss.
    ... Well, we need this machine to replace a web server, so DHCP is not an ... >> process went as planned, however, I cannot connect to the network. ... >> change the connection type from static to DHCP, ...
    (comp.os.linux.misc)
  • Routing Configuration with Windows Server 2003
    ... I have a network with two servers. ... The first server is a PDC and also ... It provides DHCP, DNS, etc. for the ... web server visible on IP address X.X.X.81? ...
    (microsoft.public.windows.server.networking)
  • Re: Security risks when running IIS without static ip as localhost
    ... > access this web server, it is purely for developing asp pages which will ... > network to a security risk. ... For example, one vector of compromise is someone receives, say, a worm email ...
    (microsoft.public.inetserver.iis.security)
  • Re: How vulnerable server will become if placed on DMZ ?
    ... >> I have a type of Web Server. ... > protect your internal network from a compromised web server. ... A DMZ can ... > network as compared to what you probably have now, a single firewall. ...
    (microsoft.public.win2000.security)