eth0 address and hostname
Hi,
I am having some issues with my eth0 settings and my system hostname. My network IP address does not seem to equal the address i define in /etc/network/interfaces: Quote:
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.6
netmask 255.255.255.0
gateway 192.168.0.9
Above are the settings i want to have assigned however below is what is output from ifconfig Quote:
spirit:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:13:D4:2B:EB:F7
inet addr:169.254.102.165 Bcast:0.0.0.0 Mask:255.255.0.0
Clearly something is not right here but also, if i call http://192.168.0.6 from my browser i get the apache homepage of the same machine with no problems. phpsysinfo reports the correct IP but at the same time ifconfig reports a completely different one.
Any thoughts? I am slightly confused :)
(While on the subject, phpsysinfo reports my hostname as "localhost.localdomain" but every referance to a hostname i have have ever seen has been changed to "spirit". How can i find out where i have missed the setting?)