:: Re: [DNG] new freedesktop "standard…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nate Bargmann
Fecha:  
A: dng
Asunto: Re: [DNG] new freedesktop "standard": /etc/machine-id
* On 2019 09 Mar 17:01 -0600, Antoine via Dng wrote:
> It looks to me as if this is indeed the computer's IP address... just the
> loopback one, slightly mangled:
>
> - 127.0.0.1 => 0.127.1.0 i.e. 007f0100
> or
> - 127.0.1.1 => 0.127.1.1 i.e. 007f0101
>
> I tried changing the IPaddress on my loopback interface, but the returned
> hostid didn't change.
>
> What do you think?


pi@aprxpi:~$ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@aprxpi:~$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:8b:f3:1c brd ff:ff:ff:ff:ff:ff
    inet 192.168.25.61/24 brd 192.168.25.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fd5d:beb2:2c86:0:ba27:ebff:fe8b:f31c/64 scope global mngtmpaddr dynamic 
       valid_lft forever preferred_lft forever
    inet6 2001:470:1f0f:9fa:ba27:ebff:fe8b:f31c/64 scope global mngtmpaddr dynamic 
       valid_lft forever preferred_lft forever
    inet6 fe80::ba27:ebff:fe8b:f31c/64 scope link 
       valid_lft forever preferred_lft forever
4: ax0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 512 qdisc pfifo_fast state UNKNOWN group default qlen 10
    link/ax25 9c:60:9c:84:40:40:74 brd a2:a6:a8:40:40:40:00
pi@aprxpi:~$ hostid 
a8c03d19


In this case it appears to be setting the hostid to the IPv4 address of
eth0.

Hmmm.

- Nate

--

"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."

Web: http://www.n0nb.us GPG key: D55A8819 GitHub: N0NB