LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-11-2003, 10:51 AM   #1
ZhiYi
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 30

Rep: Reputation: 15
Question My computers cannot connect to each other using samba ! Help!


Hi!
I use realtek ethernet cards to connect 2 redhat linux 8 systems together to form a peer to peer network.
My stats for the first network card are ::
IP add: 169.254.156.54 Mask:255.255.0.0 Bind to MAC add: 00:50:2c:05:98:a9 Host IP add: 127.0.0.1 HostName:localhost.localdomain DNS Hostname:localhost.localdomain

The stats for the 2nd network card are::
IP add:169.254.61.56 Mask:255.255.0.0 Bind to MAC add: 00:50:fc:84:32:56 HostIP add:127.0.0.1 HostName:localhost.localdomain DNS Hostname:localhost.localdomain
I read up on the redhat documentation on samba,followed its instructions and configured the last part of the smb.conf file. The very last section of the file reads as follows after modification:
[sharename]
comment = My stuff
path = /home/share
valid users = ong ocy
public = no
writable = yes
printable = no
create mask = 0765
I only modified the last part of the smb.conf file cos the documentation shows only tis part.

So i logged in as root on both pcs,went to the terminal and typed
smbclient //169.254.61.56/home/share -U ong on one pc. However the following messages appeared:
added interface ip=169.254.156.54 bcast=169.254.255.255 nmask=255.255.0.0
error connecting to 169.254.61.56:139(connection refused)
error connecting to 169.254.61.56(connection refused)
connection to 169.254.61.56 failed
The other pc also showed a similar error message when i tried the connection on the other pc.

Do you know where the problem lies ? Is it because of the configuration of the ethernet cards and the smb.conf or the wrong commands typed ? Please help because i have spent a long time reading the documenation,tinkling with the settings and trying out different commands but to no avail. ( Btw,i think the connection works because i have tried out the ping command )
Please reply quickly if you can.........thanks!! :?:
 
Old 02-11-2003, 11:10 AM   #2
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Because the connection was refused before attempting to authenticate via username and password, you might want to make sure that you don't have the firewall software running. I'm not sure what all Linux has in this regard, but I know that there is a GUI configuration tool for this in RH8.0. I think it's in "System Tools." Just turn it off completely.

Since the IP addresses you're using aren't reserved for private use, I assume these computers aren't on the internet?
 
Old 02-11-2003, 11:10 AM   #3
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
make sure smb are on for both boxes. If both of your machine is linux. Why are you using Samba? Samba is more for sharing between windoze and linux. Plus, I need more info. on your smb.conf
 
Old 02-11-2003, 11:14 AM   #4
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
good catch gauge. I didn't even notice his IP aren't private IP. So, how's your RH8 project going?
 
Old 02-11-2003, 11:37 AM   #5
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Haha, good memory.

Still no functional master browser, but I'm about to give up on that and just make it a PDC. Hopefully that will be a workaround for it. I'm having an issue with a new hard drive that I want to use as a backup. There's a thread in the newbie forum if you wanna take a peek.
 
Old 02-11-2003, 11:38 AM   #6
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Those are link-local addresses which can be used like reserved address space as they are never advertised anywhere on the internet. RFC 3030 if memory serves

I would try using netbios names instead of IP addresses in the smbclient command, I couldn't make it work at all using IPs, names were fine, as long as NMB is resolving, host entries are good otherwise.
 
Old 02-11-2003, 11:50 AM   #7
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Quote:
Those are link-local addresses which can be used like reserved address space as they are never advertised anywhere on the internet. RFC 3030 if memory serves
Could you translate this into newbie? Specifically the "link-local addresses" and the "RFC 3030" parts?
 
Old 02-12-2003, 07:08 AM   #8
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
169.254.x.x addresses are defined in RFC3030 (surely I don't need to tell you what an RFC is?) as being reserved for anyone to use in the internet for things like wan addresses, which don't need to be advertised outside of a particular carriers network. Therefore multiple internet carriers can use this range without fear of conflict.

If you set MSWindows to use DHCP, and DHCP fails, the address you get will default to a 169.254.x.x address.

I was just saying that if you are natting out to the internet then 169.254.x.x is as valid a range to use internally as any.
 
  


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
server doesn't connect to other computers canuckin Linux - Newbie 10 07-16-2005 11:27 AM
Other computers cant connect to me? empiiricus Linux - Networking 1 05-17-2004 09:31 AM
How to connect 2 SuSE computers? 4levels Linux - Newbie 3 05-12-2004 02:29 AM
Help me..i want to connect to other win XP computers.. pulster2605 Linux - Networking 3 08-09-2003 04:33 AM
Trying to connect to other computers on the network hextex Linux - Networking 1 05-04-2001 08:13 PM

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

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