:: Re: [DNG] Post-install configuratio…
Pàgina inicial
Delete this message
Reply to this message
Autor: Didier Kryn
Data:  
A: dng
Assumpte: Re: [DNG] Post-install configuration questions
Le 08/01/2025 à 04:06, terryc a écrit :
>> 2) How do I specify a fixed IP address.  This is to allow ssh from my
>> other machine, and scp files back and forth.  Ideally, I'd like the
>> /etc/hosts entry to be...
>>
>> 192.168.1.251  dev1.waltdnes.org       dev1
> sudo vi /etc/network/interfaces
>
> change
>
> iface eth0 inet dhcp
>
> to
>
>
> iface eth0 inet static
>
> and add/change
>
>       address 19.168.1.251/16
>       gateway 182.168.1.1  <- or whatever it is.


    It would be easier, I think to configure your DHCP server so that
it always gives the same address to your host, and, give it a name if it
also features a dns server.

    There is another way to reach any host in the local network: dnssd.
Normally you have avahi-daemon installed and it exports you host's name
on the LAN according to the dnssd protocol, under the name
hostname.local, where hostname is the name you have given to your host
(written in /etc/hostname). Therefore you can reach it by 'ssh
hostname.local'

    Note that it seems that systemd has taken the dnssd job in place of
avahi-daemon on systems on which it reigns.

--     Didier