On Sun, 4 Oct 2020 13:03:39 -0400, Walter Dnes wrote:

>   I decided to get a low-end cable-internet account as backup. 10/1 is
> easily sufficient for 1080p Youtube or 720p Netflix (the max for Google
> Chrome on a PC).  I haven't yet received the TC4400 cable modem, but I
> understand that it only does dhcp.  Let's see if I have this right for
> switching switching my desktop back and forth to/from dhcpd/fixed IP...
> 
> emerge dhcpcd (one time only)
> 
> From fixed to dhcpc
> ===================
> Step 1) Rename /etc/conf.d/net and execute "touch /etc/conf.d/net"
> Step 2) Manually start up dhcpcd service
> Step 3) /etc/init.d/net.eth0 restart
> 
> From dhcpc to fixed
> ===================
> Step 1) Restore original /etc/conf.d/net
> Step 2) Manually kill dhcpcd service
> Step 3) /etc/init.d/net.eth0 restart
> 
>   This could cause problems when I want to transfer files between my
> computers.  Here's part of an example /etc/hosts file...
> 
> 192.168.1.249        i3
> 192.168.1.250      i660
> 192.168.1.251      d531
> 192.168.1.2       thimk
> 
>   If IP addresses are assigned at random, this obviously won't work.
> Any suggestions?

If you have access to the DHCP server on the existing setup, you could
ditch static addresses altogether and set up your server to assign the
addresses you want to use. This avoids any shenanigans when switching
from one connection to another.

Or you could run your own local DHCP server, such as dsnmasq, which
gives you full control however you are connected.I used to run dnsmasq on
my server but this year switched to running Pi-Hole on a Raspberry Pi. It
provides DNS, DHCP (through dnsmasq) and ad blocking all in one place.


-- 
Neil Bothwick

Earlier, I didn't have time to finish anything. This time I w

Attachment: pgp_qHHfenkb8.pgp
Description: OpenPGP digital signature

Reply via email to