Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-27-2002, 09:25 PM   #1
LQ Newbie
Registered: Nov 2002
Location: milwaukee, USA
Distribution: slackware 9.1
Posts: 11

Rep: Reputation: 0
cant ping linux netbios with XP

redhat 8
samba, swat

Hi, i am new to linux, and i am trying to ween myself off of windows. i have 4 pcs and 2 are converted to linux, i need help getting samba to work. after hours of playing with samba and swat, i am able to ping all pcs and use nmblookup to ping my main xp machine. but i cant do the reverse. windows cant ping the linux box [EARTH]

i have a gateway router, with dhcp, using a ip range. i think part of my problem is i dont understand the

field: interfaces

i tried nothing at all, then wild cards, i know that i could use static ips, but i would rather keep them dynamic. i use a lot of virtual machines and such, and would rather not have to wory about that in the future.

the other thing is im trying to connect to the share via command line: <//> or <//earth/gshare> is that valid. i know the netbios name doesnt work for me, but will the ipaddress work?
Old 11-28-2002, 12:33 AM   #2
Registered: Jan 2002
Posts: 56

Rep: Reputation: 15
As far as being able to PING one of your Linux boxes, samba wont even come into play yet. Check to make sure you have your hostname assigned properly. Look in /etc/hosts and add something like: whatever

whatever being the hostname for your linux computer.

also add an entry for your XP machines... earth

Linux won't broadcast a resolution request like WIndows will so it needs to know the IP.

"Interface" is just your network card.

Once you verify your able to PING use:

mount -t smbfs -o username=USERID,password=YOURPASSWD /mnt/dirname //earth/gshare

... to map a windows share. The IP address will also work the same.

Good Luck!

~ g0dzuki

Last edited by g0dzuki99; 11-28-2002 at 12:39 AM.
Old 11-28-2002, 04:19 AM   #3
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
The file that you need to edit in Windows is the hosts file or the lmhosts file. Not sure where it is located so you might want to use the search or find file program in XP The format is the same as the one given above.

The reason here is that you don't have a WINS server setup (samba can do it). It is sort of a Windows DNS server that collates the NetBIOS names in your network.
Old 11-28-2002, 12:58 PM   #4
LQ Newbie
Registered: Nov 2002
Location: milwaukee, USA
Distribution: slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
Hi guys. and happy Turkey Day!
i can ping both ways, and can map from linux to windows, but still cant map from windows to linux.

so i guess, what do i need to do to get windows to map a folder from linux. i cant see it in network neighboorhood, or map from CMD.

i edited the host file. (for others, its in the <Win_Root>\system32\drivers\etc) had to remove the .SAM ext. the host file has no extension. added the host info for the linux machines. (i didnt add the windows info since it already works.)

i have tried turning off my firewall on linux, im behind a router anyways, but i dont know if it worked. as sugested in other posts, i logged in with gnome and started lockit, turned off firewall. went back in to the util and it looks like it defaulted back to high security. i dont know if my changes where saved, is there anyway to verify they kept?

thanks to all you guys for your help this far. with you guys, i know i can kick this windows habbit

Last edited by g_manO0O0; 11-28-2002 at 01:31 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ping netbios names from linux (samba) HadroLepton Linux - Networking 25 03-23-2016 05:31 PM
Linux and NetBios name resolution essdeeay Linux - Networking 6 11-15-2005 12:10 PM
can't ping XP machine using it's netbios name hubabuba Fedora 8 04-30-2005 02:38 PM
Netbios (cannot ping windows box using machine name) murray_linux Linux - Networking 2 02-02-2004 02:16 PM
NetBios in Linux smallgamevn Linux - Networking 1 11-06-2003 04:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration