Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Linux <-- crossover cable --> WinXP file sharing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hokiehi
n00b
n00b


Joined: 08 Mar 2004
Posts: 17
Location: Blacksburg

PostPosted: Tue Jun 01, 2004 5:58 pm    Post subject: Linux <-- crossover cable --> WinXP file sharing Reply with quote

I am currently trying to set up sharing between an XP system and a linux system using a xover cable. I have managed to get both systems to ping each other but have failed repeatedly at setting file sharing via samba. I got file sharing to work when both systems where connected via a router. I didn't think that the samba configuration should change much when the two are hooked up using the xover cable. I am sure I am missing a miinute detail. A suggestions are greatly appreciated.
Back to top
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Tue Jun 01, 2004 6:07 pm    Post subject: Reply with quote

there is no difference between setting up for a cross-over cable or connected via a hub/switch (like the one in a router).

If you can ping one box from the other then everything else should work fine. Make sure you don't have ICF enabled on the xp machine.

if you want to post your smb.conf and any errors in /var/log/samba I can probablly help some more.
Back to top
View user's profile Send private message
hokiehi
n00b
n00b


Joined: 08 Mar 2004
Posts: 17
Location: Blacksburg

PostPosted: Tue Jun 01, 2004 6:48 pm    Post subject: Reply with quote

That's what I thought too.

Here is my smb.conf
Code:

# Global parameters
[global]
   workgroup = 307BNET
   server string = Samba Server %v
   interfaces = eth1
   security = SHARE
   log file = /var/log/samba/log.%m
   max log size = 50
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   printcap name = cups
   dns proxy = No
   ldap ssl = no
   admin users = nsaid
   hosts allow = 192.168.0.1, 192.168.0.2, 192.168.2., 127.0.0.1
   printing = cups

[homes]
   comment = Home Directories
   read only = No
   print command = lpr -P %p -o raw %s -r   # using client side printer drivers.
   browseable = No

[public]


   path = /home/nsaid/public
   valid users = nsaid


   read only = No
   guest only = Yes
   guest ok = Yes

[HDD2]
   comment = Linux PC 2nd HD
   path = /mnt/HDD2
   admin users =
   read only = No
   create mask = 0777
   directory mask = 0777
   guest only = Yes
   guest ok = Yes


As I mentioned, this works when I use a router, but when I use the xover cable between the two machines, I cannot share (unable to see Linux from winxp and vice versa). ICF disabled in winXP also. Thanks a bunch for your help.
Back to top
View user's profile Send private message
hokiehi
n00b
n00b


Joined: 08 Mar 2004
Posts: 17
Location: Blacksburg

PostPosted: Tue Jun 01, 2004 7:53 pm    Post subject: Reply with quote

Ok, now this is getting bizarre. My crossover connection works... woohoo!
The linux PC is hooked to the router via another ethernet card, and sharing works over the network too... WHAT?

I deleted eth0 (connected to router) from smb.conf
I have no idea how it is working, but it is.

Next step is to get connection sharing working and fix all my messed up permissions so that this thing will do what I want it to. Thx again for your help and if anyone has any idea how my system is able to work under these parameters feel free to comment.
Back to top
View user's profile Send private message
kezzla
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 253
Location: Austin, TX

PostPosted: Tue Jun 01, 2004 11:19 pm    Post subject: Reply with quote

Great job ! Also, you might try commenting these out:
SO_RCVBUF=8192 SO_SNDBUF=8192
Improves performance greatly for me :)
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Tue Jun 01, 2004 11:27 pm    Post subject: Reply with quote

Sounds like you had a routing issue if removing the external connection fixed the problem.
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum