Some examples from my current slice:
I have five nodes in my slice:
on rt-2:
xuanliu@rt-2:~$ hostname
rt-2
xuanliu@rt-2:~$ cat /etc/hosts
192.168.5.1 rt-2-lan2 rt-2-2
192.168.1.2 rt-2-stitched0 rt-2-1
192.168.4.1 rt-2-lan1 rt-2-0 rt-2
192.168.5.2 host-2-lan2 host-2-0 host-2
192.168.1.1 rt-1-stitched0 rt-1-1 rt-1
192.168.2.1 rt-1-stitched1 rt-1-0
192.168.2.2 rt-3-stitched1 rt-3-1
192.168.4.2 rt-3-lan1 rt-3-0 rt-3
On rt-3
xuanliu@localhost:~$ cat /etc/hosts
127.0.0.1 localhost localhost loghost
192.168.5.1 rt-2-lan2 rt-2-2
192.168.1.2 rt-2-stitched0 rt-2-1
192.168.4.1 rt-2-lan1 rt-2-0 rt-2
192.168.5.2 host-2-lan2 host-2-0 host-2
192.168.1.1 rt-1-stitched0 rt-1-1
192.168.2.1 rt-1-stitched1 rt-1-0 rt-1
192.168.2.2 rt-3-stitched1 rt-3-1
192.168.4.2 rt-3-lan1 rt-3-0 rt-3
xuanliu@localhost:~$ cat /etc/hostname
localhost
From rt-2, i can ping rt-3 by specifying it's client ID, which is rt-3
xuanliu@rt-2:~$ ping rt-3
PING rt-3-lan1 (192.168.4.2) 56(84) bytes of data.
64 bytes from rt-3-lan1 (192.168.4.2): icmp_req=1 ttl=64 time=0.936 ms
64 bytes from rt-3-lan1 (192.168.4.2): icmp_req=2 ttl=64 time=0.508 ms
^C
So it seems like the rt-3 has been configured at the node, but not written into the hosts file and hostname file.
I'm also attaching my RSpec file for this example.
Thanks,
Xuan