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.
This is probably a tiresome question from a Linux newbie, but I've searched the threads and not found anything to help. Please, somebody, help me if you can!
I am trying to set up networking on a new, single-boot, linux machine. We already have two dual-boot (linux/WinXP) machines that work fine.
The problem that I am having is in setting up the hostname and domain, and in getting the windows server to recognise the machine. I have set the hostname to linux01 on the linux machine, and in the Active Directory utility on the Windows 2000 server, I have added a new machine called linux01. I have also modified the first line of /etc/hosts to read:
127.0.0.1 linux01.nnaenguk.net linux01
IP addresses are assigned by DHCP by the server, and the machine has picked up an IP address. In the Active Directory, the only odd thing is that the hostname does not appear against the IP entry - seems to be perhaps a machineID?
All seems to be fine - I can log in properly, get internet access, ping the other machines etc. However, I tried to access the windows-side of the network by SMB (typing smb:/// into the address bar of an explorer window) and I get the message "Couldn't display "smb:///" because Nautilus cannot contact the SMB master brower. Check that an SMB server is running in the local network."
Also, when I try to mount a directory located on this machine onto one of the other linux boxes, I get an error "Mount: RPC: Remote system error - No route to host".
I don't understand what is causing this, other than presuming that I have not set up the networking properly. I can get SMB access from the other linux machines, and I have not had to do anything special. [In fact, one of those still has the hostname set as localhost.localdomain.]
I am presuming that the fact that Active Directory does not report the hostname of the machine against the IP address has something to do with the problem. [For the windows/linux dual-boots, the IP address has the hostname reported against it (winlinx01.nnaenguk.net).
Does anybody know what I need to do to resolve this?
Linux is RedHat 9.0.
Thanks,
David Cormie
Last edited by david.cormie; 07-21-2004 at 08:24 AM.
I know next to nothing about AD, but 127.0.0.1 should point to localhost only.
The computername should be tied to the nic's IP.
I'm not sure if you need /etc/hosts, you use DHCP & DNS-servers, but maybe keep the localhost entry.
Originally posted by pingu I know next to nothing about AD, but 127.0.0.1 should point to localhost only.
The computername should be tied to the nic's IP.
I'm not sure if you need /etc/hosts, you use DHCP & DNS-servers, but maybe keep the localhost entry.
Pingu,
Thanks for your reply.
Do I understand from the your post that I should set /etc/hosts back to the following?
127.0.0.1 localhost.localdomain localhost
How do I set what the hostname of the machine should be, if it's not through /etc/hosts? You mention the network card IP address - do I have to do something on this to set the hostname?
and now I get the message: "Could not look up internet address for linux01. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding linux01 to the file /etc/hosts." There are two options: "Log in anyway/try again".
Now I feel a bit lost... actually I thought I was pretty good at networking, not so sure now...
Anyway, you do have a DNS-server, right?
Post the output of
#ifconfig
#route
<sigh> I thought that 'ifconfig' would show the DNS, apparently not... Just wanted to see if this is a DNS-problem. Maybe check /etc/resolv.conf.
Maybe I shouldn't have answered in the first place, I'm out in deep water now...
But come to think of it: you have another computer in the same network running Linux, right?
On that computer, check
/etc/hosts
/etc/resolv.conf
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking
(I'm taking this out of memory, file/dir-names are not necessarily 100% correct!) Compare with the 'trouble-computer'.
Checking these files on each machine seems to show the same stuff in each file. I think the problem arises on the Windows side: each of the working machines were set up in Windows first, and then made dual boot and set up with Linux. So all the DNS entries/DHCP settings were all sorted out first. However, on this machine there is no Windows side, so I'm having to try to get the Windows server to recognise it from scratch - which I know nothing about! Any ideas?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.