LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-11-2002, 11:27 AM   #1
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Rep: Reputation: 30
Samba: do I have IP address problems?


I have spent a LOT of time (I can't believe how badly I underestimated the complexity of setting up Samba) configuring Samba on my Linux box.

I am (finally, after twiddling with my firewall) able to ping eth0 from the Windows client, but nothing appears in my Network Neighborhood. And if I click on "Entire Network", I get the "Unable to browse the network" error.

My Windows client is named "winthing" and the Samba netbios name is "sambathing". Both are setup within the same subnet and have the workgroup setup as "MYWRKGRP".

On the Win98 client, if I ping winthing, I get:
Pinging winthing [192.168.1.128] with 32 bytes of data:

Reply from 192.168.1.128: bytes=32 time<10ms TTL=128
Reply from 192.168.1.128: bytes=32 time<10ms TTL=128
Reply from 192.168.1.128: bytes=32 time<10ms TTL=128
Reply from 192.168.1.128: bytes=32 time<10ms TTL=128

Ping statistics for 192.168.1.128:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


Still from Win client, when I ping sambathing:
Pinging sambathing.MYWRKGRP [192.168.1.128] with 32 bytes of data:

Reply from 192.168.1.128: bytes=32 time<10ms TTL=128
Reply from 192.168.1.128: bytes=32 time<10ms TTL=128
Reply from 192.168.1.128: bytes=32 time<10ms TTL=128
Reply from 192.168.1.128: bytes=32 time<10ms TTL=128

Ping statistics for 192.168.1.128:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


These are both the same IP address -- shouldn't they be different? Would that account for why I can't browse the network?

Also, from the Linux box, I can't ping either winthing or sambathing -- I get unknown host errors.

Do you need to see my smb.conf?...



Thanks!
 
Old 01-11-2002, 11:54 AM   #2
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
yeah the IP's MUST be different. run 'ifconfig' on linux to check the ip there, and 'winipcfg' on windows. you should ping by ip adress and not name, esp as win9x doesn't really use a host file in teh first place.
 
Old 01-11-2002, 12:01 PM   #3
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Original Poster
Rep: Reputation: 30
Thanks: what do I need to be looking for when I run those commands? And how do I go about fixing the IP addressing problem? (Nice, easy questions, aren't they?...)

Windows is set to get IP from WINS/DHCP, which I have setup on the Linux box. Win ipconfig gives the following:

Windows 98 IP Configuration

0 Ethernet adapter :

IP Address. . . . . . . . . : 192.168.1.128
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 192.168.1.1

1 Ethernet adapter :

IP Address. . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . :

2 Ethernet adapter :

IP Address. . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . :


and Linux ifconfig:

eth0 Link encap:Ethernet HWaddr 00:10:B5:0E:BF:80
inet addr:192.168.1.100 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:423 errors:0 dropped:0 overruns:0 frame:0
TX packets:487 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:113299 (110.6 Kb) TX bytes:57500 (56.1 Kb)
Interrupt:12 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:66 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6228 (6.0 Kb) TX bytes:6228 (6.0 Kb)


Do you see anything there that will help me diagnose and fix this problem?

Last edited by lhoff; 01-11-2002 at 01:53 PM.
 
Old 01-11-2002, 03:55 PM   #4
linus
LQ Newbie
 
Registered: Dec 2001
Distribution: Red Hat 7.2
Posts: 20

Rep: Reputation: 0
looks like you have different ip addresses.

Are you sure sambathing the name of your linux computer and that it is listed in the smb.conf file as the netbios name?

It seems that your win machine is seeing itself as winthing and sambathing????

Check your network setup on your win computer and make sure the computer name and netbios name for your win machine are both winthing and check your smb.config file to make sure the netbios name there is sambathing.
 
Old 01-11-2002, 04:05 PM   #5
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
well, you're pinging windows on both occasions, your linux IP is 192.168.1.100 I'd be curious as to why windows reports 3 interfaces..? if you only do have one card, then you'll want to remove the otehr two setups in the control panel | network. you presumably must have specified the ip for sambathing.blah in windows somewhere, and it's set wrongly. use testparm to test the smb.conf for validity, and you should also have set up password security by either a reg hack in windows: search for enableplaintextpassword, or set password security in samba, and made a smbpasswd.
 
Old 01-11-2002, 09:38 PM   #6
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
go here http://home.hot.rr.com/andrews/samba.txt for a good default configuration file (smb.conf). Might not work for you though.

Last edited by Scotty2435; 01-11-2002 at 09:39 PM.
 
Old 01-12-2002, 04:56 AM   #7
earl
LQ Newbie
 
Registered: Jan 2002
Location: Dipolog City, Philippines
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
Samba (networking Win pc's & Linux box)

Hi lhoff,


Samba configuration isn't that complex and hard to think. you can even finish it within 10 minutes or less anyway, all you have to do is edit the file /etc/smb.conf.

here's i wanna share with you. when i configure my samba. i only follow the instructions of on the link which i'm gonna show you below:

"http://www.linuxnewbie.org/nhf/intel/network/samba/samba1.html"

just follow everythin' and you'll see the difference. once you're done, all you have to do is take a break and have some drinks to relax, celebrate with a bottle of wine

happy samba networking!

Earl
 
  


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
Samba: How to restrict access to server via MAC-address? johnny1959 Linux - Networking 5 03-27-2008 04:43 AM
SAMBA can't access win share through ip address emailssent Linux - Software 4 09-19-2004 07:29 AM
FC 1 Samba server - IP address changed on its own duality Fedora 4 09-01-2004 10:46 AM
Samba server only reachable by IP address, not showing in Network Neighbourhood mdkelly069 Linux - Networking 14 11-10-2003 08:41 AM
SAMBA - How to config to listen to an ip address instead of 0.0.0.0 ForumKid Linux - Networking 2 01-18-2002 05:10 AM

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

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