When the NetVault GUI or nvconfigurator is presenting the Client Properties for a Linux client, the Network Name and IP Address(es) can display unhelpful information like:
Network Name - localhost.localdomain, localhost
IP Addresses(es) - 127.0.0.1
NetVault determines the Network Name through the gethostname() system call. That name is then resolved to find the IP Address(es). This can be confirmed by running the `hostname -vi` command. For example, with resolve by hosts file only (no dns):
# hostname
localhost.localdomain
# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# hostname -vi
gethostname()='localhost/localdomain'
Resolving 'localhost/localdomain' ...
Result: h_name='localhost/localdomain'
Result: h_aliases='localhost'
Result: h_addr_list=`127.0.0.1`
127.0.0.1
In this example, the hostname is still the default 'localhost, which will then resolves to 127.0.0.1. The Network Name and IP Address(es) will display:
Network Name - localhost.localdomain, localhost
IP Addresses(es) - 127.0.0.1
Ensure that hostname is correctly set and will resolve to the correct IP. For example, with resolve by hosts file only (no dns):
# hostname
quest-centos55
# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.1.2 quest-centos55
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# hostname -vi
gethostname()='quest-centos55'
Resolving 'quest-centos55' ...
Result: h_name='quest-centos55'
Result: h_addr_list=`192.168.1.2`
192.168.1.2
The Network Name and IP Address(es) will display:
Network Name - quest-centos55
IP Addresses(es) - 192.168.1.2