On Wed, Sep 16, 2015 at 04:06:50PM -0400, Wayne Sallee wrote:
> On 09/16/2015 03:45 PM, William Harrington wrote:
> >If you are using dhclient, then this may possibly help you by adding this
> >to dhclient.conf:
> >
> >send dhcp-requested-address 192.168.0.111;
> 
> This method sounds good.
> Edit /etc/dhcp/dhclient.conf
> and add the above command.
> 

I do not see that option in the 4.3.2 manpage, although I do see it
in posts from e.g. 2012.

But, within LEASE DECLARATIONS there is a section

       fixed-address ip-address;

       (e.g., 12.34.56.78).


Perhaps also see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=100886

> Anyone know what the typical highest number that can be requested is?
> What if that ip address is already taken?
> Is there a request range or second option?
> 
x.y.z.254 I think.  If you ask and that is taken, I think you will
get nothing, but it probably depends on the particular dhcp server.

For your own network, it is much easier if you control whatever is
providing the addresses (in my case, a hub).  For when you are out
and about, why would you want to ssh in ?  You could have two
versions of dhclient.conf (.home, .away) and use sudo to allow you
to run a script which does ln -sf /etc/hosts /etc/hosts.whichever
when you take the mahine out or come home.  You will also need to
set up wpa_supplicant or whatever else you use, so that you can
connect to other networks.  In theory, that is where NetworkManager
works wonders - but I've had a lot of problems with it on 'buntu in
the past, and have so far not gone beyond connecting to my home wifi
on my netbook (BLFS-7.6, I suspect I am now unlikely to ever take it
anywhere).

ĸen
-- 
Il Porcupino Nil Sodomy Est! (if you will excuse my latatian)
  aka "The hedgehog song"
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to