Perry Hoekstra wrote:
> 
> Greet the sun all,
> 
> I have a laptop I setup to get an TCP/IP address through a DHCP server
> when logged in at work.  How would I assignsubnet 192.168.0.0 netmask 255.255.255.0
> up the laptop when I am at home or when I plug into a static IP
> network?  Right now, I went to look at the networks file within the
> /etc/init.d but it did not exist.  Does anybody have this type of
> problem/configuration?  Is there an easy configuration answer or must I
> create some type of script that detects the presence of a DHCP server?

Best bet is to just set up a DHCP server at home. Personally, I use
192.168.0.x, 1-99 of x being reserved for static IPs, including DHCP
configured static IPs, 100-199 is used for DHCP, and 200-254 will be
used for PPP when I start messing with it...

This is what my dhcpd.conf looks like:

subnet 192.168.0.0 netmask 255.255.255.0
{
        range 192.168.0.100 192.168.0.199;
        default-lease-time 259200;
        max-lease-time 259200;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.0.255;
        option routers 192.168.0.1;
        option domain-name "local";
        option domain-name-servers 192.168.0.1;
        host bigtime
        {
                hardware ethernet 00:a0:cc:24:d3:d4;
                fixed-address bigtime.local;
        }
        host blipvert
        {
                hardware ethernet 00:20:AF:50:15:79;
                fixed-address blipvert.local;
        }
}

bigtime (my workstation) and blipvert (web server) get fixed addresses,
which is looked up on DNS. You'll have to put IPs there if you don't
have your own TLD set up. ;)

---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org