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.
I've just recently upgrade my Slackware from 9.1 to 11.0 and I'm having a problem with Samba. I don't think I had a single trouble with this when I was using 9.1 but unfortunately I didn't make a backup of my configuration files (although I'm pretty sure they where the same). Bear in mind, that I don't know much about networks.
The clients on my network are currently these...
RTA1320 (Internet Router) 192.168.1.1
Link (Windows XP Pro SP2 Box) 192.168.1.2
Sen (Slackware 11) 192.168.1.3
They are all connected to a switch/hub and all use the subnet mask 255.255.255.0. They have are using a static IP setup and use the NETBIOS name; Home.
The problem is that I cannot ping my Windows box (Link) from Slackware (Sen) by it's hostname, however I can ping it fine the other way around. I can also ping all clients fine using the IP address. While I know it's possible to hard code this in /etc/hosts, I would rather not, since it would be a huge pain to change once many other clients are plugged in.
Windows has no problems with this, so how does it do it? I read something about enabling WINS support, but according to the smb.conf man page, this shouldn't be enabled unless I'm running a multi-subnetted network.
It's also worth noting, that I can use the nmblookup command to find an IP address from a hostname. Is it possible to forward this to Samba somehow?
I'm a bit confused... where have you defined your computers as "Link" and "Sen"? I get the impression that those names are netbios names or something. In that case you shouldn't be able ping them with those names - they have nothing to do with Unix hostnames.
You could either define the hostnames in /etc/hosts on each computer or load the hosts definition from a central hosts file. Or set up a DNS server, although that would probably be an overkill in a 3 computer network. Am I missing something essential?
Have you made sure that all the hostnames to ip adds have been placed in the /etc/hosts file, on the host Sen?
192.168.1.1 RTA1320 #(Internet Router)
192.168.1.2 Link #(Windows XP Pro SP2 Box)
192.168.1.3 Sen #(Slackware 11)
Just a thought!!
Quote:
Originally Posted by r_sherman
I've just recently upgrade my Slackware from 9.1 to 11.0 and I'm having a problem with Samba. I don't think I had a single trouble with this when I was using 9.1 but unfortunately I didn't make a backup of my configuration files (although I'm pretty sure they where the same). Bear in mind, that I don't know much about networks.
The clients on my network are currently these...
RTA1320 (Internet Router) 192.168.1.1
Link (Windows XP Pro SP2 Box) 192.168.1.2
Sen (Slackware 11) 192.168.1.3
They are all connected to a switch/hub and all use the subnet mask 255.255.255.0. They have are using a static IP setup and use the NETBIOS name; Home.
The problem is that I cannot ping my Windows box (Link) from Slackware (Sen) by it's hostname, however I can ping it fine the other way around. I can also ping all clients fine using the IP address. While I know it's possible to hard code this in /etc/hosts, I would rather not, since it would be a huge pain to change once many other clients are plugged in.
Windows has no problems with this, so how does it do it? I read something about enabling WINS support, but according to the smb.conf man page, this shouldn't be enabled unless I'm running a multi-subnetted network.
It's also worth noting, that I can use the nmblookup command to find an IP address from a hostname. Is it possible to forward this to Samba somehow?
I'm having basically the same problem. I can't ping (eg) either of two windows boxes from my Linux (Fedora Core 5) box using their "computer names" but their IP addresses work fine. But both Windows boxes are fine pinging each other's names as well as the Linux box hostname.
I know I could probably put the Windows boxes in /etc/hosts but that doesn't work for me since I'm letting my DSL Router do local DHCP IP address assignments which change from time to time. But the router shows all three names with their assigned IP addresses and the two Windows boxes seem to handle it fine as well. If they can keep track of the (changing) local IP address to name relations, why can't my Linux box.
This kind of problem is supposed to work the other way around! 8^)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.