Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm mildly experienced with Linux standalone, but I want to get my machine communicating with my wife's ThinkPad.
They are connected via WiFi/switch/router (Linksys BEFW11S4), both machines are able to PING each other just fine.
The desktop (RedHat 9) is able to mount shares from the ThinkPad (Windows 98SE) just fine with the "smbmount" command. I was able to see the shared directories from her laptop just fine. Cool!
The other direction, however, is another story. I cannot get "Network Neighbourhood" on the ThinkPad to see any computer other than itself.
My smb.conf file:
netbios name = Bunny
workgroup = MYGROUP
security = user
encrypt passwords = yes
path = /tmp
read only = no
My Windows settings
Computer Name: ThinkPad
I went to samba.org, and looked through all the linked documents. One that seemed to fit what I was doing was a PDF document from SAM's "Teach yourself SAMBA in 24 hours" (wanted to put a URL here, forum wouldn't let me. See documenation at samba dot org) I went through this Troubleshooting guide. Everything went fine through "Level one" (TCP/IP connectivity, matching network masks and broadcast addresses, testparm on smb.conf) and "Level two" (local server and client software), with one exception: it asked (on page 222) to verify the "broadcast address" of the Win98 machine using winipcfg. I did not see anything on the winipcfg utility that specified this. The document claimed it should be 192.168.1.255 (as it was on my Linux box).
My experience falls down on "Level three" (Remote access to shares). It says (on page 228) to run:
$ nmblookup -B 192.168.1.255 [hostname]
and the result should be:
querying [hostname] on 192.168.1.255
Instead, I get:
querying [hostname] on 192.168.1.255
name_query failed to find name [hostname]
for both the desktop ('Bunny") and the laptop ('ThinkPad")
The document had this to say:
"If all has gone well to this point, this test should seldom fail. However, if either step does result in an error, verify that the broadcast address on each client is set to the same value. You should also check for any *interfaces* or *bind interface only* settings that would prevent the Samba host from responding to queries arriving from this particular subnet."
As I stated before, I don't know how to verify the broadcast address on the Windows box. And the second suggestion is Greek, what are they talking about?
I had stopped and restarted Samba a number of times (a correction for you (on RedHat, anyways): the third command should have been:
"service smb restart"
I think it was the networt restart that fixed things.
By the way, the command "iptables -F" does a "flush" of all the chains of the firewall (according to the man page). What is the implication of this? Is my firewall down now? Will rebooting be necessary?
OK, with regards to iptables -F, the default firewall value for RH9 when you initially install is "MEDIUM", I believe.
Now I am no expert on firewalls or iptables, but I know that on my installation of RH9, I could not get Samba to work (problem was exactly as you described) because my firewall rules were not allowing my windows machine to access the linux machine.
Previously with RH8, I could not even get samba to work in my LAN if I set the firewall to off during installation (had to use iptables -F at each boot). This does not seem to be the case with RH9 - if on initial installation you set firewall to 'none' Samba will work ok.
Since I have a wireless router, that acts as a strong firewall for my system, I have no real worries with turning the firewall off (as achieved by iptables -F). This will remain the case until you next restart linux, after which the normal rules will apply.
There is a fairly in depth discussion of iptables at the following URL.
Post #7 (born4linux) nailed the way to keep iptables up with RH's odd /etc/sysconfig/iptables file, but open up the hole required for Samba.
Oh, I suppose I could go your way and just rely on the Linksys, but I just can't help thinking that iptables does a better job (no proof, just common sense since tons of experts have examined iptables' code, and noone outside of Linksys has seen theirs). I suppose that two firewalls can't be worse than one.
Thanks, again, for your hint. I hope I'll be a contributor soon.