LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-24-2003, 08:27 PM   #1
bigstar
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Getting XP to recognize Debian Linux Box with Samba


I'm relatively new to Linux so bare with me.

I set up a new debian server, which I want to share files with XP. eth0 is configured automatically with DHCP, and picks up an IP address from my isp. I can FTP into my system no problem, but thats over the internet, not a local connection. I can't establish any local connection at all between the 2 machines.

Samba is running and I'm confident its configured properly, so I'm suspicious of my debian network config. The local server name 'madison' isn't recognized by the XP machine. Neither of these machines are on a domain but are set to be part of the same workgroup.

I have no local ip addresses on the linux machine, aside from the 127.0.0.1 loopback. Any help would be appreciated. Thanks
 
Old 09-24-2003, 08:40 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Al I can think of is have you set a netbios name in samba

netbios name=Linux

or something like that, and making sure your firewall ain't preventing the broadcast communications that file sharing needs

And of course need not say the two machines can ping each other. FTP access looks a bit dubious what ftp server are you using?
 
Old 09-24-2003, 09:05 PM   #3
koolkat
Member
 
Registered: Sep 2003
Distribution: SuSE 8.2
Posts: 46

Rep: Reputation: 15
Why not dual-boot both Windows and Linux?
 
Old 09-24-2003, 11:12 PM   #4
pdescham
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
a network connection alone won't mean samba will work. unfortunately

heres a great samba site:

http://handsonhowto.com/smb101.html

check out your broadcast masks in smb.conf I have had no problem with samba and any windows os connecting.

the nice thing with samba is when it's working and you restart the service

if you go start run \\hostname\sharename and nothing pops up in 10 seconds samba is misconfigured.

that is of course you are not running any firewall software on either machine. blocking netbios ports etc.
 
Old 09-25-2003, 09:20 AM   #5
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
Whoa!

You mentioned that your first box, debian is connected to your ISP and the address is configured by dhcp. You never mentioned how the two boxes are connected.

Quote:
I have no local ip addresses on the linux machine, aside from the 127.0.0.1 loopback.
Unless I am missing something, you need to add a 2nd nic to your linux box and create a local network.
 
Old 09-25-2003, 10:34 AM   #6
rufius
Member
 
Registered: Oct 2002
Location: Miami, FL
Distribution: Ubuntu
Posts: 184

Rep: Reputation: 30
I'm thinking you need to go out and purchase yourself maybe a Netgear router or add a 2nd nic... I prefer the router option since it will automatically setup your dhcp table for you. But as he said, you need to have a "physical" lan rather than just the loopback.
 
Old 09-25-2003, 10:41 AM   #7
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
Re: Getting XP to recognize Debian Linux Box with Samba

Quote:
Originally posted by bigstar
eth0 is configured automatically with DHCP, and picks up an IP address from my isp. I can FTP into my system no problem, but thats over the internet, not a local connection.
and

Quote:
Originally posted by bigstart
I have no local ip addresses on the linux machine, aside from the 127.0.0.1 loopback. Any help would be appreciated. Thanks

make no sense togehter. if you are getting an ip via dhcp, how do you not have
an IP address besides 127.0.0.1 ??

and , explain your network setup, and post your smb.conf file.
 
Old 09-25-2003, 06:46 PM   #8
bigstar
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Here's the SMB.conf:

[global]
netbios name = MADISON
server string = "Ruff"
workgroup = XLR8
security = share
log file = /var/log/samba.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
wins support = yes

[public]
path = /tmp
guest ok = yes
writeable = yes

Looking_Lost:
The netbios name is set correctly. I disbled My windows Firewall, and I assume Debian doesn't have one installed by default.
I'm using GLFTPD for the FTP server and can connect via the internet IP address fine, but can't use the local netbios name for FTP. Pinging 'madison' on the windows box gets no response.

pdescham:
I'm not sure what a broadcast mask is, so that might be an issue.

sidemark-2850:
The two comptuers aren't technically connected to each other. Both the windows and debian box plug into a hub, which has cable internet plugged into it as well. They pick up there ips automatically from DHCP (2 seperate ips), both are internet ip addresses. The 2nd nic might be the issue here, but I made the assumption that when to windows boxes are configured with one nic each into the hub, they can still communicate with each other locally, without an additional nic card.

Robert0380:
eth0 in the linux box gets its ip from DHCP, which is an ip issued from my cable company.

I get the feeling 2 nics in the linux box is the answer here, correct me if I'm wrong, thanks.
 
Old 09-25-2003, 09:58 PM   #9
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
You probably have an IP address besides loopback if your Debian server gets an ip via dhcp from your isp. In your debian machine, check the output of "ifconfig eth0" and you will see inet addr. Otherwise, I dont know how you are able to connect to the internet.

I hope you didn't purchase a second internet IP address from your isp (Are you using a cable connection?). You could setup Debian as a gateway to the internet and have all other machines connect to it. This is why a second nic card is needed on the debian machine. eth0 will connect to the isp. eth1 will connect to the rest of the lan.

If you have a cable/dsl router, with a 4 port switch connected to a cable modem on the wan side and the machines plugged in on the switch side, then, your router should have assigned the machines an internal IP address via dhcp. The router is the one that gets the isp assigned IP.

Before you trouble shoot your samba config. trouble shoot the network config first. When you can successfully ping from one pc to another, then work on the samba config.
 
  


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
win XP can't connect to linux box using samba nebs Linux - Networking 3 02-20-2005 11:42 AM
Connect two Linux box without samba melinda_sayang Linux - Newbie 6 08-02-2004 08:44 PM
can't connect to my linux box via samba Pete Dogg Linux - Software 12 08-14-2003 09:46 AM
linux box as samba client? luap Linux - Networking 3 03-12-2003 09:15 AM
Linux box - Windows box =Samba? hbidad Linux - Software 7 02-10-2003 10:00 PM

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

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