i think that the udhcpc command in network.sh does not send hostname in the lease request, so it's not possible to ping a slitaz machine by name but only by ip address (at least in my network where server runs dnsmasq).
the fix would be to add the correct option to the udhcpc command:
--- /etc/init.d/network.sh
+++ /home/fabio/network.sh
@@ -152,7 +152,8 @@
wpa
else # fallback on udhcpc: wep, eth
/sbin/udhcpc -b -T 1 -A 12 -i $INTERFACE -p \
- /var/run/udhcpc.$INTERFACE.pid
+ /var/run/udhcpc.$INTERFACE.pid \
+ -x hostname:"$(hostname)"
fi
fi
}
it wouldn't work in 4.0, it would be -h $(hostname)
ping results and arp table in my server, first and after the mod, being slitvaio already modded:
root@nano:/home/fabio# ping slitazserver
ping: unknown host slitazserver
root@nano:/home/fabio# arp
Address HWtype HWaddress Flags Mask Iface
Aspi ether c8:9c:dc:bf:59:5f C eth0
192.168.1.1 ether 1c:bd:b9:81:cc:c0 C eth1
192.168.0.129 ether 08:00:27:1d:83:1c C eth0
slitvaio ether 54:42:49:a2:22:ff C eth0
root@nano:/home/fabio# arp
Address HWtype HWaddress Flags Mask Iface
Aspi ether c8:9c:dc:bf:59:5f C eth0
192.168.1.1 ether 1c:bd:b9:81:cc:c0 C eth1
slitazserver ether 08:00:27:1d:83:1c C eth0
slitvaio ether 54:42:49:a2:22:ff C eth0
root@nano:/home/fabio# ping slitazserver
PING slitazserver (192.168.0.129) 56(84) bytes of data.
64 bytes from slitazserver (192.168.0.129): icmp_req=1 ttl=64 time=4.14 ms
64 bytes from slitazserver (192.168.0.129): icmp_req=2 ttl=64 time=0.549 ms
64 bytes from slitazserver (192.168.0.129): icmp_req=3 ttl=64 time=0.501 ms
^C
--- slitazserver ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.501/1.732/4.147/1.707 ms
i don't think that this could break something and it's useful in a simple slitaz pc network.
could it be pushed?
thanks