Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-11-2002, 12:27 PM
|
#1
|
Member
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181
Rep:
|
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!
|
|
|
01-11-2002, 12:54 PM
|
#2
|
Member
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555
Rep:
|
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.
|
|
|
01-11-2002, 01:01 PM
|
#3
|
Member
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181
Original Poster
Rep:
|
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 02:53 PM.
|
|
|
01-11-2002, 04:55 PM
|
#4
|
LQ Newbie
Registered: Dec 2001
Distribution: Red Hat 7.2
Posts: 20
Rep:
|
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.
|
|
|
01-11-2002, 05:05 PM
|
#5
|
Member
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555
Rep:
|
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.
|
|
|
01-11-2002, 10:38 PM
|
#6
|
Member
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232
Rep:
|
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 10:39 PM.
|
|
|
01-12-2002, 05:56 AM
|
#7
|
LQ Newbie
Registered: Jan 2002
Location: Dipolog City, Philippines
Distribution: Mandrake
Posts: 10
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|