LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-27-2002, 08:25 PM   #1
g_manO0O0
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 192.168.0.1-50 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: <//192.168.0.150/gshare> or <//earth/gshare> is that valid. i know the netbios name doesnt work for me, but will the ipaddress work?
 
Old 11-27-2002, 11:33 PM   #2
g0dzuki99
Member
 
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:

192.168.0.1 whatever

whatever being the hostname for your linux computer.

also add an entry for your XP machines...

192.168.0.2 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-27-2002 at 11:39 PM.
 
Old 11-28-2002, 03:19 AM   #3
born4linux
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, 11:58 AM   #4
g_manO0O0
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 12:31 PM.
 
  


Reply



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 04:31 PM
Linux and NetBios name resolution essdeeay Linux - Networking 6 11-15-2005 11:10 AM
can't ping XP machine using it's netbios name hubabuba Fedora 8 04-30-2005 01:38 PM
Netbios (cannot ping windows box using machine name) murray_linux Linux - Networking 2 02-02-2004 01:16 PM
NetBios in Linux smallgamevn Linux - Networking 1 11-06-2003 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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