View previous topic :: View next topic |
Author |
Message |
hokiehi n00b
Joined: 08 Mar 2004 Posts: 17 Location: Blacksburg
|
Posted: Tue Jun 01, 2004 5:58 pm Post subject: Linux <-- crossover cable --> WinXP file sharing |
|
|
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 |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Tue Jun 01, 2004 6:07 pm Post subject: |
|
|
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 |
|
|
hokiehi n00b
Joined: 08 Mar 2004 Posts: 17 Location: Blacksburg
|
Posted: Tue Jun 01, 2004 6:48 pm Post subject: |
|
|
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 |
|
|
hokiehi n00b
Joined: 08 Mar 2004 Posts: 17 Location: Blacksburg
|
Posted: Tue Jun 01, 2004 7:53 pm Post subject: |
|
|
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 |
|
|
kezzla Apprentice
Joined: 21 Aug 2003 Posts: 253 Location: Austin, TX
|
Posted: Tue Jun 01, 2004 11:19 pm Post subject: |
|
|
Great job ! Also, you might try commenting these out:
SO_RCVBUF=8192 SO_SNDBUF=8192
Improves performance greatly for me |
|
Back to top |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Tue Jun 01, 2004 11:27 pm Post subject: |
|
|
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 |
|
|
|