Next, try to ping
localhost on the Samba server.
localhost is the conventional hostname for the 127.0.0.1 loopback, and it should resolve to that address. After typing
ping
localhost, you should see output similar to the following:
server% ping localhost
PING localhost: 56 data bytes 64 bytes from localhost (127.0.0.1):
icmp-seq=0. time=0. ms 64 bytes from localhost (127.0.0.1):
icmp-seq=1. time=0. ms 64 bytes from localhost (127.0.0.1):
icmp-seq=2. time=0. ms ^C
If this succeeds, try the same test on the client. Otherwise:
-
If you get "unknown host: localhost," there is a problem resolving the host name localhost into a valid IP address. (This may be as simple as a missing entry in a local
hosts file.) From here, skip down to the section
Section 9.2.8, Troubleshooting Name Services."
-
If you get "ping: no answer," or "100% packet loss," but pinging 127.0.0.1 worked, then name services is resolving to an address, but it isn't the correct one. Check the file or database (typically
/etc/hosts on a Unix system) that the name service is using to resolve addresses to ensure that the entry is corrected.