Announcement

Collapse
No announcement yet.

Ping command, syntax or network setup problem?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Ping command, syntax or network setup problem?

    On the advise of Unicornrider, I have starte dot read through the Samba handbook, and particularly The Samba Checklist
    http://us1.samba.org/samba/docs/man/...diagnosis.html

    Now I try to ping other machines on the network, and I can ping them all XP to linux, linux to XP, but only using the IP address

    neil@Feisty:~$ ping 192.168.1.11
    PING 192.168.1.11 (192.168.1.11) 56(84) bytes of data.
    64 bytes from 192.168.1.11: icmp_seq=1 ttl=64 time=32.9 ms
    64 bytes from 192.168.1.11: icmp_seq=2 ttl=64 time=0.931 ms
    64 bytes from 192.168.1.11: icmp_seq=3 ttl=64 time=0.914 ms

    --- 192.168.1.11 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2006ms
    rtt min/avg/max/mdev = 0.914/11.614/32.999/15.121 ms

    If I try using the computer name it does not work

    neil@Feisty:~$ ping npsony
    ping: unknown host npsony

    Is this a syntax error on my part or DNS config error somewhere

    Is there a config file somewhere that I need to setup to point pc names to IP addresses?


    Thanks

    Neil

    #2
    Re: Ping command, syntax or network setup problem?

    Originally posted by Neil P
    Is there a config file somewhere that I need to setup to point pc names to IP addresses?
    In short: /etc/hosts - exemplified:

    Code:
    ROOT@FREYJA # more /etc/hosts
    # //FREYJA/etc/hosts
    127.0.0.1    localhost loopback
    192.168.110.1  FREYJA FREYJA.FAMILY
    192.168.110.2  MAHAB MAHAB.FAMILY
    192.168.110.11 VICI VICI.FAMILY
    192.168.110.12 LOREENA LOREENA.FAMILY
    192.168.110.21 MARLA MARLA.FAMILY
    192.168.110.31 FELIX FELIX.FAMILY

    Comment


      #3
      Re: Ping command, syntax or network setup problem?

      OK that has sort of done it
      I can now ping all xp boxes and the linux box back to itself using both pcnames and ip address

      From the windows boxes I can now ping the other windows box using the pc name or IP address, but still not the linux box. that still only works with IP address.

      Tried to create a Lmhosts file on the windows box but that did not seem to help. How does this hosts lookup work? should each pc have its own hosts file? or do all machines look to one machine (WINS machine, in this case the linux box) to resolve names to ip addresses?

      Just this minute booted the linux box up off a Ubuntu live cd , and a warning window has poped up saying

      Network discovery disabled
      Yout current network has a .local domain which is not recommended and incompatible with the Avahi network discovery service. This service has been disabled.

      This domain the message refers to. Is that the DHCP server on the router? and is this cause of all the problems, should I stop DHCP totally. At the moment it is set so that all my machines have MAC address to IP binding enabled so they keep their individual IP ads


      Comment


        #4
        Re: Ping command, syntax or network setup problem?

        Originally posted by Neil P
        From the windows boxes I can now ping the other windows box using the pc name or IP address, but still not the linux box.
        Does the Windoze "workgroup" match up with the Samba "workgroup" (and the Linux "domain", respectively)?

        Comment


          #5
          Re: Ping command, syntax or network setup problem?

          Workgroups match, yes,
          Do not know about the domain though. Will that be in the hosts file also?
          Am doing this on on the phone browser at the moment, so cant check the machines

          Comment


            #6
            Re: Ping command, syntax or network setup problem?

            Originally posted by Neil P
            should I stop DHCP totally
            Good question ... as a matter of fact (not to be mistaken for an answer), I've stopped using DHCP as well as Avahi et al. (with the latter one being a DNS daemon of sorts) a long time ago ...

            What, however, might make a difference: sudo /etc/init.d/avahi-daemon stop (thus temorarily disabling the daemon).

            Comment


              #7
              Re: Ping command, syntax or network setup problem?

              OK, I'll try that.

              I am installing two or three different distros on spare HDD's at the moment, with quick release drive bay on front of PC. Just ran 6.06 Ubuntu on live CD, it saw all the network PC's fine, from first run, no config needed.

              With the first Feisty 7.04 install that I have mainly been using, I now have full file sharing, both ways.

              Thanks for your help.

              Next is a mount problem, so KPhotoAlbum can see the shared files across the network. It cant see Samba shares directly and I have been told that they needed to be mounted to a local folder.
              Going to see if I can do it myself first though



              Comment

              Working...
              X