LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Thread Tools
Old 04-23-2005, 10:04 AM   #1
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 12.1, 2.6.24.5
Posts: 184
Thanked: 0
can't ping XP machine using it's netbios name


[Log in to get rid of this advertisement]
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?
hubabuba is offline     Reply With Quote
Old 04-23-2005, 12:18 PM   #2
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71
Thanked: 0
have you put the IP and hostname in the hosts file?
just_dan is offline     Reply With Quote
Old 04-23-2005, 12:20 PM   #3
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Thanked: 1
do u have samba working??

regards
masand is offline     Reply With Quote
Old 04-23-2005, 01:43 PM   #4
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 12.1, 2.6.24.5
Posts: 184
Thanked: 0

Original Poster
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.
hubabuba is offline     Reply With Quote
Old 04-23-2005, 02:00 PM   #5
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Thanked: 1
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
masand is offline     Reply With Quote
Old 04-23-2005, 06:51 PM   #6
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 12.1, 2.6.24.5
Posts: 184
Thanked: 0

Original Poster
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
hubabuba is offline     Reply With Quote
Old 04-23-2005, 11:12 PM   #7
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Thanked: 1
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
masand is offline     Reply With Quote
Old 04-30-2005, 12:13 PM   #8
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 12.1, 2.6.24.5
Posts: 184
Thanked: 0

Original Poster
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 12:16 PM..
hubabuba is offline     Reply With Quote
Old 04-30-2005, 02:38 PM   #9
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 12.1, 2.6.24.5
Posts: 184
Thanked: 0

Original Poster
and /etc/hosts
hubabuba is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 02:48 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration