There is a server which runs dhcpd. Also there are some diskless clients which are booted from the server via network interface. In the dhcpd.conf I have defined:
Code:
group {
filename "pxelinux.0"; # PXE bootloader. Path is relative to /var/lib/tftpboot
option root-path "192.168.1.1:/nfsroot"; # Location of the bootable filesystem on NFS server
host node01 {
fixed-address 192.168.1.2;
hardware ethernet 00:b0:81:f5:19:64;
}
host node02 {
fixed-address 192.168.1.3;
hardware ethernet 00:b0:81:f5:32:49;
}
host node03 {
fixed-address 192.168.1.4;
hardware ethernet 00:b0:81:f5:31:94;
}
host node04 {
fixed-address 192.168.1.5;
hardware ethernet 00:b0:81:f5:32:4c;
}
host node05 {
fixed-address 192.168.1.6;
hardware ethernet 00:b0:81:f5:54:77;
}
server-name "srv1"; # Name of the server. Call it whatever you like.
next-server 192.168.1.1; # Server IP, as above.
}
I have also defined the names in /etc/hosts
Code:
127.0.0.1 localhost.localdomain localhost
192.168.1.1 srv1
192.168.1.2 node01
192.168.1.3 node02
192.168.1.4 node03
192.168.1.5 node04
192.168.1.6 node05
There is no problem with ssh to node01 and node02 and node03. However when I ssh to node04 and node05, their hostnames are not shown.
Code:
mahmood@srv1:~$ ssh node04
mahmood@node04 's password:
Linux orca 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
Last login: Mon Jun 11 15:11:25 2012 from srv1
mahmood@srv1:~$ exit
logout
Connection to node04 closed.
mahmood@srv1:~$
srv1 in orange color should be node04
The same is true about node05. However there is not problem with other nodes. What is the problem and how can I fix that?