Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Samba problem - Can not ping
Results 1 to 4 of 4

Thread: Samba problem - Can not ping

  1. #1
    lhvan
    Guest

    Samba problem - Can not ping

    Configuration:
    - Redhat 7.3 as Server, IP address 192.168.1.1
    with Samba 2..2.3a
    - Win98 as Client1, IP address 192.168.1.22


    I can "ping 192.168.1.1" from Win98
    and "ping 192.168.1.22" from Linux - It is OK.
    But I can not "ping Server" from Win98
    and "ping Client" from Linux - Host not found


    Can you help me what is wrong?
    Thanks a lot.

  2. #2
    Bogler
    Guest

    Re:Samba problem - Can not ping

    It depends what you client and server are called.

    From the Linux box if you type ping client the Linux machine will look for a machine called client. If it can't find one it will return an error.

    You can set names in the /etc/sysconfig/network file (i think) someone may know better but you can definately tell the Linix machine to reference clients by name but you have to specify those names alongside a valid ip address so that the machines can talk.

    On the Win side there is a "hosts" file which can be used, i think it is in /win32/system somewhere

    something like this

    ziggy 192,168.1.21

    and then when you type ping ziggy the windows box will know to ping 192.168.1.21

    Hope this helps...

    What distro are you using as the hosts information file probably differs. I'm sure you can set these hosts up in Linux through a gui in kde, basically you are simply giving names to ipaddresses not much different from dns in a way..

    Hope this helps

    Bogler

  3. #3
    Bogler
    Guest

    Re:Samba problem - Can not ping

    I think on the Linux side it is /etc/hosts where you specify your connected machines.

    vi /etc/hosts and then add your hosts to that file.

    I think this should work.. the above /etc/sysconfig reference won't work. There is much interesting config stuff in there however..

    Bogler ;D ;D

  4. #4
    JimH
    Guest

    Re:Samba problem - Can not ping

    Quote Originally Posted by lhvan
    I can "ping 192.168.1.1" from Win98
    and "ping 192.168.1.22" from Linux - It is OK.
    But I can not "ping Server" from Win98
    and "ping Client" from Linux - Host not found


    Can you help me what is wrong?
    As Bogler has said you need to add the entries to /etc/hosts
    example /etc/hosts

    $ cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    192.168.1.2 server.linux.lan server
    192.168.1.3 client.linux.lan client
    192.168.1.254 gateway.linux.lan gateway


    The format of the file is:

    <ipaddress> <FQDN> <alias>

    Jim H

Similar Threads

  1. Problem with Samba, Please help me...
    By Muhammad A. Husain in forum General Chat
    Replies: 1
    Last Post: 10-29-2007, 07:52 PM
  2. Simple question about command syntax ping/log ping results
    By ohalnet in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 07-26-2006, 05:12 PM
  3. Ping reply problem
    By ohalnet in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 07-01-2006, 01:54 AM
  4. Samba Problem
    By turishi007 in forum Linux - General Topics
    Replies: 2
    Last Post: 10-17-2004, 03:32 AM
  5. Samba Problem
    By imported_turishi007 in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 07-20-2004, 06:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •