[X4U] 3 network questions

Charles Howse chowse at charter.net
Thu Dec 1 09:38:28 PST 2005


> Question 2, on a windows box I can ping servers called, one, two, and others
> just by typing 'ping one' in the command window. (They are internal servers)
> How do I do this on Mac?

You'll have to edit /etc/hosts to add the ip addresses.
$ man hosts  should tell you everything you need to know.
Mine looks like this:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
192.168.254.4   moe
192.168.254.5   shemp

I added the moe and shemp lines for the other boxes on my lan.

[charles at larry:~]$ ping -c 1 shemp
PING shemp (192.168.254.5): 56 data bytes
64 bytes from 192.168.254.5: icmp_seq=0 ttl=64 time=0.857 ms

--- shemp ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.857/0.857/0.857/0.000 ms
 




More information about the X4U mailing list