Date: Fri, 11 Jun 1999 15:52:26 -0400 From: Mitch Collinsworth <mkc@Graphics.Cornell.EDU> To: cmpnerds <cmpnerds@enteract.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Dual configuration boot Message-ID: <199906111952.AA114590746@broccoli.graphics.cornell.edu> In-Reply-To: Your message of "Thu, 10 Jun 1999 17:42:55 CDT." <Pine.BSF.4.05.9906101730590.24699-100000@adam.enteract.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>I have a quick question abou a script I'm trying to write. Before I >attempt it let me explain. I'm running freebsd on a laptop. When I'm at >work my ip address is 10.165.64.241 with gateway of 10.165.64.1 and a >netmask of 255.255.255.0. When I'm at home I have an IP# of 10.165.77.68 >a gateway of 10.165.77.65 and a netmask of 255.255.255.248. DNS and >Hostname is the same. I want my default network info to be my work info >and when I'm at home I want to be able to call a script that will >temporarily change my information to match my home network. Is this >possible? I haven't tried it, but it might work. Basic idea would be: ifconfig ... down ifconfig ... up route delete default ... route add default ... If it won't work on a live system then you could twiddle the addresses in /etc/rc.conf just before shutting down at work, so they'll then be there when you boot at home. >Is there a better way of doing this??Any suggestions?? If servers are available at each location, DHCP is the perfect solution. There is a unix client at www.isc.org -Mitch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906111952.AA114590746>