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 have a small network about 10 boxes, linux as well as win. It is connected to the internet by a Draytek vigor 2200E router. The network is in 2 buildings, connected by wireless bridges. The router is acting as DHCP server. 1st IP adres is 192.168.1.1 (adresses are examples) - Start ip adress 192.168.1.10 ( the router uses adresses 1 to 10) Gateway Ip adress is 192.168.1.1, Subnet mask 255.255.255.0 . Ip pool
counts 50 ( Dhcp server can give 50 adresses) This is done because I have some printservers, bridges that have fixed adresses in the space above adress 60.
On one of the linux boxes, there is a samba server under Suse 9.1. The box is called ALPHA, and can be detected and connected without any troubles from linux as well as win.
If however I start an apache server on Alpha, I only can connect over the IP adress. The same if I want a remote login. Obiously the sambaserver is seen as ALPHA but if I want to make an other connection -
remote / Apache - the name does not exist anymore.
Since there are 4 laptops in the game, I have to keep a part of the network Dynamic. I have read a lot about this trouble, but it looks, that you only can
overcome this with a local DNS server and static adresses. But then there are the laptops.......
Is it possible to create a little subnet with a router, put the Alpha box behind that router and make that subnet static. In that way I have still most of the net dynamic and could use apache (only for intranet) from the other boxes.
If this is possible can someone give me some steps to do it the right way?
If it is not possible, what other options do I have.
Why don't you just put alpha on a static address outside of the dhcp range and then register that IP in /etc/hosts on each box ?
Some of the boxes are win.......
But I think I have found a solution.
According to some docs I found yesterday it seems to be possible to reserve a dynamic adres
for just one box. The router will always give the same adress to that box.
In that case it is not relevant if I have no name but only an IP. I can give it a nice name in the
fav list of the browser ........
The problem with a static adres outside the range was, that I could not get an internet connection anymore and the other boxes could not see the Samba server on the same box. I also found an answer on this problem. It seems that in this case the DNS should not point to the providers DNS adresses but to the router only!!!!
I didn't test it out but in short time I will and report back.
The first solution should be sufficient, but if the seccond works with a name I will go for that one!
I used a telnet connection to tell the router that it should always give the same adres to ALPHA. This command does also include the name. So if I type ALPHA in my browser my Apache website is started.
There is only stil one minor problem. The server is normaly on the other location. So I use KRDC to login remote. KRDC however does not recognize the name, only the IP. That is not realy a problem, because you can store your connections in KRDC and since the Ip adress is not changing........
But I'm curious and I aks myself why the Samba server and Apache are recognized and KRDC does not recognize the name ALPHA....
So if anyone has an answer, I'm obliged.
============================================================================
After more testing I got the following :
All winboxes respond in the browser on the name ALPHA.
The Linboxes don't. They do not recognize the name ALPHA for some reason.
KRDC or another remote inlog doesn't function either (on NAME)
So there should be some setting in the Linboxes, that don't get the servers NAME but I tried several things ( like IP and Name in hosts) no succes until now.
================================================================================
For the linux boxes I made an entry in Hosts. That helped, I can also access the website over the browser by name in linux and KDCR can als be used by name.
Thanks for the reaction.
CloudBuilder
Last edited by CloudBuilder; 01-11-2006 at 07:25 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.