Linux - NetworkingThis 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.
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.
Hi guys,
Im running zenwalk and have installed samba, and i am trying to get it working.
I dont think the problem i have is with samba though, as i cant ping the windows box by hostname
and it cant ping me, but they can both ping each other by ip.
I also have another windows box, and both windows boxes can ping each other by hostname.
But the linux box does show up if i view workgroup computers in windows, i just cant access it.
edit the /etc/hosts file. By default linux can't understand windows hosts name automatically. You can achieve this mission easily by map windows host name in /etc/hosts.
Example
i put 192.168.1.5 pepsin pepsin.workgroup (not sure if the last bit should be like that) and i can now ping that computer.
but i still cant ping my linux machine from either windows machine using the hostname (kane) even though i can ping by ip.
however ive also noticed when i type hostname it comes up with 192.168.1.5 why would this be? even after i remove ^ that line from /etc/hosts it still shows it (even though my ip is 192.168.1.4)
i put 192.168.1.5 pepsin pepsin.workgroup (not sure if the last bit should be like that) and i can now ping that computer.
but i still cant ping my linux machine from either windows machine using the hostname (kane) even though i can ping by ip.
however ive also noticed when i type hostname it comes up with 192.168.1.5 why would this be? even after i remove ^ that line from /etc/hosts it still shows it (even though my ip is 192.168.1.4)
Reply
Hi,
Have you setup a workgroup for your windows machines and included the linux box as part of the workgroup. ie all ip adds belong to workgroup=playzone.
all windows machines are set to the default workgroup (workgroup)
but how do i set my linux box as part of that workgroup?
im guessing it is set as that already as when i view workgroup computers in winXP it shows up in "workgroup"
my /etc/hosts is as follows:
Quote:
# For loopbacking.
127.0.0.1 localhost
192.168.1.4 kane.workgroup kane
# Scott
192.168.1.5 pepsin.workgroup pepsin
where the 192.168.1.4 is it was originally 127.0.0.1 but that didnt seem to make any difference.
On your windows platforms, ensure that they all have the same workgroup name, ie playzone and the all belong to the same subnet ie 192.168.30.x.(including linux platform).
Windows platforms Ensure that the same workgroup name is used in, right mouse click my computer, select properties, select computer name, change workgroup name.
I hope this helps.
Quote:
Originally Posted by Kane2002
all windows machines are set to the default workgroup (workgroup)
but how do i set my linux box as part of that workgroup?
im guessing it is set as that already as when i view workgroup computers in winXP it shows up in "workgroup"
my /etc/hosts is as follows:
where the 192.168.1.4 is it was originally 127.0.0.1 but that didnt seem to make any difference.
Sometimes the netbios need quite long time to response, if you know the hostname the fastest way you can reach the linux pc is:-
edit c:\windows\system32\drivers\etc\hosts and add in all pc's ip and name (same format as linux pc)
next time simply type \\linux then it will reach your linux pc
Definitely, make sure your samba and firewall is configure probably.
ks
Samba is password dependent. Double check the password files that appear in all the files concerned. Also Linux needs to be included, so Samba can negotiate the connections. Suggestion: the same name or nomenclature is necessary between both the Linux and the M$Windows boxes. The slightest deviation will cause the incomplete negotiation to occur.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.