LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-09-2006, 05:44 PM   #1
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
Apache in dynamic environment


Hello,

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.

Thank you in advance.

CloudBuilder
 
Old 01-11-2006, 04:31 AM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
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 ?

Last edited by zeitounator; 01-11-2006 at 04:35 AM.
 
Old 01-11-2006, 05:41 AM   #3
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by zeitounator
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!

Thanks for your reply.

CloudBuilder
 
Old 01-11-2006, 12:38 PM   #4
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Ok I did it.

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.
 
Old 01-12-2006, 03:02 AM   #5
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Quote:
Originally Posted by CloudBuilder
Some of the boxes are win......
The "hosts" file on win is located in :
XP => c:\windows\system32\drivers\etc
win2k => c:\winnt\system32\drivers\etc
98/ME => c:\windows

If it does not exists, just create it.

Last edited by zeitounator; 01-12-2006 at 03:07 AM.
 
Old 01-12-2006, 04:47 PM   #6
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Wink

Quote:
Originally Posted by zeitounator
The "hosts" file on win is located in :
XP => c:\windows\system32\drivers\etc
win2k => c:\winnt\system32\drivers\etc
98/ME => c:\windows

If it does not exists, just create it.
Winboxes worked without any entry in Hosts.
Linboxes need an entry in Hosts.
Everything is working fine.

Thanks for your reply.

CloudBuilder
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic ip and Apache with iptables props666999 Linux - Security 4 09-28-2005 04:08 AM
[newbie]Mail server: I don't catch it how to use it in a dynamic IP environment.. JacquesZ Linux - Enterprise 4 08-01-2004 09:50 AM
Apache in a chroot environment tarballedtux Linux - Software 1 04-13-2004 07:37 PM
Apache webserver on a DSL Dynamic IP system? bripage Linux - Networking 6 07-17-2003 09:45 PM
Apache and Dynamic IP's ranixlb Linux - Networking 3 05-24-2002 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration