[baylisa] Re: wtf: hostid gives '0' as a hostid

David Alban extasia at extasia.org
Wed Feb 13 13:23:18 PST 2008


On Feb 12, 2008 8:34 PM, Rick Moen <rick at linuxmafia.com> wrote:
> $ /sbin/ifconfig
> eth1      Link encap:Ethernet  HWaddr 00:D0:B7:93:31:0E
>           inet addr:198.144.195.186  Bcast:198.144.195.191 Mask:255.255.255.248
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:3620757 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:3959775 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:494644356 (471.7 MiB)  TX bytes:2192414672 (2.0 GiB)
>           Interrupt:11 Base address:0x1080 Memory:fa202000-fa202038

> $ hostid
> 90c6bac3

> bc 1.06

> obase=16
> 198
> C6
> 144
> 90
> 195
> C3
> 186
> BA

interesting.  that means that a host whose primary ip addr is 10.0.0.5
may have the same hostid as lots of other hosts around the world.
good thing we can't get to those other 10.0.0.5 machines...

anyway, this is good.  it means if i can get the first non-localhost
ip address from ifconfig output, i can create my own hostid if the
hostid command on the system is borken.

thanks.

-- 
Live in a world of your own, but always welcome visitors.



More information about the Baylisa mailing list