LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-23-2005, 09:04 AM   #1
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Rep: Reputation: 30
can't ping XP machine using it's netbios name


Hi

I can't ping my XP box using its netbios name, neither i can nmblooup it. I'm trying to smbmount XP box share, but it only works when i use its IP address and not its nebios name. Like this: smbmount //192.168.1.34/sharename ..... and it won't work if i use "smbmount //hostname /sharename ...

Can anyone explain why?
 
Old 04-23-2005, 11:18 AM   #2
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Rep: Reputation: 15
have you put the IP and hostname in the hosts file?
 
Old 04-23-2005, 11:20 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
do u have samba working??

regards
 
Old 04-23-2005, 12:43 PM   #4
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
Samba is working, but i did not put the ip and the hostname into the hosts file.
That's probably why it is not working. I will try this and let you know.
 
Old 04-23-2005, 01:00 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
no i do not think u need that

i hope u ahve the workgroup same of that windows

then in add this to ur /etc/resolv.conf

search <workgroup>

regards
 
Old 04-23-2005, 05:51 PM   #6
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
I've tried /etc/hosts and /etc/resolv.conf, but that didn't seem to help.
Then, i found /etc/samba/lmhosts, added ip address and netbios name and that seems to have solved the problem.

Thanks
 
Old 04-23-2005, 10:12 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
i do not ue that file but i have the same workgroup in samba as that in windows and this line at /etc/resolv.conf helps me

search <myhostname>
search <workgroup>

well its good i got to know about another option that u mentioned

regards
 
Old 04-30-2005, 11:13 AM   #8
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
Today I've changed all machines on my LAN to static addresses, not running DHCP server on the router any more. After this I could not mount the shared folder at the XP machine on my linux box. It said that I specified a wrong share name or something. I solved this by entering the IP address and the Host name of the XP machine that has a shared folder, into my resolv.conf. The thing is though, with DHCP i had to put IP and Hostname into the /etc/samba/lmhosts and NOT into /etc/hosts or /etc/resolv.conf. Without the DHCP server (static addressing), it is /etc/resolv.conf and NOT /etc/samba/lmhosts or /etc/hosts.

Last edited by hubabuba; 04-30-2005 at 11:16 AM.
 
Old 04-30-2005, 01:38 PM   #9
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
and /etc/hosts
 
  


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
Cannot ping my Fedora 3 machine Bjorkli Linux - Networking 5 11-14-2005 04:51 AM
RH 7.2 can't ping one XP Pro machine purerory Linux - Networking 7 07-06-2004 02:29 AM
Netbios (cannot ping windows box using machine name) murray_linux Linux - Networking 2 02-02-2004 01:16 PM
cant ping linux netbios with XP g_manO0O0 Linux - Newbie 3 11-28-2002 11:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:36 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