LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-14-2004, 08:23 AM   #1
danielgrenyer
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
Angry Cannot resolve local addresses on local network


Hi

I'm having problems with browsing with Samba not always working reliably on my Mandrake 9.1 PC. I can typically browse my local SMB network okayish, and see my Linux PC (it also runs SAMBA server), and other Windows PC on my LAN, but frequently when looking for shared directories in these PCs (I use Konqueror by the way) it frequently hangs, or shows no shared directories when I know there are shared direcories / files. Other times I can find directories / files, but I have not thus far been able to copy / load a file of any significant size (over 5k).

I have also had problems sharing SMB printers. Having put in the parameters, I try printing a test page, it gets to about 6% and then says that it has lost the connection.

Looking at a Samba troubleshooting guide it first suggested checking the unerlying network settings, firstly ensuring that you can ping other PCs on the LAN. When I tried this I found I could not. I can connect to the internet, ping external addresses such as google, but for internal addresses I get unknown host error.

My network uses DHCP (served by a windows 2K PC, which also acts as the router into the internet), and so I cannot add IPs and hostnames to my hosts file, as the IP addresses wil change. (won't they!!?!)

So my two questions are,
how do I configure my LAN connectoin in Linux so I can resolve dynamic DHCP assigned IPs?
and
is this likely to the cause of my problem with SAMBA / CUPS SMB printing?

Any ideas would be appreciated - this one's driving my nuts!

Thanks in advance.
 
Old 01-14-2004, 08:26 AM   #2
danielgrenyer
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Clarification

Sorry, having just read through my post, by way of clarification, I can ping computers on my LAN by IP address (e.g. 192.168.0.1 - my router win2k pc), but not by name (e.g. PC1 - the name of my router win2k pc)
 
Old 01-14-2004, 09:01 AM   #3
kmokrzcyki
LQ Newbie
 
Registered: Jan 2004
Posts: 15

Rep: Reputation: 0
Hello!
I have the same problem with browsing my DHCP addressing network.
If you find solution email me please. moczu@o2.pl
or give me response on my thread >>>>>> Samba problems with DHCP
 
Old 01-14-2004, 09:21 AM   #4
gurdib
Member
 
Registered: Jan 2004
Posts: 33

Rep: Reputation: 15
Hi, your router should be able to allow "address reservation" which means even though it is DHCP you can associate (hard-code) Ip addresses with MAC addresses. This will allow you name resolution. HOWEVER, from what you seem to be describing, name resolution might not be your problem. Can you browse your samba shares using IP addresses without problems? Or...?

G.
 
Old 01-14-2004, 10:31 AM   #5
danielgrenyer
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the swift response.

My router is currently a windows 2000 PC with an ADSL modem attached - I guess this isn't the forum for asking how to fix DHCP IP addresses on Microsoft products!!

Have jusr re-installed Samba and changed the basics in the smb.conf configuration file (Netbios name, Workgroup, allowed browsing on home directories). Have also rebooted my win2k router / PC.

In Konqueror I can now see the workgroup, see both PCs in the workgroup (Linux1, and PC1 (my windows PC). Double clicking on PC1 shows my shared directory (no access restriction set) either gives no files, or on clicking refresh makes konqueror "hang" - the rotating cog logo in the top right corner has now been spinning for ten minutes, meaning I guess that it has not completed the transaction.

Have tried the same using IP addresses instead of names as you suggested, and you're right - it makes no difference, so I guess the name resolving is not the problem.

Any other ideas as to what the problem may be?
 
Old 01-14-2004, 10:39 AM   #6
gurdib
Member
 
Registered: Jan 2004
Posts: 33

Rep: Reputation: 15
What does /sbin/iptables -L say?

Debugging samba problems can be as complicated as you want or as trivial as you want.

Post the contents of your smb.conf and the result of the above command.

On a side note, invest in a soho router/firewall, they are cheap. Or at least in a linux based dhcp server

G.
 
Old 01-14-2004, 11:03 AM   #7
danielgrenyer
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Okay - you'll have to be gentle with me - I've only been using Linux for a week or so.

Typing /sbin/iptables -L gives me
bash: /sbin/iptables: No such file or directory

I guess I misunderstood you.

My smb.conf file is completely standard, with all the comments that come as standard. The elements I changed are as follows..(the entire file would be too large to post!!)


#======================= Global Settings =====================================
[global]

# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP

# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
netbios name = Linux1

# server string is the equivalent of the NT Description field
server string = Samba Server %v

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes
 
  


Reply


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
Unable to resolve local hostname rudivk Linux - Networking 6 12-10-2004 07:37 AM
bind & resolve local hosts jingo_man Linux - Networking 7 07-08-2004 02:56 PM
local addresses LQtor Linux - Networking 1 03-15-2004 03:05 PM
Squid and resolving local addresses on network lumpyhed Linux - Networking 1 03-12-2004 08:31 AM
Sendmail can't resolve names outside local network beng Linux - Networking 4 12-01-2003 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:56 AM.

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